-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #147 from stuartmaxwell:base-allow-wide-screen
Allow markdown editor to be widescreen
- Loading branch information
Showing
5 changed files
with
77 additions
and
76 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
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 |
---|---|---|
|
@@ -5,84 +5,84 @@ | |
<script src="https://unpkg.com/[email protected]" integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq" crossorigin="anonymous"></script> | ||
{% endblock head %} | ||
|
||
{% block content %} | ||
<div class="container"> | ||
<article> | ||
<header> | ||
<h1>SPF Record Generator</h1> | ||
<p><strong>Please note:</strong> 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.</p> | ||
<p>Select the email services that you use with your domain from the lists below.</p> | ||
</header> | ||
|
||
<form hx-post="{% url 'spf_generator:spf_generator' %}" | ||
hx-target="#result"> | ||
{% csrf_token %} | ||
{% block main_classes %}container{% endblock %} | ||
|
||
{% block content %} | ||
<article> | ||
<header> | ||
<h1>SPF Record Generator</h1> | ||
<p><strong>Please note:</strong> 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.</p> | ||
<p>Select the email services that you use with your domain from the lists below.</p> | ||
</header> | ||
|
||
<form hx-post="{% url 'spf_generator:spf_generator' %}" | ||
hx-target="#result"> | ||
{% csrf_token %} | ||
|
||
<div class="grid"> | ||
{% for category, category_name in categories %} | ||
<div> | ||
<article> | ||
<header> | ||
<h2>{{ category_name }}</h2> | ||
</header> | ||
<ul> | ||
{% for field in form %} | ||
{% if field.name|startswith:'provider_' %} | ||
{% with provider=providers|get_provider:field.name %} | ||
{% if provider.category == category %} | ||
<li> | ||
<label> | ||
{{ field }} | ||
<strong{% if field.help_text %} data-tooltip="{{ field.help_text }}"{% endif %}>{{ field.label }}</strong> | ||
</label> | ||
</li> | ||
{% endif %} | ||
{% endwith %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</article> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<p>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.</p> | ||
|
||
<article> | ||
<header> | ||
<h2>Custom Server</h2> | ||
</header> | ||
{{ form.custom_ip }} | ||
{% if form.custom_ip.help_text %} | ||
<small>{{ form.custom_ip.help_text }}</small> | ||
{% endif %} | ||
{% if form.custom_ip.errors %} | ||
<small class="error">{{ form.custom_ip.errors.0 }}</small> | ||
{% endif %} | ||
</article> | ||
|
||
<p>Now select the policy you want to apply with this SPF record. This is an important choice and is explained below.</p> | ||
|
||
<article> | ||
<header> | ||
<h2>Default Policy</h2> | ||
</header> | ||
<div class="grid"> | ||
{% for category, category_name in categories %} | ||
<div> | ||
<article> | ||
<header> | ||
<h2>{{ category_name }}</h2> | ||
</header> | ||
<ul> | ||
{% for field in form %} | ||
{% if field.name|startswith:'provider_' %} | ||
{% with provider=providers|get_provider:field.name %} | ||
{% if provider.category == category %} | ||
<li> | ||
<label> | ||
{{ field }} | ||
<strong{% if field.help_text %} data-tooltip="{{ field.help_text }}"{% endif %}>{{ field.label }}</strong> | ||
</label> | ||
</li> | ||
{% endif %} | ||
{% endwith %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</article> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<p>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.</p> | ||
|
||
<article> | ||
<header> | ||
<h2>Custom Server</h2> | ||
</header> | ||
{{ form.custom_ip }} | ||
{% if form.custom_ip.help_text %} | ||
<small>{{ form.custom_ip.help_text }}</small> | ||
{% endif %} | ||
{% if form.custom_ip.errors %} | ||
<small class="error">{{ form.custom_ip.errors.0 }}</small> | ||
{% endif %} | ||
</article> | ||
|
||
<p>Now select the policy you want to apply with this SPF record. This is an important choice and is explained below.</p> | ||
|
||
<article> | ||
<header> | ||
<h2>Default Policy</h2> | ||
</header> | ||
<div class="grid"> | ||
<div> | ||
{{ form.all_mechanism }} | ||
{% if form.all_mechanism.help_text %} | ||
<small>{{ form.all_mechanism.help_text|safe }}</small> | ||
{% endif %} | ||
</div> | ||
<div> | ||
{{ form.all_mechanism }} | ||
{% if form.all_mechanism.help_text %} | ||
<small>{{ form.all_mechanism.help_text|safe }}</small> | ||
{% endif %} | ||
</div> | ||
</article> | ||
</div> | ||
</article> | ||
|
||
<button type="submit">Generate SPF Record</button> | ||
</form> | ||
<button type="submit">Generate SPF Record</button> | ||
</form> | ||
|
||
<div id="result" role="alert"></div> | ||
</article> | ||
</div> | ||
<div id="result" role="alert"></div> | ||
</article> | ||
|
||
{% endblock content %} | ||
|
||
|
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
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