Skip to content

Commit

Permalink
Fix selection label on report creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolidori committed Mar 9, 2021
1 parent a245dac commit d14ef00
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,13 @@
{{ form.select('chart_resource', label=_('Resource'), options=dataset_resources, selected=data.chart_resource, error=errors.chart_resource, attrs={'required': 'required'}) }}
{% endblock %}


<legend>{{ _('Measure(s)') }}</legend>
<div class="selection_label" style='margin-left:22px;'>
{{ form.input('selection_label', id='field-selection-label', label=_('Selection Label'), placeholder=data.selection_label or _('Displayed Measure'), value=data.selection_label, error=errors.selection_label) }}
</div>
{% set columns = h.querytool_get_numeric_resource_columns(data.chart_resource) %}
<div id="y-axis-columns-container" {% if columns | length == 0 %} style="display: none;" {% endif %}>
<div id="y-axis-columns-results">

<div class="selection_label" style='margin-left:22px;'>
{{ form.input('selection_label', id='field-selection-label', label=_('Selection Label'), placeholder=data.selection_label or _('Displayed Measure'), value=data.selection_label, error=errors.selection_label) }}
</div>

{% for column in columns %}
{% set column_id = h.querytool_get_uuid() %}
{% set measure = h.querytool_pick_first_by_attr_value(querytool.y_axis_columns, 'name', column) %}
Expand Down

0 comments on commit d14ef00

Please sign in to comment.