bind.tpl 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. <include href="bars.tpl"/>
  2. <div class="row h-100 justify-content-center">
  3. <div class="col-md-5 align-self-center">
  4. <form class="form" method="post" action="{{@BASEURL}}/bind/{{@STEP+1}}">
  5. <input type="submit" hidden id="submitform"/>
  6. <input type="text" name="labelid" class="form-control form-control-lg" placeholder="Label ID" required {{@AUTOFOCUS1}} autocomplete="false" value="{{ @POST.labelid }}"/>
  7. <check if="{{ @STEP > 1 }}">
  8. <input type="text" name="barcode" class="form-control form-control-lg mt-3" placeholder="Barcode" required {{@AUTOFOCUS2}} autocomplete="false" value="{{ @POST.barcode }}"/>
  9. </check>
  10. <check if="{{ @STEP > 2 }}">
  11. <select name="templateid" class="form-control form-control-lg bg-secondary mt-3" onchange="javascript:{$('#submitform').click()}">
  12. <option>Seleziona un template</option>
  13. <repeat group="{{ @TPLS }}" key="{{@NAMETPL}}" value="{{ @TEMPLATE }}">
  14. <option value="{{@@TEMPLATE}}">{{@@NAMETPL}}</option>
  15. </repeat>
  16. </select>
  17. </check>
  18. </form>
  19. <check if="{{@STEP==4}}">
  20. <div class="alert alert-info mt-5" role="alert">
  21. Invio bind
  22. </div>
  23. <script>
  24. setTimeout(function () {
  25. window.location.href = "{{@BASEURL}}/bind/1";
  26. }, 2000);
  27. </script>
  28. </check>
  29. </div>
  30. </div>