4849955a16
- Better config icon. - Renamed media to files (only for GUI). - Add datatable function for motion and asssignemnt overview table. Removed old filter/sorting code. - Some more template styling work.
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
{% extends 'base.html' %}
|
||
|
||
{% load i18n %}
|
||
|
||
{% block title %}
|
||
{{ block.super }} –
|
||
{% if mediafile %}
|
||
{% trans "Edit file" %}
|
||
{% else %}
|
||
{% trans "New file" %}
|
||
{% endif %}
|
||
{% endblock %}
|
||
|
||
{% block content %}
|
||
<h1>
|
||
{% if mediafile %}
|
||
{% trans "Edit file" %}
|
||
{% else %}
|
||
{% trans "New file" %}
|
||
{% endif %}
|
||
<small class="pull-right">
|
||
<a href="{% url 'mediafile_list' %}" class="btn btn-mini"><i class="icon-chevron-left"></i> {% trans "Back to overview" %}</a>
|
||
</small>
|
||
</h1>
|
||
<form action="" method="post" enctype="multipart/form-data">{% csrf_token %}
|
||
{% include "form.html" %}
|
||
<p>
|
||
{% if perms.mediafile.can_manage %}
|
||
{% include "formbuttons_saveapply.html" %}
|
||
{% else %}
|
||
{% include "formbuttons_save.html" %}
|
||
{% endif %}
|
||
<a href="{% url 'mediafile_list' %}" class="btn">{% trans 'Cancel' %}</a>
|
||
</p>
|
||
<small>* {% trans "required" %}</small>
|
||
</form>
|
||
{% endblock %}
|