basic import management page

This commit is contained in:
vabene1111
2018-03-30 23:56:49 +02:00
parent e09b4d3074
commit b7fb7e8e9b
9 changed files with 67 additions and 20 deletions

View File

@@ -1,21 +1,16 @@
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load i18n %}
{% load django_tables2 %}
{% block title %}{% trans 'Import Recipes' %}{% endblock %}
{% block title %}{% trans 'Imported Recipes' %}{% endblock %}
{% block content %}
<h3>
{% trans 'Import Recipes' %}
<small class="text-muted">{% trans 'Manage all paths that should be imported' %}</small>
</h3>
<h3>{% trans 'Update imported Recipes' %}</h3>
<br>
<button class="btn btn-primary">Auto-Import all</button>
<br>
<form method="POST" class="post-form">{% csrf_token %}
{% crispy form %}
</form>
{% render_table monitored_paths %}
{% render_table imported_recipes %}
{% endblock %}

View File

@@ -0,0 +1,21 @@
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% load i18n %}
{% load django_tables2 %}
{% block title %}{% trans 'Sync' %}{% endblock %}
{% block content %}
<h3>{% trans 'Manage watched Folders' %}</h3>
{% 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/>
<form method="POST" class="post-form">{% csrf_token %}
{% crispy form %}
</form>
{% render_table monitored_paths %}
{% endblock %}