Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% include "header.html" %}
- <div class="container">
- <div class="row">
- <div class="col-xs-12">
- <table class="table">
- <thead>
- <tr>
- <td>ID</td>
- <td>PUNCT LUCRU</td>
- <td>DENUMIRE PRODUS</td>
- <td>PRODUCATOR</td>
- <td>LOT</td>
- <td>DATA EXPIRARII</td>
- <td>INTREGI DISPONIBILI</td>
- <td>INTREGI REZERVATI</td>
- <td>FRACTIE DISPONIBILA</td>
- <td>FRACTIE REZERVATA</td>
- <td>PRET</td>
- <td>PRET TVA</td>
- <td></td>
- <td></td>
- <td></td>
- </tr>
- </thead>
- <tbody>
- {% for item in items %}
- <tr>
- <form id="rezerva_{{ item.disp_id }}" action="{{ url_for('rezervare',
- pct_lucru=item.pct_lucru,
- cod_comercial=item.cod_comercial,
- denumire_med=item.denumire_med,
- producator=item.producator,
- data_expirarii=item.data_expirarii,
- lot=item.lot,
- pret_fl=item.pret_fl
- ) }}" method="POST">
- <td>{{ item.disp_id }}</td>
- <td>{{ item.pct_lucru }}</td>
- <td>{{ item.denumire_med }}</td>
- <td>{{ item.producator }}</td>
- <td>{{ item.lot }}</td>
- <td>{{ item.data_expirarii }}</td>
- <td class="center">{{ item.cant_disp | int }}</td>
- <td class="center">{{ item.cant_rez | int }}</td>
- <td class="center">{{ item.fractie_disp | int }}</td>
- <td class="center">{{ item.fractie_rez | int }}</td>
- <td>{{ '%0.2f' | format(item.pret_fl | float) }}</td>
- <td>{{ '%0.2f' | format((item.pret_fl+item.pret_fl*0.24) | float) }}</td>
- <td width="6%"><input type="number" name="unitati" class="form-control" max="{{ item.cant_disp|int - item.cant_rez|int}}" min="0"></td>
- <td width="6%"><input type="number" name="fractii" class="form-control" max="{{ item.fractie_disp|int - item.fractie_rez|int}}" min="0"></td>
- <td><button class="btn btn-small btn-primary" type="submit" form="rezerva_{{ item.disp_id }}" {% if item.cant_disp == item.cant_rez and item.fractie_disp == item.fractie_rez %} disabled {% endif %}><i class="fa fa-check"></i> REZERVA</button></td>
- </form>
- </tr>
- {% endfor %}
- </tbody>
- <tfoot>
- <tr>
- <td colspan="6">
- </td>
- </tr>
- </tfoot>
- </table>
- </div>
- </div>
- </div>
- {% include "footer.html" %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement