From cd7f0e2bd5676a2b9263bb57027db822dd9f398e Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Thu, 15 Mar 2018 11:25:21 +0000 Subject: [PATCH] install app files for aldryn-forms==2.2.8 --- .../admin/aldryn_forms/display/.aldryn-folder | 0 .../aldryn_forms/display/recipients.html | 9 ++++ .../aldryn_forms/display/submission_data.html | 7 +++ templates/admin/aldryn_forms/export.html | 34 +++++++++++++++ .../admin/aldryn_forms/export_wizard.html | 15 +++++++ .../formsubmission/.aldryn-folder | 0 .../formsubmission/change_list.html | 16 +++++++ templates/aldryn_forms/.aldryn-folder | 0 templates/aldryn_forms/base.html | 5 +++ .../email_notifications/emails/.aldryn-folder | 0 .../emails/notification.body.html | 12 ++++++ .../emails/notification.body.txt | 11 +++++ .../emails/notification.subject.txt | 1 + .../emails/themes/.aldryn-folder | 0 .../emails/themes/default.html | 1 + .../emails/themes/default.txt | 1 + .../emails/includes/.aldryn-folder | 0 .../emails/includes/form_data.html | 3 ++ .../emails/includes/form_data.txt | 2 + .../emails/notification.body.html | 4 ++ .../aldryn_forms/emails/notification.body.txt | 3 ++ .../emails/notification.subject.txt | 1 + .../aldryn_forms/emails/user/.aldryn-folder | 0 .../emails/user/notification.body.txt | 7 +++ .../emails/user/notification.subject.txt | 1 + templates/aldryn_forms/field.html | 28 ++++++++++++ templates/aldryn_forms/fields/.aldryn-folder | 0 .../aldryn_forms/fields/booleanfield.html | 1 + templates/aldryn_forms/fields/emailfield.html | 1 + templates/aldryn_forms/fields/filefield.html | 1 + templates/aldryn_forms/fields/imagefield.html | 1 + .../fields/multiplecheckboxselectfield.html | 35 +++++++++++++++ .../fields/multipleselectfield.html | 1 + .../aldryn_forms/fields/radioselectfield.html | 1 + .../aldryn_forms/fields/selectfield.html | 1 + .../aldryn_forms/fields/textareafield.html | 1 + templates/aldryn_forms/fields/textfield.html | 1 + templates/aldryn_forms/fieldset.html | 11 +++++ templates/aldryn_forms/form.html | 43 +++++++++++++++++++ templates/aldryn_forms/send.html | 6 +++ templates/aldryn_forms/submit_button.html | 3 ++ 41 files changed, 268 insertions(+) create mode 100644 templates/admin/aldryn_forms/display/.aldryn-folder create mode 100644 templates/admin/aldryn_forms/display/recipients.html create mode 100644 templates/admin/aldryn_forms/display/submission_data.html create mode 100644 templates/admin/aldryn_forms/export.html create mode 100644 templates/admin/aldryn_forms/export_wizard.html create mode 100644 templates/admin/aldryn_forms/formsubmission/.aldryn-folder create mode 100644 templates/admin/aldryn_forms/formsubmission/change_list.html create mode 100644 templates/aldryn_forms/.aldryn-folder create mode 100644 templates/aldryn_forms/base.html create mode 100644 templates/aldryn_forms/email_notifications/emails/.aldryn-folder create mode 100644 templates/aldryn_forms/email_notifications/emails/notification.body.html create mode 100644 templates/aldryn_forms/email_notifications/emails/notification.body.txt create mode 100644 templates/aldryn_forms/email_notifications/emails/notification.subject.txt create mode 100644 templates/aldryn_forms/email_notifications/emails/themes/.aldryn-folder create mode 100644 templates/aldryn_forms/email_notifications/emails/themes/default.html create mode 100644 templates/aldryn_forms/email_notifications/emails/themes/default.txt create mode 100644 templates/aldryn_forms/emails/includes/.aldryn-folder create mode 100644 templates/aldryn_forms/emails/includes/form_data.html create mode 100644 templates/aldryn_forms/emails/includes/form_data.txt create mode 100644 templates/aldryn_forms/emails/notification.body.html create mode 100644 templates/aldryn_forms/emails/notification.body.txt create mode 100644 templates/aldryn_forms/emails/notification.subject.txt create mode 100644 templates/aldryn_forms/emails/user/.aldryn-folder create mode 100644 templates/aldryn_forms/emails/user/notification.body.txt create mode 100644 templates/aldryn_forms/emails/user/notification.subject.txt create mode 100644 templates/aldryn_forms/field.html create mode 100644 templates/aldryn_forms/fields/.aldryn-folder create mode 100644 templates/aldryn_forms/fields/booleanfield.html create mode 100644 templates/aldryn_forms/fields/emailfield.html create mode 100644 templates/aldryn_forms/fields/filefield.html create mode 100644 templates/aldryn_forms/fields/imagefield.html create mode 100644 templates/aldryn_forms/fields/multiplecheckboxselectfield.html create mode 100644 templates/aldryn_forms/fields/multipleselectfield.html create mode 100644 templates/aldryn_forms/fields/radioselectfield.html create mode 100644 templates/aldryn_forms/fields/selectfield.html create mode 100644 templates/aldryn_forms/fields/textareafield.html create mode 100644 templates/aldryn_forms/fields/textfield.html create mode 100644 templates/aldryn_forms/fieldset.html create mode 100644 templates/aldryn_forms/form.html create mode 100644 templates/aldryn_forms/send.html create mode 100644 templates/aldryn_forms/submit_button.html diff --git a/templates/admin/aldryn_forms/display/.aldryn-folder b/templates/admin/aldryn_forms/display/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/admin/aldryn_forms/display/recipients.html b/templates/admin/aldryn_forms/display/recipients.html new file mode 100644 index 0000000..13cc2a8 --- /dev/null +++ b/templates/admin/aldryn_forms/display/recipients.html @@ -0,0 +1,9 @@ +{% spaceless %} + {% if people %} + + {% endif %} +{% endspaceless %} diff --git a/templates/admin/aldryn_forms/display/submission_data.html b/templates/admin/aldryn_forms/display/submission_data.html new file mode 100644 index 0000000..92587a1 --- /dev/null +++ b/templates/admin/aldryn_forms/display/submission_data.html @@ -0,0 +1,7 @@ +{% load i18n %} +{% filter linebreaksbr %}{% spaceless %}{% for field in data %} +{% trans "Field" %}: {{ field.name }} +{% trans "Label" %}: {{ field.label }} +{% trans "Value" %}: {{ field.value }} +{% endfor %}{% endspaceless %} +{% endfilter %} diff --git a/templates/admin/aldryn_forms/export.html b/templates/admin/aldryn_forms/export.html new file mode 100644 index 0000000..aa3d957 --- /dev/null +++ b/templates/admin/aldryn_forms/export.html @@ -0,0 +1,34 @@ +{% extends "admin/change_form.html" %} +{% load i18n %} + +{% block content %} +

