From b337ea5b0e4fd3d508b450c4b67bca299575d3aa Mon Sep 17 00:00:00 2001 From: Stuart Maxwell Date: Thu, 21 Nov 2024 19:55:09 +1300 Subject: [PATCH] Allow markdown editor to be widescreen --- .../markdown_editor/markdown_editor.html | 2 + .../templates/spf_generator/generator.html | 146 +++++++++--------- templates/base.html | 2 +- templates/djpress/stuartmnz/base.html | 2 +- templates/snippets/navbar.html | 1 - 5 files changed, 77 insertions(+), 76 deletions(-) diff --git a/markdown_editor/templates/markdown_editor/markdown_editor.html b/markdown_editor/templates/markdown_editor/markdown_editor.html index e61553e..3a471f5 100644 --- a/markdown_editor/templates/markdown_editor/markdown_editor.html +++ b/markdown_editor/templates/markdown_editor/markdown_editor.html @@ -6,6 +6,8 @@ {% endblock head %} +{% block main_classes %}container-fluid{% endblock %} + {% block content %}

Markdown Editor

diff --git a/spf_generator/templates/spf_generator/generator.html b/spf_generator/templates/spf_generator/generator.html index c7fc79e..471dc07 100644 --- a/spf_generator/templates/spf_generator/generator.html +++ b/spf_generator/templates/spf_generator/generator.html @@ -5,84 +5,84 @@ {% endblock head %} -{% block content %} -
-
-
-

SPF Record Generator

-

Please note: I have made best efforts to ensure the information below is correct. But I highly recommend checking and validating the SPF record before updating it in your DNS. Please contact me if you spot any mistakes.

-

Select the email services that you use with your domain from the lists below.

-
- -
- {% csrf_token %} +{% block main_classes %}container{% endblock %} +{% block content %} +
+
+

SPF Record Generator

+

Please note: I have made best efforts to ensure the information below is correct. But I highly recommend checking and validating the SPF record before updating it in your DNS. Please contact me if you spot any mistakes.

+

Select the email services that you use with your domain from the lists below.

+
+ + + {% csrf_token %} + +
+ {% for category, category_name in categories %} +
+
+
+

{{ category_name }}

+
+
    + {% for field in form %} + {% if field.name|startswith:'provider_' %} + {% with provider=providers|get_provider:field.name %} + {% if provider.category == category %} +
  • + +
  • + {% endif %} + {% endwith %} + {% endif %} + {% endfor %} +
+
+
+ {% endfor %} +
+ +

Optionally, you can add the IP address of your own server to your SPF record. This is useful if you have a server that sends emails directly to the internet.

+ +
+
+

Custom Server

+
+ {{ form.custom_ip }} + {% if form.custom_ip.help_text %} + {{ form.custom_ip.help_text }} + {% endif %} + {% if form.custom_ip.errors %} + {{ form.custom_ip.errors.0 }} + {% endif %} +
+ +

Now select the policy you want to apply with this SPF record. This is an important choice and is explained below.

+ +
+
+

Default Policy

+
- {% for category, category_name in categories %} -
-
-
-

{{ category_name }}

-
-
    - {% for field in form %} - {% if field.name|startswith:'provider_' %} - {% with provider=providers|get_provider:field.name %} - {% if provider.category == category %} -
  • - -
  • - {% endif %} - {% endwith %} - {% endif %} - {% endfor %} -
-
-
- {% endfor %} -
- -

Optionally, you can add the IP address of your own server to your SPF record. This is useful if you have a server that sends emails directly to the internet.

- -
-
-

Custom Server

-
- {{ form.custom_ip }} - {% if form.custom_ip.help_text %} - {{ form.custom_ip.help_text }} - {% endif %} - {% if form.custom_ip.errors %} - {{ form.custom_ip.errors.0 }} - {% endif %} -
- -

Now select the policy you want to apply with this SPF record. This is an important choice and is explained below.

- -
-
-

Default Policy

-
-
-
- {{ form.all_mechanism }} - {% if form.all_mechanism.help_text %} - {{ form.all_mechanism.help_text|safe }} - {% endif %} -
+
+ {{ form.all_mechanism }} + {% if form.all_mechanism.help_text %} + {{ form.all_mechanism.help_text|safe }} + {% endif %}
-
+
+ - - + + - - - + + {% endblock content %} diff --git a/templates/base.html b/templates/base.html index 7e4e9a0..63e2f48 100644 --- a/templates/base.html +++ b/templates/base.html @@ -31,7 +31,7 @@ {% include "snippets/navbar.html" %} -
+
{% block content %} {% endblock content %}
diff --git a/templates/djpress/stuartmnz/base.html b/templates/djpress/stuartmnz/base.html index 1cba915..46a963d 100644 --- a/templates/djpress/stuartmnz/base.html +++ b/templates/djpress/stuartmnz/base.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% load djpress_tags %} -{% block main_classes %}main-sidebar{% endblock %} +{% block main_classes %}container main-sidebar{% endblock %} {% block content %} diff --git a/templates/snippets/navbar.html b/templates/snippets/navbar.html index 1f835e7..b4098fd 100644 --- a/templates/snippets/navbar.html +++ b/templates/snippets/navbar.html @@ -9,7 +9,6 @@