-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor out common single form templates into wafer/base_form.html
- Loading branch information
Showing
8 changed files
with
21 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
{% extends 'wafer/base.html' %} | ||
{% extends 'wafer/base_form.html' %} | ||
{% load crispy_forms_tags %} | ||
{% load i18n %} | ||
{% load static from staticfiles %} | ||
{% block extra_head %} | ||
{{ form.media.css }} | ||
{% endblock %} | ||
{% block content %} | ||
<section class="wafer wafer-page-edit"> | ||
<h1>{% trans "Edit Page" %}</h1> | ||
{% crispy form %} | ||
</section> | ||
{% endblock %} | ||
{% block extra_foot %} | ||
{{ form.media.js }} | ||
{{ block.super }} | ||
<script type="text/javascript" src="{% static 'js/markitup.js' %}"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 1 addition & 7 deletions
8
wafer/registration/templates/registration/registration_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
{% extends 'wafer/base.html' %} | ||
{% extends 'wafer/base_form.html' %} | ||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
{% load wafer_crispy %} | ||
{% block extra_head %} | ||
{{ form.media.css }} | ||
{% endblock %} | ||
{% block content %} | ||
<h1>{% trans 'Sign up' %}</h1> | ||
{% wafer_form_helper 'wafer.registration.forms.RegistrationFormHelper' as form_helper %} | ||
{% crispy form form_helper %} | ||
{% endblock %} | ||
{% block extra_foot %} | ||
{{ form.media.js }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% extends "wafer/base.html" %} | ||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
{% block extra_head %} | ||
{{ form.media.css }} | ||
{% endblock %} | ||
{% block content %} | ||
{% crispy form %} | ||
{% endblock %} | ||
{% block extra_foot %} | ||
{{ form.media.js }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
{% extends "wafer/base.html" %} | ||
{% extends "wafer/base_form.html" %} | ||
{% load i18n %} | ||
{% load crispy_forms_tags %} | ||
{% block extra_head %} | ||
{{ form.media.css }} | ||
{% endblock %} | ||
{% block content %} | ||
<h1>{% trans 'Edit Profile:' %}</h1> | ||
{% crispy form %} | ||
{% endblock %} | ||
{% block extra_foot %} | ||
{{ form.media.js }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters