Current Path : /data/web/virtuals/51568/virtual/www/subdom/pomucky/temp/ |
Current File : /data/web/virtuals/51568/virtual/www/subdom/pomucky/temp/html.html |
<div id="pomucky"> <div class="container" style="max-width: 1200px"> <div class="d-flex mb-2"> <h5 class="fw-bold">Správa pomůcek</h5> <button id="btn-novy" class="btn btn-primary btn-sm rounded-0 ms-auto"> Nová pomůcka </button> <button id="btn-ulozit" class="btn btn-success btn-sm rounded-0 ms-2"> Uložit změny </button> </div> <div class="small lh-sm mb-2 border-top pt-1"> Pořadí pomůcek změníš chycením řádku a jeho přetažením myší. </div> <div class="row"> <div class="col"> <table class="table table-striped table-bordered table-sm"> <thead class=""> <tr> <th data-cell="predmet">pomůcka</th> <th data-cell="stupen1" style="width: 6.5rem">nákup</th> <th data-cell="stupen2" style="width: 6.5rem">prodej</th> <th style="width: 3rem"></th> </tr> </thead> <tbody> {var $counter = 0} {foreach $table as $radek} {do $counter++} {if $counter == $pulka } {/if} <tr id="tr-{$radek->id}"> <td data-cell="nazev" class="py-0"> <input type="text" id="nazev-{$radek->id}" class="form-control table-input" value="{$radek->nazev}" /> <div id="invalid-nazev-{$radek->id}" class="invalid-feedback" ></div> </td> <td data-cell="nakupni_cena" class="py-0"> <input type="number" id="nakupni_cena-{$radek->id}" class="form-control table-input" min="0" max="1000" value="{$radek->nakupni_cena}" /> <div id="invalid-nakupni_cena-{$radek->id}" class="invalid-feedback" ></div> </td> <td data-cell="prodejni_cena" class="py-0"> <input type="number" id="prodejni_cena-{$radek->id}" class="form-control table-input" min="0" max="1000" value="{$radek->prodejni_cena}" /> <div id="invalid-prodejni_cena-{$radek->id}" class="invalid-feedback" ></div> </td> <td class="text-center p-0"> <button id="btndelete-{$radek->id}" class="btn btn-sm text-danger p-0 rounded-0" > <i class="fa-regular fa-trash-can fa-lg"></i> </button> </td> </tr> {/foreach} </tbody> </table> </div> </div> <div id="div-modal"></div> <script src="assets/js/global/formCheck.js"></script> <script src="assets/js/pomucky.js"></script> </div> </div>