aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorjpl2017-04-20 14:30:52 +0200
committerjpl2017-04-20 14:30:59 +0200
commite29e4c46bce58ca54a9eb10620038caebbf6f208 (patch)
tree665ce1641155ddb98b45a181100a4dc7ad998a7f /app/assets/javascripts
parentc1eccef1259c7f7068f0b2f9dad15c79cdae49b1 (diff)
downloadchouette-core-e29e4c46bce58ca54a9eb10620038caebbf6f208.tar.bz2
RefsĀ #2892: adding periodManager actions css comp.
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/es6_browserified/time_tables/components/PeriodManager.js36
1 files changed, 35 insertions, 1 deletions
diff --git a/app/assets/javascripts/es6_browserified/time_tables/components/PeriodManager.js b/app/assets/javascripts/es6_browserified/time_tables/components/PeriodManager.js
index 61098d9ea..35968fea3 100644
--- a/app/assets/javascripts/es6_browserified/time_tables/components/PeriodManager.js
+++ b/app/assets/javascripts/es6_browserified/time_tables/components/PeriodManager.js
@@ -14,7 +14,41 @@ class PeriodManager extends Component {
className='period_manager'
id={this.props.value.id}
>
- <strong>{(this.props.value.period_start.split('-')[2]) + ' > ' + actions.getHumanDate(this.props.value.period_end, 3)}</strong>
+ <p className='strong'>
+ {actions.getHumanDate(this.props.value.period_start, 3).substr(0, 7) + ' > ' + actions.getHumanDate(this.props.value.period_end, 3)}
+ </p>
+
+ <div className='dropdown'>
+ <div
+ className='btn dropdown-toggle'
+ id='period_actions'
+ data-toggle='dropdown'
+ aria-haspopup='true'
+ aria-expanded='true'
+ >
+ <span className='fa fa-cog'></span>
+ </div>
+ <ul
+ className='dropdown-menu'
+ aria-labelledby='date_selector'
+ >
+ <li>
+ <button
+ type='button'
+ >
+ Action
+ </button>
+ </li>
+ <li className='delete-action'>
+ <button
+ type='button'
+ >
+ <span className='fa fa-trash'></span>
+ Action
+ </button>
+ </li>
+ </ul>
+ </div>
</div>
)
}