0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Move site create/edit form into an include

This commit is contained in:
Matt Westcott 2015-08-16 18:20:58 +02:00
parent 57590f7bf4
commit e86a005d1a
3 changed files with 6 additions and 9 deletions

View File

@ -0,0 +1,4 @@
{% include "wagtailadmin/shared/field_as_li.html" with field=form.hostname %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.port %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.root_page %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.is_default_site %}

View File

@ -12,11 +12,7 @@
{% csrf_token %}
<div class="nice-padding">
<ul class="fields">
{% include "wagtailadmin/shared/field_as_li.html" with field=form.hostname %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.port %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.root_page %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.is_default_site %}
{% include "wagtailsites/_form.html" %}
<li><input type="submit" value="{% trans 'Save' %}" /></li>
</ul>
</div>

View File

@ -13,10 +13,7 @@
{% csrf_token %}
<ul class="fields">
{% include "wagtailadmin/shared/field_as_li.html" with field=form.hostname %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.port %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.root_page %}
{% include "wagtailadmin/shared/field_as_li.html" with field=form.is_default_site %}
{% include "wagtailsites/_form.html" %}
<li>
<input type="submit" value="{% trans 'Save' %}" />