form action url to submit method post class form input type hidden nam

 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
<form action="/url/to/submit/" method="post" class="form">
<input type="hidden" name="csrfmiddlewaretoken" value="6oBaXkHb2F5iCgcTT0mqNKYj3A1PXlTf">
<div class="form-group"><label class="control-label" for="id_contract_id">Договор</label><input class="form-control" id="id_contract_id" maxlength="90" name="contract_id" placeholder="Договор" required="required" title="" type="text"></div>
<div class="form-group"><label class="control-label" for="id_name">Названия</label><input class="form-control" id="id_name" maxlength="90" name="name" placeholder="Названия" title="" type="text"></div>
<div class="form-group"><label class="control-label" for="id_created_at">Создано</label><input class="form-control" id="id_created_at" name="created_at" placeholder="Создано" title="" type="text"></div>
<div class="form-group"><label class="control-label" for="id_created_time">Создано</label><input class="form-control" id="id_created_time" name="created_time" placeholder="Создано" title="" type="text"></div>
<div class="form-group"><label class="control-label" for="id_contractor">Подрядчик</label><select class="form-control" id="id_contractor" name="contractor" required="required" title="">
<option value="" selected="selected">---------</option>
<option value="1">ТОВ СРБУ</option>
<option value="2">ДП</option>
<option value="3">ПП</option>
</select></div>
<div class="form-group"><label class="control-label" for="id_customer">Заказчик</label><select class="form-control" id="id_customer" name="customer" required="required" title="">
<option value="" selected="selected">---------</option>
<option value="1">Заказчик</option>
</select></div>
<div class="form-group"><label class="control-label" for="id_address">Объект работ (адрес)</label><select class="form-control" id="id_address" name="address" required="required" title="">
<option value="" selected="selected">---------</option>
<option value="1">Адрес</option>
<option value="2">dfdfgdfg</option>
</select></div>
<div class="form-group"><label class="control-label" for="id_type">Общий вид работ</label><select class="form-control" id="id_type" name="type" required="required" title="">
<option value="kvr">КВР</option>
<option value="monaj">Монтаж п/н</option>
<option value="project work">Проектные работы</option>
<option value="all" selected="selected">Осмотры, ЕО, атестация</option>
</select></div>
<div class="form-group"><label class="control-label" for="id_sum">Сумма договора</label><input class="form-control" id="id_sum" name="sum" placeholder="Сумма договора" required="required" step="0.01" title="" type="number" value="0"></div>
<div class="form-group"><label class="control-label" for="id_payment">Оплата общее</label><input class="form-control" id="id_payment" name="payment" placeholder="Оплата общее" step="0.01" title="" type="number" value="0"></div>
<div class="form-group"><label class="control-label" for="id_zaluzhok">Остаток по договороу</label><input class="form-control" id="id_zaluzhok" name="zaluzhok" placeholder="Остаток по договороу" step="0.01" title="" type="number" value="0"></div>
<div class="form-group"><label class="control-label" for="id_progress">Исполнение общее</label><input class="form-control" id="id_progress" name="progress" placeholder="Исполнение общее" step="0.01" title="" type="number" value="0" disabled=""></div>
<div class="form-group"><label class="control-label" for="id_debt">Общий долг по оплате</label><input class="form-control" id="id_debt" name="debt" placeholder="Общий долг по оплате" step="0.01" title="" type="number" value="0"></div>
<div class="form-group">
<button type="submit" class="btn btn-primary">
<span class="glyphicon glyphicon-star"></span> Создать
</button>
</div>
</form>