update formats
This commit is contained in:
@@ -6,6 +6,11 @@
|
|||||||
<input type="submit" value="Update">
|
<input type="submit" value="Update">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{% if request.user.is_superuser %}
|
||||||
|
<a href="{% url 'admin:oef_formats_change' object.id %}">Admin</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<h2>Entries</h2>
|
<h2>Entries</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% for entry in object.get_entries %}
|
{% for entry in object.get_entries %}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
{% for format in formats %}
|
{% for format in formats %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'oef:format_update' format.id %}">{{ format.name }}</a>
|
<a href="{% url 'oef:format_update' format.id %}">{{ format.name }}</a>
|
||||||
<a href="{% url 'oef:formats_apply' format.id %}">apply</a>
|
<a href="{% url 'oef:formats_apply' format.id %}">apply</a> [{{ format.get_entries.count }}]
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user