Remove custom template

This commit is contained in:
Iacopo Spalletti 2015-10-25 10:09:49 +01:00
parent 1f385ddff9
commit 7aa37b23e6
2 changed files with 1 additions and 36 deletions

View file

@ -26,7 +26,7 @@ try:
fields = ['app_config', 'title', 'abstract', 'categories']
class PostWizard(Wizard):
template_name = 'djangocms_blog/wizards/create.html'
pass
for config in BlogConfig.objects.all().order_by('namespace'):
new_wizard = type(slugify(config.app_title), (PostWizard,), {})

View file

@ -1,35 +0,0 @@
{% extends "cms/wizards/base.html" %}
{% load i18n static admin_urls %}
{% block extrastyle %}
<script src="{% static 'admin/js/jquery.js' %}"></script>
<script src="{% static 'admin/js/jquery.init.js' %}"></script>
{{ block.super }}
{% endblock %}
{% block wizard %}
<h1>{% trans "Create" %} {{ wizard_entry.title }}</h1>
<form action="{% url 'cms_wizard_create' %}" method="post" enctype="multipart/form-data" novalidate>
{% csrf_token %}
{{ wizard.management_form }}
{% if form.errors %}
<p class="errornote">
{% trans "Please correct the error below." %}
</p>
{% endif %}
<div>
{% include "cms/wizards/includes/form_fields.html" %}
</div>
<div class="submit-row">
<input type="submit" class="cms-btn cms-btn-action" value="{% trans "Create" %}">
<button type="button" name="wizard_goto_step"
class="cms-btn cms-btn-secondary cms-btn-group" value="{{ wizard.steps.prev }}">
{% trans "Back" %}
</button>
</div>
</form>
{% endblock %}