Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Improve the contact import UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Geddes committed Dec 10, 2013
1 parent 1e761ff commit 261d07a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions go/contacts/templates/contacts/includes/tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ <h3>Schedule CSV Export of Contacts</h3>
{% csrf_token %}
<div class="modal-body">
<p><span class="help-block">
The file is potentially quite large and as a result the export
will be done in the background. When completed the results will
The file is potentially quite large and as a result the export
will be done in the background. When completed the results will
be sent to you as a CSV file attached to an email.
</span><br/></p>
</div>
Expand All @@ -125,20 +125,27 @@ <h3>Please match the sample to the fields provided</h3>
<fieldset>
<table class="table table-bordered table-striped">
<tbody>
<thead>
<tr>
<th>Field</th>
<th>Mapping</th>
<th>Format</th>
</tr>
</thead>
{% for column, value in contact_data_row.items %}
<tr>
<td>
<td>{{ value }}</td>
<td>
<select class="form-control" name="column-{{ forloop.counter0 }}">
<option value="">Please Select:</option>
<option value="" disabled>Please Select:</option>
{% for header, label in contact_data_headers.items %}
<option {% if header == column %}selected="true"{% endif %}value="{{ header }}">{{ label }}</option>
{% endfor %}
</select>
</td>
<td>{{ value }}</td>
<td>
<select class="form-control" name="normalize-{{ forloop.counter0 }}">
<option value="">Please Select:</option>
<option value="" disabled>Please Select:</option>
{% for name, label in field_normalizer %}
<option value="{{name}}">{{label}}</option>
{% endfor %}
Expand Down

0 comments on commit 261d07a

Please sign in to comment.