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: "Налаштування").
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
Useid
field as a model andname
field as a label.I'd make it as a dropdown (title: "Оберіть вступну кампанію") inside a modal (title: "Налаштування").