{% trans "Export form submissions" %}

+ {% if errors %} +

+ {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} +

+ {{ adminform.non_field_errors }} + {% endif %} +
+ {% csrf_token %} + {% block aldryn_form_hidden %}{% endblock %} +
+
+ {% for field in adminform %} +
+ + {% if field.errors %}{{ field.errors }}{% endif %} + {{ field.label_tag }} + {{ field }} +
+
+ {% endfor %} + + +
+ {% block aldryn_form_buttons %} + + {% endblock %} +
+
+{% endblock %} diff --git a/templates/admin/aldryn_forms/export_wizard.html b/templates/admin/aldryn_forms/export_wizard.html new file mode 100644 index 0000000..412d3b4 --- /dev/null +++ b/templates/admin/aldryn_forms/export_wizard.html @@ -0,0 +1,15 @@ +{% extends "admin/aldryn_forms/export.html" %} +{% load i18n %} + +{% block aldryn_form_hidden %} + {{ wizard.management_form }} + {{ form.non_field_errors }} +{% endblock %} + +{% block aldryn_form_buttons %} + {% if wizard.steps.current == wizard.steps.last %} + + {% else %} + + {% endif %} +{% endblock %} diff --git a/templates/admin/aldryn_forms/formsubmission/.aldryn-folder b/templates/admin/aldryn_forms/formsubmission/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/admin/aldryn_forms/formsubmission/change_list.html b/templates/admin/aldryn_forms/formsubmission/change_list.html new file mode 100644 index 0000000..3e98862 --- /dev/null +++ b/templates/admin/aldryn_forms/formsubmission/change_list.html @@ -0,0 +1,16 @@ +{% extends "admin/change_list.html" %} +{% load i18n admin_urls %} + +{% block object-tools %} + +{% endblock %} diff --git a/templates/aldryn_forms/.aldryn-folder b/templates/aldryn_forms/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/aldryn_forms/base.html b/templates/aldryn_forms/base.html new file mode 100644 index 0000000..0876753 --- /dev/null +++ b/templates/aldryn_forms/base.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} + +{% block content %} + {% block form_content %}{% endblock %} +{% endblock %} diff --git a/templates/aldryn_forms/email_notifications/emails/.aldryn-folder b/templates/aldryn_forms/email_notifications/emails/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/aldryn_forms/email_notifications/emails/notification.body.html b/templates/aldryn_forms/email_notifications/emails/notification.body.html new file mode 100644 index 0000000..361a8ef --- /dev/null +++ b/templates/aldryn_forms/email_notifications/emails/notification.body.html @@ -0,0 +1,12 @@ +{% extends email_html_theme %} +{% load aldryn_forms_tags i18n %} + +{% block email_content %} +{% render_notification_text email_notification 'body_html' as html_message %} +{% if html_message %} + {{ html_message|safe }} +{% else %} +

