3 [% USE AuthorisedValues %]
4 [% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
6 [% INCLUDE 'doc-head-open.inc' %]
9 Modify club [% club.name | html %]
11 Create a new [% club_template.name | html %] club
12 [% END %] › Patron clubs › Tools › Koha
14 [% INCLUDE 'doc-head-close.inc' %]
17 <body id="clubs_add_modify" class="clubs">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'cat-search.inc' %]
21 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
24 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
27 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
30 <a href="clubs.pl">Patron clubs</a>
33 <a href="#" aria-current="page">
35 Modify club <em>[% club.name | html %]</em>
37 Create a new <em>[% club_template.name | html %]</em> club
44 <div class="main container-fluid">
46 <div class="col-md-8 col-md-offset-2">
48 <form method="post" class="validated">
49 <input type="hidden" name="id" value="[% club.id | html %]" />
50 <input type="hidden" name="club_template_id" value="[% club_template.id | html %]" />
52 <fieldset class="rows">
56 Modify club <em>[% club.name | html %]</em>
58 Create a new <em>[% club_template.name | html %]</em> club
64 <label class="required" for="club-name">Name:</label>
65 <input id="club-name" name="name" type="text" value="[% club.name | html %]" required="required"/>
66 <span class="required">Required</span>
70 <label for="club-template-name">Description:</label>
71 <input id="club-template-name" name="description" type="text" value="[% club.description | html %]" size="40" />
75 <label for="from">Start date:</label>
76 <input name="date_start" id="from" size="10" class="flatpickr" data-date_to="to" value="[% club.date_start | $KohaDates %]">
80 <label for="to">End date:</label>
81 <input name="date_end" id="to" size="10" class="flatpickr" value="[% club.date_end | $KohaDates %]" >
85 <label for="club-template-branchcode">Library:</label>
86 <select name="branchcode" id="club-template-branchcode">
87 <option value=""></option>
88 [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
93 [% FOREACH f IN club.club_fields %]
95 <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id | html %]" />
96 <input type="hidden" name="club_field_id" value="[% f.id | html %]" />
98 <label for="club_field_[% f.club_template_field_id | html %]">[% f.club_template_field.name | html %]</label>
99 [% IF f.club_template_field.authorised_value_category %]
100 <select name="club_field" id="club_field_[% f.club_template_field_id | html %]">
101 [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
102 [% IF a.authorised_value == f.value %]
103 <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
105 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
110 <input type="text" name="club_field" id="club_field_[% f.club_template_field_id | html %]" value="[% f.value | html %]" size="40" />
115 [% FOREACH f IN club_template.club_template_fields %]
117 <input type="hidden" name="club_template_field_id" value="[% f.id | html %]" />
119 <label for="club_template_field_[% f.id | html %]">[% f.name | html %]</label>
120 [% IF f.authorised_value_category %]
121 <select name="club_field" id="club_template_field_[% f.id | html %]">
122 [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
123 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
127 <input type="text" name="club_field" id="club_template_field_[% f.id | html %]" size="40" />
137 <fieldset class="action">
138 <input type="submit" value="Save" />
139 <a href="clubs.pl" class="cancel">Cancel</a>
145 [% MACRO jsinclude BLOCK %]
146 [% INCLUDE 'calendar.inc' %]
149 [% INCLUDE 'intranet-bottom.inc' %]