37 lines
2.3 KiB
HTML
37 lines
2.3 KiB
HTML
{% extends 'admin/base_site.html' %}{% load static %}
|
||
{% block extrahead %}{{ block.super }}<script defer src="{% static 'editorial-colors.js' %}"></script>{% endblock %}
|
||
{% block breadcrumbs %}<div class="breadcrumbs"><a href="{% url 'admin:index' %}">Studio</a> › Homepage Countdown</div>{% endblock %}
|
||
{% block content %}
|
||
<section class="studio-content-panel studio-timer">
|
||
<p>Enable the countdown cover landing and upload a cover to combine it with the Sol’Terra map. Choose whether the map appears above or below the countdown content.</p>
|
||
<form method="post" enctype="multipart/form-data">{% csrf_token %}
|
||
{{ form.non_field_errors }}
|
||
{% for hidden in form.hidden_fields %}{{ hidden }}{% endfor %}
|
||
{% for field in form.visible_fields %}
|
||
{% if field.name == 'homepage_countdown_tint' %}
|
||
{{ field.errors }}
|
||
<p>{{ field.label_tag }}</p>
|
||
<div class="studio-palette-field">{{ field }} <input type="color" data-default="#0c1020" aria-label="Pick the landing background tint" hidden></div>
|
||
{% elif field.name == 'homepage_countdown_bar_color' %}
|
||
<div class="countdown-setting">
|
||
{{ field.errors }}{{ field.label_tag }}
|
||
<div class="studio-palette-field">{{ field }} <input type="color" data-default="#4395de" aria-label="Pick the countdown progress bar color" hidden></div>
|
||
<p>{{ field.help_text }}</p>
|
||
</div>
|
||
{% elif field.name|slice:":16" != 'homepage_social_' %}
|
||
<div class="countdown-setting">{{ field.as_field_group }}</div>
|
||
{% endif %}
|
||
{% endfor %}
|
||
<fieldset class="studio-social-fields">
|
||
<legend>Social links below the author’s comment</legend>
|
||
<p>Enter your HTTPS profile links. Only platforms with a saved link will appear.</p>
|
||
{{ form.homepage_social_color.errors }}
|
||
<p>{{ form.homepage_social_color.label_tag }}</p>
|
||
<div class="studio-palette-field">{{ form.homepage_social_color }} <input type="color" data-default="#ffdd00" aria-label="Pick the social icon color" hidden></div>
|
||
{% for field in form.social_fields %}<div class="countdown-setting">{{ field.as_field_group }}</div>{% endfor %}
|
||
</fieldset>
|
||
<div class="studio-actions"><button class="studio-button studio-primary" type="submit">Save countdown</button><a class="studio-button" href="{% url 'admin:index' %}">Cancel</a></div>
|
||
</form>
|
||
</section>
|
||
{% endblock %}
|