{% blocktrans %}Form name: {{ form_name }}{% endblocktrans %}

+ {% include "aldryn_forms/emails/includes/form_data.html" %} +{% endif %} +{% endblock email_content %} diff --git a/templates/aldryn_forms/email_notifications/emails/notification.body.txt b/templates/aldryn_forms/email_notifications/emails/notification.body.txt new file mode 100644 index 0000000..da24c56 --- /dev/null +++ b/templates/aldryn_forms/email_notifications/emails/notification.body.txt @@ -0,0 +1,11 @@ +{% extends email_txt_theme %} +{% load aldryn_forms_tags i18n %} +{% block email_content %} +{% render_notification_text email_notification 'body_text' as text_message %} +{% if text_message %} +{{ text_message|safe }} +{% else %} +{% blocktrans %}Form name: {{ form_name }}{% endblocktrans %} +{% include "aldryn_forms/emails/includes/form_data.txt" %} +{% endif %} +{% endblock email_content %} diff --git a/templates/aldryn_forms/email_notifications/emails/notification.subject.txt b/templates/aldryn_forms/email_notifications/emails/notification.subject.txt new file mode 100644 index 0000000..a7ee9cb --- /dev/null +++ b/templates/aldryn_forms/email_notifications/emails/notification.subject.txt @@ -0,0 +1 @@ +{% load aldryn_forms_tags i18n %}{% render_notification_text email_notification 'subject' as subject %}{% if subject %}{{ subject }}{% else %}{% blocktrans %}[Form submission] {{ form_name }}{% endblocktrans %}{% endif %} diff --git a/templates/aldryn_forms/email_notifications/emails/themes/.aldryn-folder b/templates/aldryn_forms/email_notifications/emails/themes/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/aldryn_forms/email_notifications/emails/themes/default.html b/templates/aldryn_forms/email_notifications/emails/themes/default.html new file mode 100644 index 0000000..087f66b --- /dev/null +++ b/templates/aldryn_forms/email_notifications/emails/themes/default.html @@ -0,0 +1 @@ +{% block email_content %}{% endblock email_content %} diff --git a/templates/aldryn_forms/email_notifications/emails/themes/default.txt b/templates/aldryn_forms/email_notifications/emails/themes/default.txt new file mode 100644 index 0000000..087f66b --- /dev/null +++ b/templates/aldryn_forms/email_notifications/emails/themes/default.txt @@ -0,0 +1 @@ +{% block email_content %}{% endblock email_content %} diff --git a/templates/aldryn_forms/emails/includes/.aldryn-folder b/templates/aldryn_forms/emails/includes/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/aldryn_forms/emails/includes/form_data.html b/templates/aldryn_forms/emails/includes/form_data.html new file mode 100644 index 0000000..240df13 --- /dev/null +++ b/templates/aldryn_forms/emails/includes/form_data.html @@ -0,0 +1,3 @@ +{% for name, value in form_data %} +

