mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-15 02:33:13 +00:00
Set button's class 'button-small button-secondary' and fix indentation
This commit is contained in:
parent
c3a80e7e10
commit
616e8ea1e7
2 changed files with 3 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue