2022-11-19 18:52:01 +01:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<h1>{% block title %}Hakkoso{% endblock %}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<!-- https://codepen.io/PJCHENder/pen/PKBVRO/ -->
|
2023-01-04 14:52:28 +01:00
|
|
|
<!-- <ul id="items-list" class="moveable"> -->
|
|
|
|
<!-- <li>One</li> -->
|
|
|
|
<!-- <li>Two</li> -->
|
|
|
|
<!-- <li>Three</li> -->
|
|
|
|
<!-- <li>Four</li> -->
|
|
|
|
<!-- </ul> -->
|
|
|
|
<script>currently_editing_recipe('{{recipe.name}}');</script>
|
2022-11-19 18:52:01 +01:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column is-half">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Recipe Name</label>
|
|
|
|
<div class="control">
|
2023-01-04 14:52:28 +01:00
|
|
|
<input class="input" type="text" placeholder="Text input"
|
|
|
|
value="{{recipe.name}}">
|
2022-11-19 18:52:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Description</label>
|
|
|
|
<div class="control">
|
2023-01-04 14:52:28 +01:00
|
|
|
<textarea class="textarea" placeholder="Recipe Description">
|
2023-01-06 10:54:06 +01:00
|
|
|
{{recipe.description}}
|
2023-01-04 14:52:28 +01:00
|
|
|
</textarea>
|
2022-11-19 18:52:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
Phase list:
|
2023-01-04 14:52:28 +01:00
|
|
|
{% for phase in recipe.phases %}
|
2022-11-19 18:52:01 +01:00
|
|
|
<div class="tile is-ancestor">
|
|
|
|
<div class="tile is-vertical">
|
|
|
|
<div class="tile">
|
|
|
|
<div class="tile is-parent is-vertical">
|
2023-01-04 14:52:28 +01:00
|
|
|
<article
|
|
|
|
onclick="edit_phase({{loop.index0}});"
|
|
|
|
class="tile is-child notification is-primary">
|
2022-11-19 18:52:01 +01:00
|
|
|
<p class="title"></p>
|
2023-01-04 14:52:28 +01:00
|
|
|
<p class="subtitle">{{ phase.name }}</p>
|
2022-11-19 18:52:01 +01:00
|
|
|
</article>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-04 14:52:28 +01:00
|
|
|
{% endfor %}
|
2022-11-19 18:52:01 +01:00
|
|
|
</div>
|
2023-01-04 14:52:28 +01:00
|
|
|
<div class="column is-half" id="phase-editor">
|
2022-11-19 18:52:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|