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 [% WRAPPER 'header.inc' %]
19 [% INCLUDE 'cat-search.inc' %]
22 [% WRAPPER 'sub-header.inc' %]
23 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
26 <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
29 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
32 <a href="clubs.pl">Patron clubs</a>
35 <a href="#" aria-current="page">
37 Modify club <em>[% club.name | html %]</em>
39 Create a new <em>[% club_template.name | html %]</em> club
47 <div class="main container-fluid">
49 <div class="col-md-8 col-md-offset-2">
51 <form method="post" class="validated">
52 <input type="hidden" name="id" value="[% club.id | html %]" />
53 <input type="hidden" name="club_template_id" value="[% club_template.id | html %]" />
55 <fieldset class="rows">
60 Modify club <em>[% club.name | html %]</em>
62 Create a new <em>[% club_template.name | html %]</em> club
69 <label class="required" for="club-name">Name:</label>
70 <input id="club-name" name="name" type="text" value="[% club.name | html %]" required="required"/>
71 <span class="required">Required</span>
75 <label for="club-template-name">Description:</label>
76 <input id="club-template-name" name="description" type="text" value="[% club.description | html %]" size="40" />
80 <label for="from">Start date:</label>
81 <input name="date_start" id="from" size="10" class="flatpickr" data-date_to="to" value="[% club.date_start | html %]">
85 <label for="to">End date:</label>
86 <input name="date_end" id="to" size="10" class="flatpickr" value="[% club.date_end | html %]" >
90 <label for="club-template-branchcode">Library:</label>
91 <select name="branchcode" id="club-template-branchcode">
92 <option value=""></option>
93 [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
98 [% FOREACH f IN club.club_fields %]
100 <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id | html %]" />
101 <input type="hidden" name="club_field_id" value="[% f.id | html %]" />
103 <label for="club_field_[% f.club_template_field_id | html %]">[% f.club_template_field.name | html %]</label>
104 [% IF f.club_template_field.authorised_value_category %]
105 <select name="club_field" id="club_field_[% f.club_template_field_id | html %]">
106 [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
107 [% IF a.authorised_value == f.value %]
108 <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
110 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
115 <input type="text" name="club_field" id="club_field_[% f.club_template_field_id | html %]" value="[% f.value | html %]" size="40" />
120 [% FOREACH f IN club_template.club_template_fields %]
122 <input type="hidden" name="club_template_field_id" value="[% f.id | html %]" />
124 <label for="club_template_field_[% f.id | html %]">[% f.name | html %]</label>
125 [% IF f.authorised_value_category %]
126 <select name="club_field" id="club_template_field_[% f.id | html %]">
127 [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
128 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
132 <input type="text" name="club_field" id="club_template_field_[% f.id | html %]" size="40" />
142 <fieldset class="action">
143 <input type="submit" value="Save" />
144 <a href="clubs.pl" class="cancel">Cancel</a>
150 [% MACRO jsinclude BLOCK %]
151 [% INCLUDE 'calendar.inc' %]
154 [% INCLUDE 'intranet-bottom.inc' %]