ref: master
core/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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
{% extends 'layout.html' %} {% block body %} <form action="/cycles/" method="POST" class="mt-5"> <div class="form-section"> <label class="umbo-label" for="">Título desse ciclo</label> <input class="umbo-input" type="text" name="name"> </div> <div class="form-section"> <label class="umbo-label" for="">Descrição</label> <textarea class="umbo-input" rows="10" cols="72" name="description"></textarea> </div> <div class="form-section"> <label class="umbo-label" for="">Margem sobre o valor dos produtos nesse ciclo</label> <input name="price_margin" type="number" step="0.1" class="umbo-input" /> </div> <div class="form-section"> <label class="umbo-label" for="">Estado inicial desse ciclo</label> <select class="umbo-input" name="status"> {% for cycle in cycles %} <option value="{{cycle[0]}}">{{cycle[1]}}</option> {% endfor %} </select> </div> <fieldset class="umbo-fieldset"> <legend class="legend-xl umbo-fieldset-legend"> <h1> Quando esse ciclo se inicia? </h1> </legend> <span class="hint"> Por exemplo, 25 04 2020 </span> <div class="form-date-group"> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Dia</label> <input class="umbo-input" name="start_at_day" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Mês</label> <input class="umbo-input" name="start_at_month" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Ano</label> <input class="umbo-input" name="start_at_year" type="text" readonly value="2020"> </div> </div> </div> </fieldset> <fieldset class="umbo-fieldset"> <legend class="legend-xl umbo-fieldset-legend"> <h1> Quando esse ciclo se encerra? </h1> </legend> <span class="hint"> Por exemplo, 25 04 2020 </span> <div class="form-date-group"> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Dia</label> <input class="umbo-input" name="end_at_day" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Mês</label> <input class="umbo-input" name="end_at_month" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Ano</label> <input class="umbo-input" name="end_at_year" type="text" readonly value="2020"> </div> </div> </div> </fieldset> <fieldset class="umbo-fieldset"> <legend class="legend-xl umbo-fieldset-legend"> <h1> Quando começa o período de entrega? </h1> </legend> <span class="hint"> Por exemplo, 25 04 2020 </span> <div class="form-date-group"> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Dia</label> <input class="umbo-input" name="delivery_start_at_day" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Mês</label> <input class="umbo-input" name="delivery_start_at_month" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Ano</label> <input class="umbo-input" name="delivery_start_at_year" type="text" readonly value="2020"> </div> </div> </div> </fieldset> <fieldset class="umbo-fieldset"> <legend class="legend-xl umbo-fieldset-legend"> <h1> Quando se encerra o período de entrega? </h1> </legend> <span class="hint"> Por exemplo, 25 04 2020 </span> <div class="form-date-group"> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Dia</label> <input class="umbo-input" name="delivery_end_at_day" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Mês</label> <input class="umbo-input" name="delivery_end_at_month" type="text"> </div> </div> <div class="date-group-item"> <div class="form-section"> <label class="umbo-label" for="">Ano</label> <input class="umbo-input" name="delivery_end_at_year" type="text" readonly value="2020"> </div> </div> </div> </fieldset> <div class="umbo-form-actions mt-5 mb-5"> <button class="btn btn-primary" type="submit">Criar Ciclo</button> </div> </form> {% endblock %} |