85 lines
3.0 KiB
HTML
85 lines
3.0 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
<div class="row">
|
|
<div class="card col-md-6 col-10" >
|
|
<div class="card-body">
|
|
<form method="POST" action="/">
|
|
<input type="text" name="srch" placeholder="инвентарный номер">
|
|
<button> Найти </button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="card col-md-10 col-10">
|
|
<div class="card-body">
|
|
<h3 class="card-title"> Нераспределённые </h3>
|
|
<form method="POST" action="/addoborudtodb">
|
|
<table class="table" name="table" col-md-10>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Инв. номер</th>
|
|
<th scope="col">Название</th>
|
|
<th scope="col">Аудитория</th>
|
|
</tr>
|
|
|
|
{% for item in results: %}
|
|
<tr>
|
|
<td> <input type="hidden" name="invnomer" value="{{ item[0] }}"> {{ item[0] }} </td>
|
|
<td> {{ item[1] }} </td>
|
|
|
|
<td> <select name="auditory" id="auditory">
|
|
|
|
{% for item in aud: %}
|
|
<option name="optauditory" value="{{item.id}}">{{ item.audnazvanie }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<button> Обновить</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row">
|
|
<div class="card col-md-10 col-10">
|
|
<div class="card-body">
|
|
<h3 class="card-title"> Распределённые </h3>
|
|
<table class="table" col-md-10>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Инв. номер</th>
|
|
<th scope="col">Название</th>
|
|
<th scope="col">Аудитория исходная</th>
|
|
<th scope="col">Аудитория переноса</th>
|
|
</tr>
|
|
<td id="invnomer"> {{res1[0]}} </td>
|
|
<td id="nazvanie"> {{res1[1]}} </td>
|
|
<td id="aud"> {{res1[2]}} </td>
|
|
<td>
|
|
<select name="auditory" id="auditory_dubl">
|
|
{% for item in aud: %}
|
|
<option name="optauditory" value="{{item.id}}">{{ item.audnazvanie }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</td>
|
|
</table>
|
|
<button class="updatebtn" > Перенести </button>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{%endblock%}
|