mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 01:03:11 +00:00
merging from ui update branch
This commit is contained in:
parent
757b90bb52
commit
c73d5c6ecc
42 changed files with 139 additions and 183 deletions
|
|
@ -3,7 +3,7 @@ from django.contrib.auth import get_user_model
|
|||
from django.contrib.auth.forms import AuthenticationForm, PasswordResetForm
|
||||
|
||||
class SearchForm(forms.Form):
|
||||
q = forms.CharField(label="Search term")
|
||||
q = forms.CharField(label="Search term", widget=forms.TextInput(attrs={'placeholder': 'Search'}))
|
||||
|
||||
|
||||
class ExternalLinkChooserForm(forms.Form):
|
||||
|
|
|
|||
|
|
@ -597,6 +597,26 @@ ul.inline li:first-child, li.inline:first-child{
|
|||
white-space: nowrap
|
||||
}
|
||||
}
|
||||
|
||||
header &{
|
||||
margin:0;
|
||||
padding:0;
|
||||
.fields{
|
||||
li{
|
||||
padding:0;
|
||||
}
|
||||
.field{
|
||||
padding:0;
|
||||
}
|
||||
.field input{
|
||||
padding:0.4em 1.4em 0.4em 2em;
|
||||
}
|
||||
.field:before{
|
||||
font-size:1.4em;
|
||||
top:0.45em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Transitions */
|
||||
|
|
|
|||
|
|
@ -388,6 +388,13 @@ header{
|
|||
|
||||
.left{
|
||||
float:left;
|
||||
margin-right:1em;
|
||||
width:50%;
|
||||
&:first-child{
|
||||
padding-bottom:0.5em;
|
||||
float:none;
|
||||
}
|
||||
|
||||
}
|
||||
.right{
|
||||
float:right;
|
||||
|
|
@ -577,7 +584,7 @@ footer, .logo{
|
|||
.column(2);
|
||||
}
|
||||
.col3{
|
||||
.column(3);
|
||||
.column(3) !important;
|
||||
}
|
||||
.col4{
|
||||
.column(4);
|
||||
|
|
@ -732,6 +739,17 @@ footer, .logo{
|
|||
header{
|
||||
padding-top:1.5em;
|
||||
padding-bottom:1.5em;
|
||||
|
||||
.left{
|
||||
float:left;
|
||||
margin-right:0;
|
||||
|
||||
&:first-child{
|
||||
padding-bottom:0;
|
||||
float:left;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
footer{
|
||||
width:80%;
|
||||
|
|
|
|||
|
|
@ -83,7 +83,6 @@ function InlinePanel(opts) {
|
|||
var self = {};
|
||||
|
||||
self.setHasContent = function(){
|
||||
console.log($('> li:visible', self.formsUl));
|
||||
if($('li:visible', self.formsUl).length){
|
||||
self.formsUl.parent().removeClass('empty');
|
||||
}else{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
<<<<<<< HEAD:django-wagtail/wagtail/wagtailadmin/templates/wagtailadmin/chooser/browse.html
|
||||
<header class="nice-padding">
|
||||
<h1>Choose a page</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Choose a page" %}
|
||||
{% include 'wagtailadmin/chooser/_search_form.html' %}
|
||||
|
||||
<div class="nice-padding">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<header class="nice-padding">
|
||||
<h1>Add an email link</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Add an email link" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
{% include 'wagtailadmin/chooser/_link_types.html' with current='email' %}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<header class="nice-padding">
|
||||
<h1>Add an external link</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Add an external link" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
{% include 'wagtailadmin/chooser/_link_types.html' with current='external' %}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<header class="nice-padding">
|
||||
<h1>Choose a page</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Choose a page" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
{% include 'wagtailadmin/chooser/_link_types.html' with current='internal' %}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@
|
|||
{% block titletag %}Create a page in {{ parent_page.title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Create a page in <span>{{ parent_page.title }}</span></h1>
|
||||
</header>
|
||||
{% include "verdantadmin/shared/header.html" with title="Create a page in" subtitle=parent_page.title %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<p>Choose which type of page you'd like to create.</p>
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@
|
|||
{% block bodyclass %}menu-explorer{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Delete <span>{{ page.title }}</span></h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Delete" subtitle=page.title %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<p>Are you sure you want to delete this page? {% if descendant_count %}This will also delete {{ descendant_count }} subpage{{ descendant_count|pluralize }}.{% endif %}</p>
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
{% block titletag %}Move {{ page.title }}{% endblock %}
|
||||
{% block bodyclass %}menu-explorer{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Move <span>{{ page_to_move.title }}</span></h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Move" subtitle=page_to_move.title %}
|
||||
|
||||
<div class="nice-padding">
|
||||
{% if page_to_move.is_leaf %}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
{% block titletag %}Unpublish {{ page.title }}{% endblock %}
|
||||
{% block bodyclass %}menu-explorer{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Unpublish <span>{{ page.title }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Unpublish" subtitle=page.title %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<p>Are you sure you want to unpublish this page?</p>
|
||||
|
|
|
|||
|
|
@ -3,9 +3,7 @@
|
|||
{% block bodyclass %}menu-explorer{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Pages using <span>{{ content_type.model_class.get_verbose_name }}</span></h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Pages using" subtitle=content_type.model_class.get_verbose_name %}
|
||||
|
||||
<div class="nice-padding">
|
||||
{% include "wagtailadmin/pages/list.html" with sortable=1 allow_navigation=0 sortable=0 %}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@
|
|||
{% block bodyclass %}menu-explorer page-editor create{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="merged tab-merged nice-padding">
|
||||
<h1>New <span>{{ content_type.model_class.get_verbose_name }}</span></h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="New" merged=1 tabbed=1 subtitle=content_type.model_class.get_verbose_name %}
|
||||
|
||||
<form id="page-edit-form" action="{% url 'wagtailadmin_pages_create' content_type.app_label content_type.model parent_page.id %}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
{% extends "wagtailadmin/base.html" %}
|
||||
{% block titletag %}Where do you want to create a {{ content_type.model_class.get_verbose_name }}{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">>
|
||||
<h1>Where do you want to create this {{ content_type.model_class.get_verbose_name }}?</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Where do you want to create this" subtitle=content_type.model_class.get_verbose_name %}
|
||||
|
||||
<ul>
|
||||
{% for page in parent_pages %}
|
||||
<li><a href="{% url 'wagtailadmin_pages_create' content_type.app_label content_type.model page.id %}">{{ page.title }}</a></li>
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
{% block titletag %}Create a new page{% endblock %}
|
||||
{% block bodyclass %}menu-explorer{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Create a new page</h1>
|
||||
</header>
|
||||
|
||||
{% include "verdantadmin/shared/header.html" with title="Create a new page" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<p>Your new page will be saved in the <em>top level</em> of your website. You can move it after saving.</p>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
<header class="nice-padding {% if merged %}merged{% endif %} {% if tabbed %}tab-merged{% endif %}">
|
||||
<div class="row row-flush">
|
||||
<div class="left col6">
|
||||
<h1>{{ title }} <span>{{ subtitle }}</span></h1>
|
||||
</div>
|
||||
{% if form %}
|
||||
<div class="left col3">
|
||||
<form class="search-bar" action="{% url search_url %}" method="get">
|
||||
<ul class="fields">
|
||||
{% for field in form %}
|
||||
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
|
||||
{% endfor %}
|
||||
<li class="submit"><input type="submit" value="Search" /></li>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="right col3">
|
||||
{% if add_link %}
|
||||
<a href="{% url add_link %}" class="button bicolor icon icon-plus">{{ add_text }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
<header class="merged tab-merged nice-padding">
|
||||
<h1>Choose a document</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Choose a document" tabbed=1 merged=1 %}
|
||||
|
||||
{% if uploadform %}
|
||||
<ul class="tab-nav merged">
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Add document</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Add document" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<form action="{% url 'wagtaildocs_add_document' %}" method="POST" enctype="multipart/form-data">
|
||||
|
|
|
|||
|
|
@ -2,9 +2,7 @@
|
|||
{% block titletag %}Delete {{ document.title }}{% endblock %}
|
||||
{% block bodyclass %}menu-documents{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Delete document <span>{{ document.title }}</span></h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Delete document" subtitle=document.title %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<p>Are you sure you want to delete this document?</p>
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Editing <span>{{ document.title }}</span></h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=document.title %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<form action="{% url 'wagtaildocs_edit_document' document.id %}" method="POST" enctype="multipart/form-data">
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@
|
|||
var wait = setTimeout(search, 200);
|
||||
$(this).data('timer', wait);
|
||||
});
|
||||
$('a.suggested-tag').click(function() {
|
||||
$('#id_q').val($(this).text());
|
||||
search();
|
||||
return false;
|
||||
})
|
||||
// $('a.suggested-tag').click(function() {
|
||||
// $('#id_q').val($(this).text());
|
||||
// search();
|
||||
// return false;
|
||||
// })
|
||||
|
||||
var search_current_index = 0;
|
||||
var search_next_index = 0;
|
||||
|
|
@ -35,33 +35,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<div class="row row-flush">
|
||||
<div class="left col9">
|
||||
<h1>Documents</h1>
|
||||
</div>
|
||||
<div class="right col3">
|
||||
<a href="{% url 'wagtaildocs_add_document' %}" class="button bicolor icon icon-plus">Add a document</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<form class="search-bar full-width nice-padding" action="{% url 'wagtaildocs_index' %}" method="get">
|
||||
<ul class="fields">
|
||||
{% for field in form %}
|
||||
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
|
||||
{% endfor %}
|
||||
<li class="submit"><input type="submit" value="Search" /></li>
|
||||
{% if popular_tags %}
|
||||
<li class="taglist">
|
||||
<h3>Popular tags</h3>
|
||||
{% for tag in popular_tags %}
|
||||
<a class="suggested-tag tag" href="{% url 'wagtaildocs_search' %}?q={{ tag.name|urlencode }}">{{ tag.name }}</a>
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</form>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Documents" add_link="wagtaildocs_add_document" add_text="Add a document" search_url="wagtaildocs_index" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<div id="document-results" class="documents">
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
{% load image_tags ellipsistrim%}
|
||||
|
||||
<header class="merged nice-padding">
|
||||
<h1>Insert embed</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Insert embed" merged=1 %}
|
||||
|
||||
<div class="tab-content">
|
||||
<section id="form" class="active nice-padding">
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
{% load image_tags ellipsistrim%}
|
||||
|
||||
<header class="merged tab-merged nice-padding">
|
||||
<h1>Choose an image</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Choose an image" merged=1 tabbed=1 %}
|
||||
|
||||
{% if uploadform %}
|
||||
<ul class="tab-nav merged">
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
{% load image_tags %}
|
||||
|
||||
<header class="nice-padding">
|
||||
<h1>Choose a format</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Choose a format" %}
|
||||
|
||||
<div class="row row-flush nice-padding">
|
||||
<div class="col6">
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Add image</h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Add image" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<form action="{% url 'wagtailimages_add_image' %}" method="POST" enctype="multipart/form-data">
|
||||
|
|
|
|||
|
|
@ -4,19 +4,19 @@
|
|||
{% block bodyclass %}menu-images{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Delete image</h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Delete image" %}
|
||||
|
||||
<div class="row row-flush nice-padding">
|
||||
<div class="col6">
|
||||
{% image image max-800x600 %}
|
||||
</div>
|
||||
<div class="col6">
|
||||
<p>Are you sure you want to delete this image?</p>
|
||||
<form action="{% url 'wagtailimages_delete_image' image.id %}" method="POST">
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Yes, delete" class="serious" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<p>Are you sure you want to delete this image?</p>
|
||||
<form action="{% url 'wagtailimages_delete_image' image.id %}" method="POST">
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Yes, delete" class="serious" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Editing <span>{{ image.title }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=image.title %}
|
||||
|
||||
<div class="row row-flush nice-padding">
|
||||
|
||||
<div class="col7">
|
||||
|
|
|
|||
|
|
@ -38,37 +38,12 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<div class="row row-flush">
|
||||
<div class="left col9">
|
||||
<h1>Images</h1>
|
||||
</div>
|
||||
<div class="right col3">
|
||||
<a href="{% url 'wagtailimages_add_image' %}" class="button bicolor icon icon-plus">Add an image</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<form class="search-bar full-width nice-padding" action="{% url 'wagtailimages_index' %}" method="get">
|
||||
<ul class="fields">
|
||||
{% for field in form %}
|
||||
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
|
||||
{% endfor %}
|
||||
<li class="submit"><input type="submit" value="Search" /></li>
|
||||
{% if popular_tags %}
|
||||
<li class="taglist">
|
||||
<h3>Popular tags</h3>
|
||||
{% for tag in popular_tags %}
|
||||
<a class="suggested-tag tag" href="{% url 'wagtailimages_search_image' %}?q={{ tag.name|urlencode }}">{{ tag.name }}</a>
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</form>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Images" add_link="wagtailimages_add_image" add_text="Add an image" search_url="wagtailimages_index" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<div id="image-results">
|
||||
{% include "wagtailimages/images/results.html" %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
{% extends "wagtailadmin/base.html" %}
|
||||
{% block titletag %}Add redirect{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Add redirect</h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Add redirect" %}
|
||||
|
||||
<form action="{% url 'wagtailredirects_add_redirect' %}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
@ -13,6 +12,7 @@
|
|||
<input type="submit" value="Save" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_css %}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
{% block titletag %}Delete redirect {{ redirect.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Delete <span>{{ redirect.title }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Delete" subtitle=redirect.title %}
|
||||
|
||||
<div class="row row-flush nice-padding">
|
||||
<p>Are you sure you want to delete this redirect?</p>
|
||||
<form action="{% url 'wagtailredirects_delete_redirect' redirect.id %}" method="POST">
|
||||
|
|
@ -12,4 +12,5 @@
|
|||
<input type="submit" value="Yes, delete" class="serious" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
{% extends "wagtailadmin/base.html" %}
|
||||
{% block titletag %}Editing {{ redirect.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Editing <span>{{ redirect.title }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=redirect.title %}
|
||||
|
||||
<form action="{% url 'wagtailredirects_edit_redirect' redirect.id %}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
@ -14,6 +13,7 @@
|
|||
<a href="{% url 'wagtailredirects_delete_redirect' redirect.id %}" class="button button-secondary no">Delete redirect</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_css %}
|
||||
|
|
|
|||
|
|
@ -3,16 +3,7 @@
|
|||
{% block bodyclass %}page-explorer{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<div class="row row-flush">
|
||||
<div class="left col9">
|
||||
<h1>Redirects</h1>
|
||||
</div>
|
||||
<div class="right col3">
|
||||
<a href="{% url 'wagtailredirects_add_redirect' %}" class="button bicolor icon icon-plus">Add redirect</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Redirects" add_link="wagtailredirects_add_redirect" add_text="Add redirect" %}
|
||||
|
||||
<table class="listing full-width">
|
||||
<col />
|
||||
|
|
@ -47,4 +38,5 @@
|
|||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
<header class="nice-padding">
|
||||
<h1>Choose <span>{{ snippet_type_name }}</span></h1>
|
||||
</header>
|
||||
{% include "wagtailadmin/shared/header.html" with title="Choose" subtitle=snippet_type_name %}
|
||||
|
||||
<div class="nice-padding">
|
||||
{% include "wagtailsnippets/snippets/list.html" with choosing=1 %}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
{% block titletag %}Delete {{ snippet_type_name}} - {{ instance }}{% endblock %}
|
||||
{% block bodyclass %}menu-snippets{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Delete <span>{{ snippet_type_name }} - {{ instance }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "verdantadmin/shared/header.html" with title="Delete" subtitle=instance %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<p>Are you sure you want to delete this {{ snippet_type_name }}?</p>
|
||||
|
|
@ -13,4 +12,5 @@
|
|||
<input type="submit" value="Yes, delete" class="serious" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -2,10 +2,8 @@
|
|||
{% block titletag %}New {{ snippet_type_name}}{% endblock %}
|
||||
{% block bodyclass %}menu-snippets{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>New <span>{{ snippet_type_name }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="New" subtitle=snippet_type_name %}
|
||||
|
||||
<form action="{% url 'wagtailsnippets_create' content_type.app_label content_type.model %}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,8 @@
|
|||
{% block titletag %}Editing {{ snippet_type_name}} - {{ instance }}{% endblock %}
|
||||
{% block bodyclass %}menu-snippets{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Editing <span>{{ snippet_type_name }} - {{ instance }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=instance %}
|
||||
|
||||
<form action="{% url 'wagtailsnippets_edit' content_type.app_label content_type.model instance.id %}" method="POST">
|
||||
{% csrf_token %}
|
||||
|
|
@ -25,7 +24,6 @@
|
|||
</footer>
|
||||
</form>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_css %}
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
{% block titletag %}Snippets{% endblock %}
|
||||
{% block bodyclass %}menu-snippets{% endblock %}
|
||||
{% block content %}
|
||||
<header class="nice-padding">
|
||||
<h1>Snippets</h1>
|
||||
</header>
|
||||
|
||||
{% include "verdantadmin/shared/header.html" with title="Snippets" %}
|
||||
|
||||
<div class="nice-padding">
|
||||
<ul class="listing">
|
||||
{% for name, description, content_type in snippet_types %}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
{% block titletag %}Snippets {{ snippet_type_name_plural|capfirst }}{% endblock %}
|
||||
{% block bodyclass %}menu-snippets{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<header class="nice-padding">
|
||||
<div class="row row-flush">
|
||||
<div class="left col9">
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
{% block titletag %}Add user{% endblock %}
|
||||
{% block bodyclass %}menu-users{% endblock %}
|
||||
{% block content %}
|
||||
<header class="merged tab-merged nice-padding">
|
||||
<h1>Add user</h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Add user" merged=1 tabbed=1 %}
|
||||
|
||||
<ul class="tab-nav merged">
|
||||
<li class="active"><a href="#account">Account</a></li>
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@
|
|||
{% block titletag %}Editing {{ user.username}}{% endblock %}
|
||||
{% block bodyclass %}menu-users{% endblock %}
|
||||
{% block content %}
|
||||
<header class="merged tab-merged nice-padding">
|
||||
<h1>Editing <span>{{ user.username }}</span></h1>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Editing" subtitle=user.username merged=1 tabbed=1 %}
|
||||
|
||||
<ul class="tab-nav merged">
|
||||
<li class="active"><a href="#account">Account</a></li>
|
||||
|
|
|
|||
|
|
@ -2,16 +2,9 @@
|
|||
{% block titletag %}Users{% endblock %}
|
||||
{% block bodyclass %}menu-users{% endblock %}
|
||||
{% block content %}
|
||||
<header class="merged nice-padding">
|
||||
<div class="row row-flush">
|
||||
<div class="left col9">
|
||||
<h1>Users</h1>
|
||||
</div>
|
||||
<div class="right col3">
|
||||
<a href="{% url 'wagtailusers_create' %}" class="button bicolor icon icon-plus">Add a user</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{% include "wagtailadmin/shared/header.html" with title="Users" merged=1 add_link="wagtailusers_create" add_text="Add a user" %}
|
||||
|
||||
<table class="listing full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in a new issue