dark mode reverted + meal plan button

This commit is contained in:
vabene1111
2020-02-04 22:18:10 +01:00
parent c96159e15c
commit bc066d29f6
4 changed files with 21 additions and 2 deletions

View File

@@ -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');

View File

@@ -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 %}

View File

@@ -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>