Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
django-panik-emissions
Commits
526a1339
Commit
526a1339
authored
May 15, 2022
by
fred
Browse files
switch form rendering to |with_template
parent
5a6cd782
Changes
8
Hide whitespace changes
Inline
Side-by-side
emissions/templates/emissions/absence_form.html
View file @
526a1339
{% 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"
>
...
...
emissions/templates/emissions/diffusion_form.html
View file @
526a1339
{% 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"
>
...
...
emissions/templates/emissions/emission_detail.html
View file @
526a1339
{% 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>
...
...
emissions/templates/emissions/emission_form.html
View file @
526a1339
{% 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>
...
...
emissions/templates/emissions/episode_form.html
View file @
526a1339
{% 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>
...
...
emissions/templates/emissions/newsitem_form.html
View file @
526a1339
{% 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>
...
...
emissions/templates/emissions/soundfile_form.html
View file @
526a1339
{% 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>
...
...
emissions/templates/emissions/soundfile_form_update.html
View file @
526a1339
{% 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"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment