1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 09:07:12 -05:00

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

@@ -51,7 +51,8 @@
{% trans 'Manage Data' %}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="{% url 'batch_import' %}">{% trans 'Import' %}</a>
<a class="dropdown-item" href="{% url 'batch_monitor' %}">{% trans 'Configure Sync' %}</a>
<a class="dropdown-item" href="{% url 'batch_import' %}">{% trans 'Manage imported Recipes' %}</a>
<a class="dropdown-item" href="{% url 'batch_edit' %}">{% trans 'Batch Edit' %}</a>
</div>
</li>

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