File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
ckanext/querytool/templates/ajax_snippets Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 638638 {% set axis_max = chart.axis_max %}
639639 {% endif %}
640640
641- {% if axis_range=='true' and selected_chart_type not in ['pie', 'donut', 'sbar', 'shbar'] %}
641+ {% if selected_chart_type not in ['pie', 'donut', 'sbar', 'shbar'] %}
642642 {% set show_range = '' %}
643643 {% else %}
644644 {% set show_range = 'hidden' %}
645645 {% endif %}
646646
647+ {% if axis_range=='true' and selected_chart_type not in ['pie', 'donut', 'sbar', 'shbar'] %}
648+ {% set show_range_options = '' %}
649+ {% else %}
650+ {% set show_range_options = 'hidden' %}
651+ {% endif %}
652+
647653 < div class ="control-group show_axis_range_{{ n }} {{show_range}} ">
648654 < label class ="control-label " for ="chart_field_axis_range_{{ n }} "> {{ _('Set axis range') }}</ label >
649655 < div class ="controls ">
652658 </ div >
653659
654660 {# Axis range min #}
655- < div class ="control-group axis_range_min_{{n}} {{ show_range }} ">
661+ < div class ="control-group axis_range_min_{{n}} {{ show_range_options }} ">
656662 < label class ="control-label " for ="chart_field_axis_min_{{ n }} "> {{ _('Axis range minimum') }}</ label >
657663 < div class ="controls ">
658664 < input id ="chart_field_axis_min_{{ n }} " type ="text " name ="chart_field_axis_min_{{ n }} " value ="{{ axis_min }} " placeholder ="{{ _('Axis minimum') }} ">
659665 </ div >
660666 </ div >
661667
662668 {# Axis range max #}
663- < div class ="control-group axis_range_max_{{n}} {{ show_range }} ">
669+ < div class ="control-group axis_range_max_{{n}} {{ show_range_options }} ">
664670 < label class ="control-label " for ="chart_field_axis_max_{{ n }} "> {{ _('Axis range maximum') }}</ label >
665671 < div class ="controls ">
666672 < input id ="chart_field_axis_max_{{ n }} " type ="text " name ="chart_field_axis_max_{{ n }} " value ="{{ axis_max }} " placeholder ="{{ _('Axis maximum') }} ">
You can’t perform that action at this time.
0 commit comments