Advertisement
Guest User

Untitled

a guest
Aug 11th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.33 KB | None | 0 0
  1. {% include "header.html" %}
  2.  
  3. <div class="container">
  4.     <div class="row">
  5.         <div class="col-xs-12">
  6.             <table class="table">
  7.                 <thead>
  8.                     <tr>
  9.                         <td>ID</td>
  10.                         <td>PUNCT LUCRU</td>
  11.                         <td>DENUMIRE PRODUS</td>
  12.                         <td>PRODUCATOR</td>
  13.                         <td>LOT</td>
  14.                         <td>DATA EXPIRARII</td>
  15.                         <td>INTREGI DISPONIBILI</td>
  16.                         <td>INTREGI REZERVATI</td>
  17.                         <td>FRACTIE DISPONIBILA</td>
  18.                         <td>FRACTIE REZERVATA</td>
  19.                         <td>PRET</td>
  20.                         <td>PRET TVA</td>
  21.                         <td></td>
  22.                         <td></td>
  23.                         <td></td>
  24.                     </tr>
  25.                 </thead>
  26.                 <tbody>
  27.                     {% for item in items %}
  28.                         <tr>
  29.                             <form id="rezerva_{{ item.disp_id }}" action="{{ url_for('rezervare',
  30.                                 pct_lucru=item.pct_lucru,
  31.                                 cod_comercial=item.cod_comercial,
  32.                                 denumire_med=item.denumire_med,
  33.                                 producator=item.producator,
  34.                                 data_expirarii=item.data_expirarii,
  35.                                 lot=item.lot,
  36.                                 pret_fl=item.pret_fl
  37.                             ) }}" method="POST">
  38.                                 <td>{{ item.disp_id }}</td>
  39.                                 <td>{{ item.pct_lucru }}</td>
  40.                                 <td>{{ item.denumire_med }}</td>
  41.                                 <td>{{ item.producator }}</td>
  42.                                 <td>{{ item.lot }}</td>
  43.                                 <td>{{ item.data_expirarii }}</td>
  44.                                 <td class="center">{{ item.cant_disp | int }}</td>
  45.                                 <td class="center">{{ item.cant_rez | int }}</td>
  46.                                 <td class="center">{{ item.fractie_disp | int }}</td>
  47.                                 <td class="center">{{ item.fractie_rez | int }}</td>
  48.                                 <td>{{ '%0.2f' | format(item.pret_fl | float) }}</td>
  49.                                 <td>{{ '%0.2f' | format((item.pret_fl+item.pret_fl*0.24) | float) }}</td>
  50.                                 <td width="6%"><input type="number" name="unitati" class="form-control" max="{{ item.cant_disp|int  - item.cant_rez|int}}" min="0"></td>
  51.                                 <td width="6%"><input type="number" name="fractii" class="form-control" max="{{ item.fractie_disp|int - item.fractie_rez|int}}" min="0"></td>
  52.                                 <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>
  53.                             </form>
  54.                         </tr>
  55.                     {% endfor %}
  56.                 </tbody>
  57.                 <tfoot>
  58.                     <tr>
  59.                         <td colspan="6">
  60.                         </td>
  61.                     </tr>
  62.                 </tfoot>
  63.             </table>
  64.         </div>
  65.     </div>
  66. </div>
  67.  
  68. {% include "footer.html" %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement