mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
dark mode reverted + meal plan button
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
return b ? b.pop() : '';
|
||||
}
|
||||
|
||||
let theme_list = ['{% static 'themes/bootstrap.min.css' %}', '{% static 'themes/flatly.min.css' %}', '{% static 'themes/darkly.min.css' %}', '{% static 'themes/superhero.min.css' %}'];
|
||||
let theme_list = ['{% static 'themes/bootstrap.min.css' %}', '{% static 'themes/flatly.min.css' %}', '{% static 'themes/superhero.min.css' %}'];
|
||||
|
||||
let css = $('#id_main_css');
|
||||
let theme = getCookieValue('theme');
|
||||
|
||||
@@ -23,4 +23,14 @@
|
||||
<button class="btn btn-success" type="submit"><i class="fas fa-save"></i> {% trans 'Save' %}</button>
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
{% if default_recipe %}
|
||||
$(document).ready(function () {
|
||||
$('#id_recipe').val({{ default_recipe.pk }}).trigger('change');
|
||||
});
|
||||
{% endif %}
|
||||
</script>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
@@ -47,7 +47,7 @@
|
||||
<select class="form-control" id="id_select_theme" onchange="changeTheme()">
|
||||
<option value="{% static 'themes/bootstrap.min.css' %}">{% trans 'Default' %}</option>
|
||||
<option value="{% static 'themes/flatly.min.css' %}">Flatly</option>
|
||||
<option value="{% static 'themes/darkly.min.css' %}">Darkly</option>
|
||||
<!--<option value="{% static 'themes/darkly.min.css' %}">Darkly</option>-->
|
||||
<option value="{% static 'themes/superhero.min.css' %}">Superhero</option>
|
||||
</select>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user