Main Koha release repository https://koha-community.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 regels
2.6 KiB

  1. [% BLOCK options_for_libraries %]
  2. [% FOREACH l IN libraries %]
  3. [% IF l.selected %]
  4. <option value="[% prefix | html %][% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
  5. [% ELSE %]
  6. <option value="[% prefix | html %][% l.branchcode | html %]">[% l.branchname | html %]</option>
  7. [% END%]
  8. [% END %]
  9. [% END %]
  10. [% BLOCK options_for_desks %]
  11. <option id="nodesk" value="">---</option>
  12. [% FOREACH d IN desks %]
  13. [% IF d.branchcode == branch %]
  14. [% IF selected == d.desk_id %]
  15. <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" selected="selected">[% d.desk_name | html %]</option>
  16. [% ELSE %]
  17. <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" >[% d.desk_name | html %]</option>
  18. [% END %]
  19. [% ELSE %]
  20. <option class="[% d.branchcode | html %]" value="[% d.desk_id | html %]" disabled hidden>[% d.desk_name | html %]</option>
  21. [% END %]
  22. [% END %]
  23. [% END %]
  24. [% BLOCK options_for_registers %]
  25. [% FOREACH r IN registers %]
  26. [% IF r.branch == Branches.GetLoggedInBranchcode %]
  27. [% IF r.selected %]
  28. <option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]" selected="selected">[% r.name | html %]</option>
  29. [% ELSE %]
  30. <option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]">[% r.name | html %]</option>
  31. [% END%]
  32. [% ELSE %]
  33. <option class="[%- r.branch | html -%][%- IF r.branch_default -%] default[%- END -%]" value="[% r.id | html %]" disabled style="display: none">[% r.name | html %]</option>
  34. [% END %]
  35. [% END %]
  36. [% END %]
  37. [% BLOCK options_for_authorised_value_categories %]
  38. [% FOREACH avc IN authorised_value_categories %]
  39. [% IF avc.selected %]
  40. <option value="[% avc.category | html %]" selected="selected">[% avc.category | html %]</option>
  41. [% ELSE %]
  42. <option value="[% avc.category | html %]">[% avc.category | html %]</option>
  43. [% END %]
  44. [% END %]
  45. [% END %]
  46. [% BLOCK options_for_item_types %]
  47. [% FOREACH itemtype IN itemtypes %]
  48. [% IF itemtype.itemtype == selected_itemtype %]
  49. <option value="[% itemtype.itemtype | html %]" selected="selected">
  50. [% ELSE %]
  51. <option value="[% itemtype.itemtype | html %]">
  52. [% END %]
  53. [% itemtype.translated_description | html %]
  54. </option>
  55. [% END %]
  56. [% END %]