ref: configuration
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 |
{% 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="date" /> <small>O Ciclo está configurado para ter duração de {{ configuration.purchase_duration }} {{ configuration.purchase_duration_type }} apartir da data informada.</small> </div> <div class="form-section"> <label for="">Delivery Start At</label> <input name="delivery_start_at" type="date" /> <small>O período de entrega está configurado para ter duração de {{ configuration.delivery_duration }} {{ configuration.delivery_duration_type }} apartir da data informada.</small> </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 class="btn btn-primary" type="submit">Criar Ciclo</button> </div> </form> {% endblock %} |