Bug 25744: Replace <i> with <em> in staff interface
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / clubs / clubs-add-modify.tt
1 [% USE KohaDates %]
2 [% USE Branches %]
3 [% USE AuthorisedValues %]
4 [% SET AuthorisedValuesCategories = AuthorisedValues.GetCategories %]
5 [% SET footerjs = 1 %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo;
8     [% IF club %]
9         Modify club [% club.name | html %]
10     [% ELSE %]
11         Create a new [% club_template.name | html %] club
12     [% END %]
13 </title>
14 [% INCLUDE 'doc-head-close.inc' %]
15 </head>
16
17 <body id="clubs_add_modify" class="clubs">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'cat-search.inc' %]
20 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; <a href="clubs.pl">Patron clubs</a> &rsaquo;
21     [% IF club %]
22         Modify club <em>[% club.name | html %]</em>
23     [% ELSE %]
24         Create a new <em>[% club_template.name | html %]</em> club
25     [% END %]
26 </div>
27
28 <div class="main container-fluid">
29     <div class="row">
30         <div class="col-md-8 col-md-offset-2">
31
32             <form method="post" class="validated">
33                 <input type="hidden" name="id" value="[% club.id | html %]" />
34                 <input type="hidden" name="club_template_id" value="[% club_template.id | html %]" />
35
36                 <fieldset class="rows">
37
38                     <legend>
39                         [% IF club %]
40                             Modify club <em>[% club.name | html %]</em>
41                         [% ELSE %]
42                             Create a new <em>[% club_template.name | html %]</em> club
43                         [% END %]
44                     </legend>
45
46                     <ol>
47                         <li>
48                             <label class="required" for="club-name">Name:</label>
49                             <input id="club-name" name="name" type="text" value="[% club.name | html %]" required="required"/>
50                             <span class="required">Required</span>
51                         </li>
52
53                         <li>
54                             <label for="club-template-name">Description:</label>
55                             <input id="club-template-name" name="description" type="text" value="[% club.description | html %]" size="40" />
56                         </li>
57
58                         <li>
59                             <label for="from">Start date:</label>
60                             <input name="date_start" id="from" size="10" readonly="readonly" class="datepickerfrom" value="[% club.date_start | $KohaDates %]">
61                         </li>
62
63                         <li>
64                             <label for="to">End date:</label>
65                             <input name="date_end" id="to" size="10" readonly="readonly" class="datepickerto" value="[% club.date_end | $KohaDates %]" >
66                         </li>
67
68                         <li>
69                             <label for="club-template-branchcode">Library:</label>
70                             <select name="branchcode" id="club-template-branchcode">
71                                 <option value=""></option>
72                                 [% PROCESS options_for_libraries libraries => Branches.all( selected => club.branch.branchcode ) %]
73                             </select>
74                         </li>
75
76                         [% IF club %]
77                             [% FOREACH f IN club.club_fields %]
78                                 <li>
79                                     <input type="hidden" name="club_template_field_id" value="[% f.club_template_field.id | html %]" />
80                                     <input type="hidden" name="club_field_id" value="[% f.id | html %]" />
81
82                                     <label for="club_field_[% f.club_template_field_id | html %]">[% f.club_template_field.name | html %]</label>
83                                     [% IF f.club_template_field.authorised_value_category %]
84                                         <select name="club_field" id="club_field_[% f.club_template_field_id | html %]">
85                                             [% FOREACH a IN AuthorisedValues.Get( f.club_template_field.authorised_value_category ) %]
86                                                 [% IF a.authorised_value == f.value %]
87                                                     <option value="[% a.authorised_value | html %]" selected="selected">[% a.lib | html %]</option>
88                                                 [% ELSE %]
89                                                     <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
90                                                 [% END %]
91                                             [% END %]
92                                         </select>
93                                     [% ELSE %]
94                                         <input type="text" name="club_field" id="club_field_[% f.club_template_field_id | html %]" value="[% f.value | html %]" size="40" />
95                                     [% END %]
96                                 </li>
97                             [% END %]
98                         [% ELSE %]
99                             [% FOREACH f IN club_template.club_template_fields %]
100                                 <li>
101                                     <input type="hidden" name="club_template_field_id" value="[% f.id | html %]" />
102
103                                     <label for="club_template_field_[% f.id | html %]">[% f.name | html %]</label>
104                                     [% IF f.authorised_value_category %]
105                                         <select name="club_field" id="club_template_field_[% f.id | html %]">
106                                             [% FOREACH a IN AuthorisedValues.Get( f.authorised_value_category ) %]
107                                                 <option value="[% a.authorised_value | html %]">[% a.lib | html %]</option>
108                                             [% END %]
109                                         </select>
110                                     [% ELSE %]
111                                         <input type="text" name="club_field" id="club_template_field_[% f.id | html %]" size="40" />
112                                     [% END %]
113                                 </li>
114                             [% END %]
115                         [% END %]
116
117                     </ol>
118
119                 </fieldset>
120
121                 <fieldset class="action">
122                     <input type="submit" value="Save" />
123                     <a href="clubs.pl" class="cancel">Cancel</a>
124                 </fieldset>
125             </form>
126         </div>
127     </div>
128
129 [% MACRO jsinclude BLOCK %]
130     [% INCLUDE 'calendar.inc' %]
131 [% END %]
132
133 [% INCLUDE 'intranet-bottom.inc' %]