5 [% USE AuthorisedValues %]
7 [% INCLUDE 'doc-head-open.inc' %]
10 Modify club [% club.name | html %]
12 Create a new [% club_template.name | html %] club
13 [% END %] › Patron clubs › Tools › Koha
15 [% INCLUDE 'doc-head-close.inc' %]
18 <body id="clubs_add_modify" class="clubs">
19 [% WRAPPER 'header.inc' %]
20 [% INCLUDE 'cat-search.inc' %]
23 [% WRAPPER 'sub-header.inc' %]
24 [% WRAPPER breadcrumbs %]
25 [% WRAPPER breadcrumb_item %]
26 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
28 [% WRAPPER breadcrumb_item %]
29 <a href="clubs.pl">Patron clubs</a>
31 [% WRAPPER breadcrumb_item bc_active= 1 %]
33 <span>Modify club [% club.name | html | $HtmlTags tag="em" %]</span>
35 <span>Create a new [% club_template.name | html | $HtmlTags tag="em" %] club</span>
38 [% END #/ WRAPPER breadcrumbs %]
39 [% END #/ WRAPPER sub-header.inc %]
41 <div class="main container-fluid">
43 <div class="col-md-8 col-md-offset-2">
45 <form method="post" class="validated">
46 <input type="hidden" name="id" value="[% club.id | html %]" />
47 <input type="hidden" name="club_template_id" value="[% club_template.id | html %]" />
49 <fieldset class="rows">
54 <span>Modify club [% club.name | html | $HtmlTags tag="em" %]</span>
56 <span>Create a new [% club_template.name | html | $HtmlTags tag="em" %] club</span>
63 <label class="required" for="club-name">Name:</label>
64 <input id="club-name" name="name" type="text" value="[% club.name | html %]" required="required"/>
65 <span class="required">Required</span>
69 <label for="club-template-name">Description:</label>
70 <input id="club-template-name" name="description" type="text" value="[% club.description | html %]" size="40" />
74 <label for="from">Start date:</label>
75 <input name="date_start" id="from" size="10" class="flatpickr" data-date_to="to" value="[% club.date_start | html %]">
79 <label for="to">End date:</label>
80 <input name="date_end" id="to" size="10" class="flatpickr" value="[% club.date_end | html %]" >
84 <label for="club-template-branchcode">Library:</label>
85 <select name="branchcode" id="club-template-branchcode">
86 <option value=""></option>
87 [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
92 [% FOREACH f IN club.club_fields %]
94 <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id | html %]" />
95 <input type="hidden" name="club_field_id" value="[% f.id | html %]" />
97 <label for="club_field_[% f.club_template_field_id | html %]">[% f.club_template_field.name | html %]</label>
98 [% IF f.club_template_field.authorised_value_category %]
99 <select name="club_field" id="club_field_[% f.club_template_field_id | html %]">
100 [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
101 [% IF a.authorised_value == f.value %]
102 <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
104 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
109 <input type="text" name="club_field" id="club_field_[% f.club_template_field_id | html %]" value="[% f.value | html %]" size="40" />
114 [% FOREACH f IN club_template.club_template_fields %]
116 <input type="hidden" name="club_template_field_id" value="[% f.id | html %]" />
118 <label for="club_template_field_[% f.id | html %]">[% f.name | html %]</label>
119 [% IF f.authorised_value_category %]
120 <select name="club_field" id="club_template_field_[% f.id | html %]">
121 [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
122 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
126 <input type="text" name="club_field" id="club_template_field_[% f.id | html %]" size="40" />
136 <fieldset class="action">
137 <input type="submit" class="btn btn-primary" value="Save" />
138 <a href="clubs.pl" class="cancel">Cancel</a>
144 [% MACRO jsinclude BLOCK %]
145 [% INCLUDE 'calendar.inc' %]
148 [% INCLUDE 'intranet-bottom.inc' %]