ciclos

ref: master

core/templates/new_product.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
{% extends 'layout.html' %}

{% block body %}
<section class="messages">
	{% with messages = get_flashed_messages() %}
	{% if messages %}
	<section>
		{{ messages[0] }}
	</section>
	{% endif %}
	{% endwith %}
</section>

<form action='{{ url_for('products.index') }}' method="POST">

	<fieldset class="umbo-fieldset">
		<legend class="legend-xl umbo-fieldset-legend">
			<h1>Informações básicas sobre esse produto</h1>
		</legend>

		<div class="umbo-form-group">
			<label class="umbo-label" for="title">Título do Produto</label>
			<input class="umbo-input" type="text" placeholder="Mucilon Agroecologico" name="title">
		</div>

		<div class="umbo-form-group">
			<label class="umbo-label" for="description">Descreva o produto</label>
			<textarea class="umbo-input" rows="10" cols="72" placeholder="Description" name="description"></textarea>
		</div>
	</fieldset>

	<fieldset class="umbo-fieldset">
		<legend class="legend-xl umbo-fieldset-legend">
			<h1>Categoria e de quem pertence esse produto?</h1>
			<span class="hint">
				Se não estiver na lista, cadastre primeiro <a href="{{ url_for('product_categories.new') }}">aqui</a>
			</span>
		</legend>

		<div class="umbo-form-group">
			<label class="umbo-label" for="group_id">Fornecedor</label>
			<select class="umbo-input" id="" name="group_id">
				{% for group in groups %}
				<option value="{{group.id}}">{{group.name}}</option>
				{% endfor %}
			</select>
		</div>

		<div class="umbo-form-group">
			<label class="umbo-label" for="category_id">Categoria</label>
			<select class="umbo-input" id="" name="category_id">
				{% for category in categories %}
				<option value="{{ category.id }}">{{ category.name }}</option>
				{% endfor %}
			</select>
		</div>
	</fieldset>

	<fieldset class="umbo-fieldset">
		<legend class="legend-xl umbo-fieldset-legend">
			<h1>Valor do produto</h1>

			<span class="hint">
				Esse é o valor sem a margem, que será adicionada a cada ciclo
			</span>
		</legend>

		<div class="umbo-form-group">
			<label class="umbo-label" for="price">Price</label>
			<input class="umbo-input" type="text" placeholder="14.20" name="price" />
		</div>
	</fieldset>

	<div class="umbo-form-actions">
		<button type="submit" rel="button">Criar Produto</button>
	</div>

</form>
{% endblock %}