visual improvements

This commit is contained in:
vabene1111
2018-05-15 22:58:29 +02:00
parent b92c6dd88f
commit 0acecba367
8 changed files with 49 additions and 21 deletions

View File

@@ -9,12 +9,26 @@
<h3>
{% trans 'Batch edit Recipes' %}
<small class="text-muted">{% trans 'Add the specified category and keywords to all recipes containing a word' %}</small>
</h3>
<form method="POST" class="post-form">{% csrf_token %}
<div class="card border-info" >
<div class="card-body text-info">
<p class="card-text">{% trans 'Add the specified category and keywords to all recipes containing a word' %}</p>
</div>
</div>
<form method="POST" class="post-form">
{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
</form>
<script>
//TODO clean this up
//converts multiselct in recipe edit to searchable multiselect
//shitty solution that needs to be redone at some point
$(document).ready(function () {
$('#id_keyword').select2();
});
</script>
{% endblock %}

View File

@@ -8,16 +8,24 @@
{% block content %}
<h3>{% trans 'Manage watched Folders' %}</h3>
<div class="card border-info">
<div class="card-body text-info">
<p class="card-text">
{% trans 'On this Page you can manage all DropBox folder locations that should be monitored and synced' %}
<br/>
{% trans 'The path must be in the following format' %} <code>/Folder/RecipesFolder</code>
</p>
<form method="POST" class="post-form">{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
</form>
</div>
</div>
{% trans 'On this Page you can manage all DropBox folder locations that should be monitored and synced' %} <br/>
{% trans 'The path must be in the following format' %} <code>/Folder/RecipesFolder</code>
<br/>
<a href="{% url 'api_dropbox_sync' %}" class="btn btn-success">{% trans 'Sync Now!' %}</a>
<br/>
<form method="POST" class="post-form">{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Submit" class="btn btn-success">
</form>
<a href="{% url 'api_dropbox_sync' %}" class="btn btn-warning">{% trans 'Sync Now!' %}</a>
<br/><br/>
{% render_table monitored_paths %}