mkozhukharenko / ums-frontend

ums-frontend
MIT License
1 stars 1 forks source link

Choose time periodId #2

Closed mkozhukharenko closed 8 years ago

mkozhukharenko commented 8 years ago

Need to implement feature for choosing timePeriodId

timePeriodId - it's a year with which user want to work (fetch data). E.g. consider this req. GET /stats/{timePeriodId}/entrants/allocations/departments. If timePeriod = 2016 (timePeriodId = 8) - user will get departments statistics for 2016 year.

timePeriodId should be something like global variable. Store it in application reducer.

API (link) - GET /timeperiods Use id field as a model and name field as a label.

I'd make it as a dropdown (title: "Оберіть вступну кампанію") inside a modal (title: "Налаштування").

Example