Many broken things
This commit is contained in:
7
passbook/admin/templates/generic/create.html
Normal file
7
passbook/admin/templates/generic/create.html
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends "generic/form.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block above_form %}
|
||||
<h1>{% trans 'Create' %}</h1>
|
||||
{% endblock %}
|
||||
16
passbook/admin/templates/generic/form.html
Normal file
16
passbook/admin/templates/generic/form.html
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends "administration/base.html" %}
|
||||
|
||||
{% load crispy_forms_tags %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% block above_form %}
|
||||
{% endblock %}
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<input type="submit" class="btn btn-primary" value="{% trans 'Update' %}" />
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
29
passbook/admin/templates/generic/list.html
Normal file
29
passbook/admin/templates/generic/list.html
Normal file
@ -0,0 +1,29 @@
|
||||
{% extends "administration/base.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
{% load utils %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% block above_table %}
|
||||
{% endblock %}
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% trans 'Name' %}</th>
|
||||
<th>{% trans 'Class' %}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for source in object_list %}
|
||||
<tr>
|
||||
<td>{{ source.name }}</td>
|
||||
<td>{{ source.cast|fieldtype }}</td>
|
||||
<td><a href="{% url 'passbook_admin:source-update' pk=source.pk %}">{% trans 'Edit' %}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
7
passbook/admin/templates/generic/update.html
Normal file
7
passbook/admin/templates/generic/update.html
Normal file
@ -0,0 +1,7 @@
|
||||
{% extends "generic/form.html" %}
|
||||
|
||||
{% load i18n %}
|
||||
|
||||
{% block above_form %}
|
||||
<h1>{% trans 'Update' %}</h1>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user