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:
parent
57590f7bf4
commit
e86a005d1a
4
wagtail/wagtailsites/templates/wagtailsites/_form.html
Normal file
4
wagtail/wagtailsites/templates/wagtailsites/_form.html
Normal 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 %}
|
@ -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>
|
||||
|
@ -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' %}" />
|
||||
|
Loading…
Reference in New Issue
Block a user