ref: cycles
src/templates/new_cycle.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
{% extends 'layout.html' %}
{% block body %}
<form action="/cycles/" method="POST">
<div class="form-section">
<label for="">Name</label>
<input type="text" name="name">
</div>
<div class="form-section">
<label for="">Description</label>
<textarea rows="10" columns="10" name="description"></textarea>
</div>
<div class="form-section">
<label for="">Start At</label>
<input name="start_at" type="text" />
</div>
<div class="form-section">
<label for="">Ends At</label>
<input name="end_at" type="text" />
</div>
<div class="form-section">
<label for="">Delivery Start At</label>
<input name="delivery_start_at" type="text" />
</div>
<div class="form-section">
<label for="">Delivery Ends At</label>
<input name="delivery_end_at" type="text" />
</div>
<div class="form-section">
<label for="">Price Margin</label>
<input name="price_margin" type="text" />
</div>
<div class="form-section">
<label for="">Status</label>
<select name="status">
{% for cycle in cycles %}
<option value="{{cycle[0]}}">{{cycle[1]}}</option>
{% endfor %}
</select>
</div>
<div class="form-action">
<button type="submit">Criar Ciclo</button>
</div>
</form>
{% endblock %}
|