Many broken things

This commit is contained in:
Jens Langhammer
2018-11-16 09:10:35 +01:00
parent 79490984d1
commit fbaab4efaf
104 changed files with 3056 additions and 63 deletions

View File

@ -0,0 +1,7 @@
{% extends "generic/form.html" %}
{% load i18n %}
{% block above_form %}
<h1>{% trans 'Create' %}</h1>
{% endblock %}

View 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 %}

View 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 %}

View File

@ -0,0 +1,7 @@
{% extends "generic/form.html" %}
{% load i18n %}
{% block above_form %}
<h1>{% trans 'Update' %}</h1>
{% endblock %}