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 %} +
+ {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} +
+ {{ adminform.non_field_errors }} + {% endif %} + +{% 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 %} +{% 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 %} ++ {{ 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 %} +