Compare commits

..

17 Commits

Author SHA1 Message Date
306eb20257 docs: update user manual with simplified program management for animators 2024-02-28 17:19:21 +01:00
5ae85083a5 db: create program editors groups 2024-02-28 17:19:21 +01:00
1ac83f1066 db: add missing migration on schedule timezone 2024-02-28 17:19:21 +01:00
7e0e6e9652 episode-form: add tracks inline formset 2024-02-28 17:19:21 +01:00
ab1b152a46 templatetags: display edit-links for admins 2024-02-28 17:19:21 +01:00
8821cd86c6 templates: update after merging branch 118-design 2024-02-28 17:19:21 +01:00
4ea93c9eff templates: add in-context edition links 2024-02-28 17:19:21 +01:00
40ca2064d9 db: migrations merge 2024-02-28 17:19:21 +01:00
e840fbabac templates: update container block names 2024-02-28 17:19:21 +01:00
ff2a8ff6d4 signals: disable schedule_pre_save when using loaddata 2024-02-28 17:19:21 +01:00
d33256edb8 templates: set document type to html, prevent quicks mode 2024-02-28 17:19:21 +01:00
10b9e9280f context_processors: prevent a null station error when no default station is defined 2024-02-28 17:19:21 +01:00
ee7f301f44 views/program: allow changing program cover 2024-02-28 17:19:21 +01:00
64984d69d5 misc: add a profile view for authenticated users 2024-02-28 17:19:21 +01:00
4f856c0705 misc: use the django authentication system 2024-02-28 17:19:21 +01:00
8b4da52760 misc: move station and audio_streams to context_processors (in order to have them available in accounts views) 2024-02-28 17:19:21 +01:00
aa171375e5 misc: edit programs in site 2024-02-28 17:19:18 +01:00
3 changed files with 20 additions and 9 deletions

View File

@ -74,8 +74,9 @@ 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' %}"> <a class="nav-item" href="{% url "logout" %}" title="{% translate "Disconnect" %}"
<i title="{% translate 'disconnect' %}" class="fa fa-power-off"></i> aria-label="{% translate "Disconnect" %}">
<i class="fa fa-power-off"></i>
</a> </a>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -23,7 +23,6 @@
<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,12 +16,23 @@
<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 %}
<table> {% csrf_token %}
{{ form.as_table }} {% for field in form %}
{% render_honeypot_field "website" %} <div class="field is-horizontal">
</table> <label class="label">{{ field.label }}</label>
<br/> <div class="control">{{ field }}</div>
<input type="submit" value="Update" class="button is-success"> </div>
{% 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>