Set button's class 'button-small button-secondary' and fix indentation

This commit is contained in:
hanpama 2015-07-19 22:58:47 +09:00
parent c3a80e7e10
commit 616e8ea1e7
2 changed files with 3 additions and 4 deletions

View file

@ -22,7 +22,7 @@
</td>
{% endfor %}
<td>
<a class="button" href="
<a class="button button-small button-secondary" href="
{% url 'wagtailforms_delete_submission' form_page.id row.model_id %}">
delete</a>
</td>

View file

@ -99,11 +99,10 @@ def list_submissions(request, page_id):
for s in submissions:
form_data = s.get_data()
data_row = [s.submit_time] + [form_data.get(name) for name, label in data_fields]
data_rows.append(
{
data_rows.append({
"model_id": s.id,
"fields": data_row
})
})
return render(request, 'wagtailforms/index_submissions.html', {
'form_page': form_page,