From d78ab622988b729689dcbad65e949d8832bdd443807be9425c7676dca7498759 Mon Sep 17 00:00:00 2001 From: nestict Date: Fri, 16 Jan 2026 15:43:06 +0100 Subject: [PATCH] Upload files to "base/templates" Signed-off-by: nestict --- base/templates/common_form.html | 50 ++++++++++++++++++++++++++++++ base/templates/email_config.html | 46 ++++++++++++++++++++++++++++ base/templates/horilla_form.html | 52 ++++++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+) create mode 100644 base/templates/common_form.html create mode 100644 base/templates/email_config.html create mode 100644 base/templates/horilla_form.html diff --git a/base/templates/common_form.html b/base/templates/common_form.html new file mode 100644 index 0000000..9d74fff --- /dev/null +++ b/base/templates/common_form.html @@ -0,0 +1,50 @@ +{% load widget_tweaks %} +{% load i18n %} + +
+ {% if form.verbose_name %} +
+
+
{% trans form.verbose_name %}
+
+
+ {% endif %} +
+
+
{{ form.non_field_errors }}
+ {% for field in form.visible_fields %} +
+
+ + {% if field.help_text != '' %} + + {% endif %} +
+ + {% if field.field.widget.input_type == 'checkbox' %} +
{{ field|add_class:'oh-switch__checkbox' }}
+ {% else %} + {{ field|add_class:'form-control' }} + {% endif %} + {{ field.errors }} +
+ {% endfor %} +
+ + {% for field in form.hidden_fields %} + {{ field }} + {% endfor %} + +
+ +
+
+
+ diff --git a/base/templates/email_config.html b/base/templates/email_config.html new file mode 100644 index 0000000..3037d5a --- /dev/null +++ b/base/templates/email_config.html @@ -0,0 +1,46 @@ + +{% extends 'index.html' %} +{% load i18n %} +{% block content %} + +
+
+

{% trans "Email Configuration" %}

+

{% trans "Configure your email server." %}

+
+ {% csrf_token %} +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+ +
+
+
+ +{% endblock content %} diff --git a/base/templates/horilla_form.html b/base/templates/horilla_form.html new file mode 100644 index 0000000..903f6a8 --- /dev/null +++ b/base/templates/horilla_form.html @@ -0,0 +1,52 @@ +{% load i18n %}{% load widget_tweaks %} {% load horillafilters %} +{% for field in form %} + {% if field.field.widget.is_hidden %} + {{ field }} + {% endif %} +{% endfor %} +
+
+
+
{{form.non_field_errors}}
+ {% for field in form.visible_fields %} + {% if field.field.widget|is_select_multiple or field.field.widget|is_text_area %} +
+ + {% if field.help_text != '' %} + + {% endif %} +
+
+ {{ field|add_class:"form-control" }} +
+ {{field.errors}} + {% else %} +
+
+ + {% if field.help_text != '' %} + + {% endif %} +
+ {% if field.field.widget.input_type == "checkbox" %} +
+ {{ field|add_class:"oh-switch__checkbox" }} +
+ {% else %} + {{ field|add_class:"form-control" }} + {% endif %} + {{field.errors}} +
+ {% endif %} + {% endfor %} +
+ + +
+