Configure shop app, admin sidebar, media routing, and Stripe dependencies
This commit is contained in:
commit
93d83a0d63
188 files changed
+9220
No files matched your search
@@ -0,0 +1,23 @@
|
||||
{% extends 'admin/base_site.html' %}{% load static %}
|
||||
{% block extrahead %}{{ block.super }}<script defer src="{% static 'editorial-colors.js' %}"></script>{% endblock %}
|
||||
{% block content %}
|
||||
<p>Set colors for the public site and Studio independently. Blank fields use the SLX brand palette shown in the swatches.</p>
|
||||
<div class="brand-key" aria-label="SLX brand palette">
|
||||
<span class="key-navy">Ink navy</span><span class="key-blue">SLUMP blue</span><span class="key-yellow">X yellow</span><span class="key-orange">LAND orange</span>
|
||||
</div>
|
||||
<form method="post" id="studio-palette">{% csrf_token %}{{ form.non_field_errors }}
|
||||
{% for group, fields in form.groups %}
|
||||
<fieldset class="module aligned"><h2>{{ group }}</h2>
|
||||
{% if group == "Public site · Author comments" %}<p><button type="button" class="studio-button" data-reference-note-colors hidden>Use reference gold and white</button></p>{% endif %}
|
||||
<div class="studio-palette-grid">
|
||||
{% for field, default in fields %}
|
||||
<div>{{ field.errors }}{{ field.label_tag }}
|
||||
<div class="studio-palette-field">{{ field }}<input type="color" data-default="{{ default }}" aria-label="Pick {{ field.label|lower }}" hidden></div></div>
|
||||
{% endfor %}
|
||||
</div></fieldset>
|
||||
{% endfor %}
|
||||
<div class="submit-row"><button class="studio-button studio-primary" type="submit">Save colors</button> <a class="studio-button" href="{% url 'home' %}">View public site</a></div>
|
||||
</form>
|
||||
<form method="post" class="palette-reset">{% csrf_token %}<button class="studio-button" name="palette_action" value="reset">Reset all colors to SLX defaults</button><p>Clears saved color overrides for both the public site and Studio.</p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user