blob: a52518f3efd003edd75d53dfddfe3e40f51d54d5 (
plain)
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
|
{% extends 'registration/base.html' %}
{% block title %}Admin - Modifica Tipo{% endblock %}
{% block nav %}
<a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a>
<a href="#!" class="breadcrumb hide-on-med-and-down">Crea Doc</a>
{% endblock %}
{% block content %}
<div class="row">
<div class="col l8 offset-l2 s12">
<div class="card-panel">
<div class="row">
<form id="form" action="{% url 'create'%}" method="post" class="col s12">
{% csrf_token %}
<div class="row">
<div class="input-field col s12">
<select name="doctype">
<option value="" disabled selected>Scegli</option>
{% for doctype in docs%}
<option value="{{doctype.id}}">{{doctype.name}}</option>
{% endfor %}
</select>
<label>Documento</label>
</div>
</div>
<button class="btn waves-effect waves-light" type="submit" name="action">Invia
<i class="material-icons right">send</i>
</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
{% block script %}
$(document).ready(function(){
$('select').formSelect();
});
{% endblock %}
|