diff options
| author | jpl | 2017-04-20 14:30:52 +0200 |
|---|---|---|
| committer | jpl | 2017-04-20 14:30:59 +0200 |
| commit | e29e4c46bce58ca54a9eb10620038caebbf6f208 (patch) | |
| tree | 665ce1641155ddb98b45a181100a4dc7ad998a7f /app/assets/javascripts | |
| parent | c1eccef1259c7f7068f0b2f9dad15c79cdae49b1 (diff) | |
| download | chouette-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.js | 36 |
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> ) } |
