Compare commits

..

17 Commits

Author SHA1 Message Date
07f3881dde docs: update user manual with simplified program management for animators 2024-02-28 16:57:04 +01:00
6469913f8a db: create program editors groups 2024-02-28 16:57:04 +01:00
75f1973d41 db: add missing migration on schedule timezone 2024-02-28 16:57:04 +01:00
b96cf59780 episode-form: add tracks inline formset 2024-02-28 16:57:04 +01:00
63c7fadd3f templatetags: display edit-links for admins 2024-02-28 16:57:04 +01:00
c9ddd38b9b templates: update after merging branch 118-design 2024-02-28 16:57:04 +01:00
72cd24083a templates: add in-context edition links 2024-02-28 16:57:04 +01:00
fd3411ed38 db: migrations merge 2024-02-28 16:57:04 +01:00
fddaaee169 templates: update container block names 2024-02-28 16:57:04 +01:00
42ae35a6ae signals: disable schedule_pre_save when using loaddata 2024-02-28 16:57:04 +01:00
1bfbdb304f templates: set document type to html, prevent quicks mode 2024-02-28 16:57:00 +01:00
27b0bec870 context_processors: prevent a null station error when no default station is defined 2024-02-28 16:55:14 +01:00
5986d86da3 views/program: allow changing program cover 2024-02-28 16:52:03 +01:00
b4539481e6 misc: add a profile view for authenticated users 2024-02-28 16:43:37 +01:00
25f6d91903 misc: use the django authentication system 2024-02-28 16:23:25 +01:00
8b3d3a2483 misc: move station and audio_streams to context_processors (in order to have them available in accounts views) 2024-02-28 16:23:25 +01:00
c8b0d1c5fb misc: edit programs in site 2024-02-28 16:23:19 +01:00
3 changed files with 9 additions and 20 deletions

View File

@ -74,9 +74,8 @@ Usefull context:
<a class="nav-item" href="{% url "profile" %}" target="new"> <a class="nav-item" href="{% url "profile" %}" target="new">
{% translate "Profile" %} {% translate "Profile" %}
</a> </a>
<a class="nav-item" href="{% url "logout" %}" title="{% translate "Disconnect" %}" <a class="nav-item" href="{% url 'logout' %}">
aria-label="{% translate "Disconnect" %}"> <i title="{% translate 'disconnect' %}" class="fa fa-power-off"></i>
<i class="fa fa-power-off"></i>
</a> </a>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -23,6 +23,7 @@
<table> <table>
{{ form.as_table }} {{ form.as_table }}
{% render_honeypot_field "website" %} {% render_honeypot_field "website" %}
</table> </table>
<br/> <br/>
<input type="submit" value="Update" class="button is-success"> <input type="submit" value="Update" class="button is-success">

View File

@ -16,23 +16,12 @@
<section class="container"> <section class="container">
<div> <div>
<form method="post" enctype="multipart/form-data">{% csrf_token %} <form method="post" enctype="multipart/form-data">{% csrf_token %}
{% csrf_token %} <table>
{% for field in form %} {{ form.as_table }}
<div class="field is-horizontal"> {% render_honeypot_field "website" %}
<label class="label">{{ field.label }}</label> </table>
<div class="control">{{ field }}</div> <br/>
</div> <input type="submit" value="Update" class="button is-success">
{% if field.errors %}
<p class="help is-danger">{{ field.errors }}</p>
{% endif %}
{% if field.help_text %}
<p class="help">{{ field.help_text|safe }}</p>
{% endif %}
{% endfor %}
<div class="has-text-right">
<button type="submit" class="button">{% translate "Update" %}</button>
</div>
</form> </form>
</div> </div>
</section> </section>