2016-03-23 18:39:41 +01:00
< section class = "heading b-b" >
< div class = "row no-gutter" >
< div class = "col-xs-2 col-sm-2 col-md-1" >
< section class = "heading-btn" >
2022-01-11 11:03:27 +01:00
< a ng-click = "backPrevLocation($event)" > < i class = "fas fa-long-arrow-alt-left " > < / i > < / a >
2016-03-23 18:39:41 +01:00
< / section >
< / div >
< div class = "col-xs-8 col-sm-10 col-md-8 b-l" >
< section class = "heading-title" >
2019-12-17 18:06:56 +01:00
< h1 translate > {{ 'app.admin.stats_graphs.statistics' }}< / h1 >
2016-03-23 18:39:41 +01:00
< / section >
< / div >
< div class = "col-xs-12 col-sm-12 col-md-3 b-t hide-b-md" >
< section class = "heading-actions wrapper" >
2023-11-27 16:21:07 +01:00
< a class = "fab-button is-secondary m-t-sm" ui-sref = "app.admin.statistics" role = "button" > < i class = "fa fa-table" > < / i > {{ 'app.admin.stats_graphs.data' | translate }}< / a >
2016-03-23 18:39:41 +01:00
< / section >
< / div >
< / div >
< / section >
< section class = "m-lg" >
< div class = "row" >
< div class = "col-md-12" >
< form id = "filters_form" name = "filters_form" class = "form-inline m-t-md m-b-lg" novalidate = "novalidate" >
< div class = "btn-group m-r-md" >
2019-12-17 18:06:56 +01:00
< a role = "button" ng-model = "display.interval" uib-btn-radio = "'day'" class = "btn btn-default" translate > {{ 'app.admin.stats_graphs.day' }}< / a >
< a role = "button" ng-model = "display.interval" uib-btn-radio = "'week'" class = "btn btn-default" translate > {{ 'app.admin.stats_graphs.week' }}< / a >
< a role = "button" ng-model = "display.interval" uib-btn-radio = "'month'" class = "btn btn-default" translate > {{ 'app.admin.stats_graphs.month' }}< / a >
2016-03-23 18:39:41 +01:00
< / div >
< div class = "form-group pull-right datepicker-container" >
< button id = "datepickerExpand" class = "btn btn-default" type = "button" ng-click = "datePicker.show = !datePicker.show" >
< i class = "fa fa-calendar" > < / i >
< i class = "fa fa-arrows-h" > < / i >
< i class = "fa fa-calendar" > < / i >
2019-12-17 18:06:56 +01:00
< span translate > {{ 'app.admin.stats_graphs.from_date' }}< / span >
2016-03-23 18:39:41 +01:00
< b class = "text-info" id = "datepicker-from-info" > {{datePickerStart.selected | amDateFormat:'L'}}< / b >
2019-12-17 18:06:56 +01:00
< span translate > {{ 'app.admin.stats_graphs.to_date' }}< / span >
2016-03-23 18:39:41 +01:00
< b class = "text-info" id = "datepicker-to-info" > {{datePickerEnd.selected | amDateFormat:'L'}}< / b >
< i class = "fa fa-caret-down" ng-show = "!datePicker.show" > < / i >
< i class = "fa fa-caret-up" ng-show = "datePicker.show" > < / i >
< / button >
< div class = "datepicker-dropdown" ng-show = "datePicker.show" >
< ul class = "list-unstyled" >
< li class = "row" >
2019-12-17 18:06:56 +01:00
< span class = "col-md-4" translate > {{ 'app.admin.stats_graphs.start' }}< / span >
2016-03-23 18:39:41 +01:00
< div class = "input-group black col-md-7 m-r" id = "date_pick_start" >
< input type = "text"
class="form-control"
uib-datepicker-popup="{{datePickerStart.format}}"
ng-model="datePickerStart.selected"
name="startDate"
is-open="datePickerStart.opened"
min-date="datePickerStart.minDate"
max-date="datePickerStart.maxDate"
datepicker-options="datePickerStart.options"
show-button-bar="false"
2019-12-17 18:06:56 +01:00
placeholder="{{ 'app.admin.stats_graphs.start' | translate }}"
2016-03-23 18:39:41 +01:00
ng-click="toggleStartDatePicker($event)"
2021-03-24 18:24:03 +01:00
required="true"/>
2016-03-23 18:39:41 +01:00
< span class = "input-group-btn" >
< button type = "button" class = "btn btn-default btn-search-datepicker" ng-click = "toggleStartDatePicker($event)" >
< i class = "glyphicon glyphicon-calendar" > < / i >
< / button >
< / span >
< / div >
< / li >
< li class = "row" >
2019-12-17 18:06:56 +01:00
< span class = "col-md-4" translate > {{ 'app.admin.stats_graphs.end' }}< / span >
2016-03-23 18:39:41 +01:00
< div class = "input-group black col-md-7 m-r" id = "date_pick_end" >
< input type = "text"
class="form-control"
uib-datepicker-popup="{{datePickerEnd.format}}"
ng-model="datePickerEnd.selected"
name="endDate"
is-open="datePickerEnd.opened"
min-date="datePickerEnd.minDate"
max-date="datePickerEnd.maxDate"
datepicker-options="datePickerEnd.options"
show-button-bar="false"
2019-12-17 18:06:56 +01:00
placeholder="{{ 'app.admin.stats_graphs.end' | translate }}"
2016-03-23 18:39:41 +01:00
ng-click="toggleEndDatePicker($event)"
2021-03-24 18:24:03 +01:00
required="true"/>
2016-03-23 18:39:41 +01:00
< span class = "input-group-btn" >
< button type = "button" class = "btn btn-default btn-search-datepicker" ng-click = "toggleEndDatePicker($event)" >
< i class = "glyphicon glyphicon-calendar" > < / i >
< / button >
< / span >
< / div >
< / li >
< li >
< button class = "btn btn-default text-primary pull-right" ng-click = "validateDateChange()" >
2019-12-17 18:06:56 +01:00
< i class = "fa fa-check green" > < / i > < span class = "hidden-xs" translate > {{ 'app.shared.buttons.apply' }}< / span >
2016-03-23 18:39:41 +01:00
< / button >
< / li >
< / ul >
< / div >
< / div >
< / form >
< uib-tabset justified = "true" >
2021-03-09 12:39:25 +01:00
< uib-tab ng-repeat = "(index, stat) in statistics" heading = "{{stat.label}}" select = "setActiveTab(stat, index)" ng-if = "hiddenTab(stat)" index = "index" class = "row" >
2016-03-23 18:39:41 +01:00
< div ng-if = "stat.graph.chart_type == 'discreteBarChart'" >
< div id = "rankingFilters" >
< form class = "form-inline m-t-md m-b-lg" >
< div class = "input-group" >
< span class = "input-group-addon" > < i class = "fa fa-filter" > < / i > < / span >
< select class = "form-control" ng-model = "ranking.groupCriterion" >
2019-12-17 18:06:56 +01:00
< option value = "subType" translate > {{ 'app.admin.stats_graphs.type' }}< / option >
2016-03-23 18:39:41 +01:00
< option value = "{{field.key}}" ng-repeat = "field in stat.additional_fields" > {{field.label}}< / option >
< / select >
< / div >
< div class = "input-group pull-right" >
< span class = "input-group-addon" > < i class = "fa fa-sort-amount-desc " > < / i > < / span >
< select class = "form-control" ng-model = "ranking.sortCriterion" >
2019-12-17 18:06:56 +01:00
< option value = "ca" ng-if = "stat.ca" translate > {{ 'app.admin.stats_graphs.revenue' }}< / option >
2016-03-23 18:39:41 +01:00
< option value = "{{t.key}}" ng-repeat = "t in stat.types" > {{t.label}}< / option >
< / select >
< / div >
< / form >
< / div >
< div class = "col-md-12" >
2019-12-17 18:06:56 +01:00
< h3 > {{ 'app.admin.stats_graphs.top_list_of' | translate}} {{stat.label}}< / h3 >
2016-03-23 18:39:41 +01:00
< div id = "chart-{{stat.es_type_key}}" >
< svg style = "height: 500px;width:100%" > < / svg >
< / div >
< / div >
< / div >
< div class = "col-md-12" ng-repeat = "type in stat.types" ng-if = "type.graph" >
< h3 > {{type.label}}< / h3 >
< div id = "chart-{{type.key}}" >
< svg style = "height: 500px;width:100%" > < / svg >
< / div >
< / div >
< / uib-tab >
< / uib-tabset >
< / div >
< / div >
2019-12-17 18:06:56 +01:00
< / section >