{{ name }}: {{ value|default_if_none:"—" }}

+{% endfor %} diff --git a/templates/aldryn_forms/emails/includes/form_data.txt b/templates/aldryn_forms/emails/includes/form_data.txt new file mode 100644 index 0000000..e7921e0 --- /dev/null +++ b/templates/aldryn_forms/emails/includes/form_data.txt @@ -0,0 +1,2 @@ +{% for name, value in form_data %}{{ name }}: {{ value|default_if_none:"—" }} +{% endfor %} diff --git a/templates/aldryn_forms/emails/notification.body.html b/templates/aldryn_forms/emails/notification.body.html new file mode 100644 index 0000000..831ca42 --- /dev/null +++ b/templates/aldryn_forms/emails/notification.body.html @@ -0,0 +1,4 @@ +{% load i18n %} + +

{% blocktrans %}Form name: {{ form_name }}{% endblocktrans %}

+{% include "aldryn_forms/emails/includes/form_data.html" %} diff --git a/templates/aldryn_forms/emails/notification.body.txt b/templates/aldryn_forms/emails/notification.body.txt new file mode 100644 index 0000000..d57cf90 --- /dev/null +++ b/templates/aldryn_forms/emails/notification.body.txt @@ -0,0 +1,3 @@ +{% load i18n %} +{% blocktrans %}Form name: {{ form_name }}{% endblocktrans %} +{% include "aldryn_forms/emails/includes/form_data.txt" %} diff --git a/templates/aldryn_forms/emails/notification.subject.txt b/templates/aldryn_forms/emails/notification.subject.txt new file mode 100644 index 0000000..0242ff0 --- /dev/null +++ b/templates/aldryn_forms/emails/notification.subject.txt @@ -0,0 +1 @@ +{% load i18n %}{% blocktrans %}[Form submission] {{ form_name }}{% endblocktrans %} diff --git a/templates/aldryn_forms/emails/user/.aldryn-folder b/templates/aldryn_forms/emails/user/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/aldryn_forms/emails/user/notification.body.txt b/templates/aldryn_forms/emails/user/notification.body.txt new file mode 100644 index 0000000..f8c91a5 --- /dev/null +++ b/templates/aldryn_forms/emails/user/notification.body.txt @@ -0,0 +1,7 @@ +{% load i18n %} +{% if body_text %} +{{ body_text }} +{% else %} +{% blocktrans %}Form name: {{ form_name }}{% endblocktrans %} +{% include "aldryn_forms/emails/includes/form_data.txt" %} +{% endif %} diff --git a/templates/aldryn_forms/emails/user/notification.subject.txt b/templates/aldryn_forms/emails/user/notification.subject.txt new file mode 100644 index 0000000..4d43ea7 --- /dev/null +++ b/templates/aldryn_forms/emails/user/notification.subject.txt @@ -0,0 +1 @@ +{% load i18n %}{% if subject %}{{ subject }}{% else %}{% blocktrans %}[Form submission] {{ form_name }}{% endblocktrans %}{% endif %} diff --git a/templates/aldryn_forms/field.html b/templates/aldryn_forms/field.html new file mode 100644 index 0000000..ef2dee4 --- /dev/null +++ b/templates/aldryn_forms/field.html @@ -0,0 +1,28 @@ +{% load i18n aldryn_forms_tags %} + +{% if field %} + {% comment %} + {# available conditions #} + {# if field.field.required %} required{% endif %} + {% if field.errors %} error{% endif %} + {% endcomment %} + + + + {% render_form_widget field class=instance.custom_classes %} + + {% if field.errors %} + {% for error in field.errors %} +

{{ error }}

+ {% endfor %} + {% endif %} + + {% if field.help_text %} +

{{ field.help_text }}

+ {% endif %} +{% endif %} diff --git a/templates/aldryn_forms/fields/.aldryn-folder b/templates/aldryn_forms/fields/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/aldryn_forms/fields/booleanfield.html b/templates/aldryn_forms/fields/booleanfield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/booleanfield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/emailfield.html b/templates/aldryn_forms/fields/emailfield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/emailfield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/filefield.html b/templates/aldryn_forms/fields/filefield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/filefield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/imagefield.html b/templates/aldryn_forms/fields/imagefield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/imagefield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/multiplecheckboxselectfield.html b/templates/aldryn_forms/fields/multiplecheckboxselectfield.html new file mode 100644 index 0000000..0185a52 --- /dev/null +++ b/templates/aldryn_forms/fields/multiplecheckboxselectfield.html @@ -0,0 +1,35 @@ +{% load aldryn_forms_tags i18n %} + +{% if field %} +
+ {% block form_field_label %} +

+ {{ field.label }} + {% if field.field.required %} + * + {% endif %} +

+ {% endblock form_field_label %} + {% block form_field %} + {% for choice in field.field.choices %} + + {% endfor %} + {% endblock form_field %} + {% block form_field_errors %} + {% if field.errors %} + {% for error in field.errors %} + {{ error }} + {% endfor %} + {% endif %} + {% endblock form_field_errors %} + {% block form_field_help_text %} + {% if field.help_text %} +

{{ field.help_text }}

+ {% endif %} + {% endblock form_field_help_text %} +
+{% endif %} diff --git a/templates/aldryn_forms/fields/multipleselectfield.html b/templates/aldryn_forms/fields/multipleselectfield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/multipleselectfield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/radioselectfield.html b/templates/aldryn_forms/fields/radioselectfield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/radioselectfield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/selectfield.html b/templates/aldryn_forms/fields/selectfield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/selectfield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/textareafield.html b/templates/aldryn_forms/fields/textareafield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/textareafield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fields/textfield.html b/templates/aldryn_forms/fields/textfield.html new file mode 100644 index 0000000..8b37c28 --- /dev/null +++ b/templates/aldryn_forms/fields/textfield.html @@ -0,0 +1 @@ +{% extends "aldryn_forms/field.html" %} diff --git a/templates/aldryn_forms/fieldset.html b/templates/aldryn_forms/fieldset.html new file mode 100644 index 0000000..38e4b28 --- /dev/null +++ b/templates/aldryn_forms/fieldset.html @@ -0,0 +1,11 @@ +{% load cms_tags %} + + + {% if instance.legend %} + {{ instance.legend }} + {% endif %} + + {% for plugin in instance.child_plugin_instances %} + {% render_plugin plugin %} + {% endfor %} + diff --git a/templates/aldryn_forms/form.html b/templates/aldryn_forms/form.html new file mode 100644 index 0000000..3253b30 --- /dev/null +++ b/templates/aldryn_forms/form.html @@ -0,0 +1,43 @@ +{% load i18n cms_tags sekizai_tags %} + +
+ + {% if form.non_field_errors %} + {% for error in form.non_field_errors %} +

{{ error }}

+ {% endfor %} + {% endif %} + + {% if form_success_url %} +

+ {% blocktrans %} + Thank you for submitting your information, you will be + redirected shortly. + {% endblocktrans %} +

+ {% endif %} + + {% if not form_success_url %} + {% for plugin in instance.child_plugin_instances %} + {% render_plugin plugin %} + {% endfor %} + {% endif %} + + {% csrf_token %} + {% for field in form.hidden_fields %} + {{ field }} + {% endfor %} +
+ +{# INFO: this solution is currently required because we can't redirect from a plugin. #} +{% if form_success_url %} + {% addtoblock "js" %} + + {% endaddtoblock %} +{% endif %} diff --git a/templates/aldryn_forms/send.html b/templates/aldryn_forms/send.html new file mode 100644 index 0000000..708e8b5 --- /dev/null +++ b/templates/aldryn_forms/send.html @@ -0,0 +1,6 @@ +{% extends "aldryn_forms/base.html" %} +{% load cms_tags %} + +{% block form_content %} + {% render_plugin object %} +{% endblock %} diff --git a/templates/aldryn_forms/submit_button.html b/templates/aldryn_forms/submit_button.html new file mode 100644 index 0000000..02b177f --- /dev/null +++ b/templates/aldryn_forms/submit_button.html @@ -0,0 +1,3 @@ +