'theme_switcher,' 'theme-picker' & 'theme' renamed everywhere to simply 'palette'; new urls & views & their corresponding ITs ensure applet menu checkbox functionality
This commit is contained in:
@@ -15,14 +15,14 @@
|
||||
|
||||
{% block content %}
|
||||
{% if user.is_authenticated %}
|
||||
<section id="id_applet_theme_switcher" class="theme-picker">
|
||||
{% for theme in themes %}
|
||||
<div class="theme-picker-item">
|
||||
<div class="swatch {{ theme.name }}{% if user_theme == theme.name %} active{% endif %}{% if theme.locked %} locked{% endif %}"></div>
|
||||
{% if not theme.locked %}
|
||||
<form method="POST" action="{% url 'set_theme' %}">
|
||||
<section id="id_applet_palette" class="palette">
|
||||
{% for palette in palettes %}
|
||||
<div class="palette-item">
|
||||
<div class="swatch {{ palette.name }}{% if user_palette == palette.name %} active{% endif %}{% if palette.locked %} locked{% endif %}"></div>
|
||||
{% if not palette.locked %}
|
||||
<form method="POST" action="{% url 'set_palette' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" name="theme" value="{{ theme.name }}" class="btn btn-confirm">OK</button>
|
||||
<button type="submit" name="palette" value="{{ palette.name }}" class="btn btn-confirm">OK</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<span class="btn btn-disabled">×</span>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{% endcompress %}
|
||||
</head>
|
||||
|
||||
<body class="{{ user_theme }}">
|
||||
<body class="{{ user_palette }}">
|
||||
<div class="container">
|
||||
<nav class="navbar">
|
||||
<div class="container-fluid">
|
||||
|
||||
Reference in New Issue
Block a user