mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 23:58:15 -05:00
testing around
This commit is contained in:
@@ -28,10 +28,14 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<h3>{% trans 'Edit Recipe' %}</h3>
|
<h3>{% trans 'Edit Recipe' %}</h3>
|
||||||
|
|
||||||
<div id="app">
|
<div v-if="recipe">
|
||||||
|
|
||||||
|
<div v-if="!recipe" class="text-center">
|
||||||
|
<br/>
|
||||||
|
<i class="fas fa-spinner fa-spin fa-8x"></i>
|
||||||
|
</div>
|
||||||
<div v-if="recipe">
|
<div v-if="recipe">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -330,7 +334,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content_xl_right %}
|
{% block content_xl_right %}
|
||||||
@@ -355,7 +360,8 @@
|
|||||||
<div class="col-md-11">
|
<div class="col-md-11">
|
||||||
<h5><i class="fas fa-sort-amount-down-alt"></i> {% trans 'Steps' %}</h5>
|
<h5><i class="fas fa-sort-amount-down-alt"></i> {% trans 'Steps' %}</h5>
|
||||||
<draggable :list="recipe.steps" group="steps_sorter"
|
<draggable :list="recipe.steps" group="steps_sorter"
|
||||||
:empty-insert-threshold="10" handle=".handle" @sort="sortSteps()" class="list-group" style="margin-top: 1vh">
|
:empty-insert-threshold="10" handle=".handle" @sort="sortSteps()" class="list-group"
|
||||||
|
style="margin-top: 1vh">
|
||||||
<div v-for="step, step_index in recipe.steps" class="list-group-item">
|
<div v-for="step, step_index in recipe.steps" class="list-group-item">
|
||||||
<div class="d-flex justify-content-center align-items-center">
|
<div class="d-flex justify-content-center align-items-center">
|
||||||
<div class="flex-grow-0 text-muted">
|
<div class="flex-grow-0 text-muted">
|
||||||
@@ -397,6 +403,7 @@
|
|||||||
foods_loading: false,
|
foods_loading: false,
|
||||||
units: [],
|
units: [],
|
||||||
units_loading: false,
|
units_loading: false,
|
||||||
|
message: '',
|
||||||
},
|
},
|
||||||
directives: {
|
directives: {
|
||||||
tabindex: {
|
tabindex: {
|
||||||
|
|||||||
@@ -215,7 +215,19 @@
|
|||||||
{% if recipe.steps.all|length > 1 %}
|
{% if recipe.steps.all|length > 1 %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 text-muted">
|
<div class="col-md-12 text-muted">
|
||||||
<small>{% trans 'Step' %} {{ forloop.counter }}{% if s.name %} - {{ s.name }}{% endif %}</small>
|
<small>
|
||||||
|
{% if s.type == 'TEXT' %}
|
||||||
|
<i class="fas fa-paragraph fa-fw"></i>
|
||||||
|
{% elif s.type == 'TIME' %}
|
||||||
|
<i class="fas fa-clock fa-fw"></i>
|
||||||
|
{% endif %}
|
||||||
|
{% if s.name %}{{ s.name }}{% else %}{% trans 'Step' %}
|
||||||
|
{{ forloop.counter }}{% endif %}
|
||||||
|
{% if s.type == 'TIME' %}
|
||||||
|
- {{ s.time }} {% trans 'Minutes' %}
|
||||||
|
{% endif %}
|
||||||
|
</small>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -246,7 +258,6 @@
|
|||||||
width="100%"
|
width="100%"
|
||||||
height="700px"
|
height="700px"
|
||||||
style="border: none;"></iframe>
|
style="border: none;"></iframe>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if '.jpg' in recipe.file_path or '.png' in recipe.file_path or '.jpeg' in recipe.file_path %}
|
{% if '.jpg' in recipe.file_path or '.png' in recipe.file_path or '.jpeg' in recipe.file_path %}
|
||||||
|
|||||||
Reference in New Issue
Block a user