Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Added UI options to configure Google Sheets Export.
Browse files Browse the repository at this point in the history
    
- Flattened or tabular output
- Export of XLSForm data
  • Loading branch information
pitzer committed Jul 30, 2015
1 parent dc4f902 commit c0c1fcf
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions templates/export_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1>{{ export_type_name|upper }} {% blocktrans %}Exports{% endblocktrans %}</h1>
<span style='float:middle;'>
<div>
<input type="submit" class="btn btn-primary" value="{% trans 'New Export' %}" />
{% if export_type == 'xls' or export_type == 'csv' %}
{% if export_type == 'xls' or export_type == 'csv' or export_type == 'gsheets' %}
<a href="#advanced-export-modal" role="button" class="btn" data-toggle="modal">{% trans "Advanced Export" %}</a>
{% endif %}
</div>
Expand Down Expand Up @@ -61,9 +61,19 @@ <h3>{% trans "Advanced Export" %}</h3>
<option value="/" selected>/ ({% trans "Slash" %})</option>
</select>
<label class="checkbox">
<input type="checkbox" name="options[dont_split_select_multiples]" value="yes" />
{% trans "DONT split select multiple choice answers into separate columns" %}
<input type="checkbox" name="options[split_select_multiples]" />
{% trans "Split select multiple choice answers into separate columns" %}
</label>
{% if export_type == 'gsheets' %}
<label class="checkbox">
<input type="checkbox" name="options[flatten_repeated_fields]" checked="yes" />
{% trans "Flatten repeated groups into a single worksheet." %}
</label>
<label class="checkbox">
<input type="checkbox" name="options[export_xlsform]" checked="yes" />
{% trans "Export the XLSForm along with the survey data." %}
</label>
{% endif %}
</div>
{% endif %}
<div class="modal-footer">
Expand Down

0 comments on commit c0c1fcf

Please sign in to comment.