changed form layout
This commit is contained in:
parent
c7fd91d11c
commit
4a814bbfe4
@ -24,12 +24,15 @@ Text bearbeiten
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<form id="text_detail_form" method="post" action="#">
|
<form id="text_detail_form" method="post" action="#">
|
||||||
<div class="grid">
|
<section>
|
||||||
|
<label>
|
||||||
|
<span class="required">Titel</span>
|
||||||
|
<input class="required" id="form_Titel" name="form_Titel" aria-Label="Titel" placeholder="Titel" required value="{{ text['Titel'] }}" />
|
||||||
|
</label>
|
||||||
|
</section>
|
||||||
|
<hr />
|
||||||
|
<section class="grid">
|
||||||
<div>
|
<div>
|
||||||
<label>
|
|
||||||
<span class="required">Titel</span>
|
|
||||||
<input class="required" id="form_Titel" name="form_Titel" aria-Label="Titel" placeholder="Titel" required value="{{ text['Titel'] }}" />
|
|
||||||
</label>
|
|
||||||
<label>
|
<label>
|
||||||
Untertitel
|
Untertitel
|
||||||
<input id="form_Untertitel" name="form_Untertitel" aria-Label="Untertitel" placeholder="Untertitel" value="{{ text['Untertitel'] }}" />
|
<input id="form_Untertitel" name="form_Untertitel" aria-Label="Untertitel" placeholder="Untertitel" value="{{ text['Untertitel'] }}" />
|
||||||
@ -41,6 +44,8 @@ Text bearbeiten
|
|||||||
{% for r in reihen %}<option value="{{ r.ID }}"{% if r.ID == text['Reihe'] %} selected{% endif %}>{{ r.Titel }}</option>{% endfor %}
|
{% for r in reihen %}<option value="{{ r.ID }}"{% if r.ID == text['Reihe'] %} selected{% endif %}>{{ r.Titel }}</option>{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
<label>
|
<label>
|
||||||
<span class="required">Textform</span>
|
<span class="required">Textform</span>
|
||||||
<select id="form_Textform" name="form_Textform" aria-label="Textform" required>
|
<select id="form_Textform" name="form_Textform" aria-label="Textform" required>
|
||||||
@ -56,21 +61,17 @@ Text bearbeiten
|
|||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
</section>
|
||||||
<fieldset>
|
<hr />
|
||||||
<legend>Genre(s)</legend>
|
<section>
|
||||||
<div class="grid">
|
<fieldset>
|
||||||
{% for g in genres %}
|
<legend>Genre(s)</legend>
|
||||||
<div><label>
|
{% for g in genres %}
|
||||||
<input name="form_Genres" type="checkbox" value="{{ g.ID }}" {% if g.ID in text["Genres"] %} checked {% endif %}/>
|
<input id="form_Genres_{{ g.ID }}" name="form_Genres" type="checkbox" value="{{ g.ID }}" {% if g.ID in text["Genres"] %} checked {% endif %}/>
|
||||||
{{ g.Genre }}
|
<label for="form_Genres_{{ g.ID }}">{{ g.Genre }}</label>
|
||||||
</label></div>
|
{% endfor %}
|
||||||
{{ loop.cycle('', '</div><div class="grid">' | safe) }}
|
</fieldset>
|
||||||
{% endfor %}
|
</section>
|
||||||
</div>
|
|
||||||
</fieldset>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<footer class="grid">
|
<footer class="grid">
|
||||||
<button id="form_submit" type="submit" formmethod="post" formaction="{% if create_mode %}{{ url_for('text.create') }}{% else %}{{ url_for('text.update', id=text['ID']) }}{% endif %}">
|
<button id="form_submit" type="submit" formmethod="post" formaction="{% if create_mode %}{{ url_for('text.create') }}{% else %}{{ url_for('text.update', id=text['ID']) }}{% endif %}">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user