Commit 526a1339 authored by fred's avatar fred
Browse files

switch form rendering to |with_template

parent 5a6cd782
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block appbar %}
<h2>{% trans "Absence" %}</h2>
......@@ -9,7 +9,7 @@
<form method="post">
<div id="form-content">
{% csrf_token %}
{{ form.as_p }}
{{ form|with_template }}
</div>
{% block buttons %}
<div class="buttons">
......
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block appbar %}
<h2>{% trans "Add a diffusion" %}</h2>
......@@ -9,7 +9,7 @@
<form method="post">
<div id="form-content">
{% csrf_token %}
{{ form.as_p }}
{{ form|with_template }}
</div>
{% block buttons %}
<div class="buttons">
......
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block appbar %}
<h2>{{ emission.title }}
......@@ -121,7 +121,7 @@
<form id="add-schedule-form" action="add-schedule" method="POST" style="display: none;">
{% csrf_token %}
{{ add_schedule_form.as_p }}
{{ add_schedule_form|with_template }}
<input type="submit" value="{% trans "Add this schedule" %}"/>
</form>
......
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block extrascripts %}
<script src="{{ STATIC_URL }}ckeditor/ckeditor/ckeditor.js"></script>
......@@ -16,7 +16,7 @@
<form method="post" enctype="multipart/form-data">
<div id="form-content">
{% csrf_token %}
{{ form.as_p }}
{{ form|with_template }}
</div>
{% block buttons %}
<button class="enable-on-change">{% trans "Save" %}</button>
......
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block extrascripts %}
<script src="{{ STATIC_URL }}ckeditor/ckeditor/ckeditor.js"></script>
......@@ -23,7 +23,7 @@
<div id="form-content">
{% csrf_token %}
<input type="hidden" name="id_emission" value="{{ emission.id }}"/>
{{ form.as_p }}
{{ form|with_template }}
</div>
{% block buttons %}
<button>{% trans "Save" %}</button>
......
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block appbar %}
<h2>{% trans "Newsitem" %}</h2>
......@@ -16,7 +16,7 @@
<form method="post" enctype="multipart/form-data">
<div id="form-content">
{% csrf_token %}
{{ form.as_p }}
{{ form|with_template }}
</div>
{% block buttons %}
<button class="enable-on-change">{% trans "Save" %}</button>
......
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block appbar %}
<h2>{% trans "Add a sound" %}</h2>
......@@ -9,7 +9,7 @@
<form method="post">
<div id="form-content">
{% csrf_token %}
{{ form.as_p }}
{{ form|with_template }}
</div>
{% block buttons %}
<div class="buttons">
......@@ -20,9 +20,9 @@
<script>
$('#id_fragment').change(function() {
if (this.checked) {
$('#id_title').parent().show();
$('#id_title_p').show();
} else {
$('#id_title').parent().hide();
$('#id_title_p').hide();
}
}).trigger('change');
</script>
......
{% extends "base.html" %}
{% load i18n %}
{% load gadjo i18n %}
{% block appbar %}
<h2>{% trans "Sound" %}</h2>
......@@ -9,7 +9,7 @@
<form method="post">
<div id="form-content">
{% csrf_token %}
{{ form.as_p }}
{{ form|with_template }}
</div>
{% block buttons %}
<div class="buttons">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment