View | Details | Raw Unified | Return to bug 3311
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/staff-global.css (+5 lines)
Lines 1265-1275 div.note i.fa-exclamation { Link Here
1265
 	text-decoration : underline;
1265
 	text-decoration : underline;
1266
 }
1266
 }
1267
 
1267
 
1268
th.required,
1268
label.required,
1269
label.required,
1269
span.required {
1270
span.required {
1270
    color : #C00;
1271
    color : #C00;
1271
}
1272
}
1272
1273
1274
th.required {
1275
    width: 17%;
1276
}
1277
1273
span.required {
1278
span.required {
1274
	font-style : italic;
1279
	font-style : italic;
1275
	margin-left : .5em;
1280
	margin-left : .5em;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_stats.tt (-12 / +26 lines)
Lines 99-116 Link Here
99
	[% END %]
99
	[% END %]
100
[% ELSE %]
100
[% ELSE %]
101
101
102
    <form method="post" class="validated" action="/cgi-bin/koha/reports/catalogue_stats.pl">
102
    <form name="configure_report" id="configure_report" method="post" class="validated" action="/cgi-bin/koha/reports/catalogue_stats.pl">
103
	<fieldset class="rows">
103
	<fieldset class="rows">
104
	<legend>Catalog statistics</legend>
104
	<legend>Catalog statistics</legend>
105
	<table>
105
	<table>
106
		<thead>
106
		<thead>
107
			<tr>
107
			<tr>
108
			<th>Title</th>
108
			<th>Title</th>
109
                        <th><label for="Line" class="required">Row</label>
109
                        <th class="required">Row<br>
110
                            <label for="Line" class="error" style="display: none"><br>A row must be selected.</label>
110
                            <span id="LineError"></span>
111
                        </th>
111
                        </th>
112
                        <th><label for="Column" class="required">Column</label>
112
                        <th class="required">Column<br>
113
                            <label for="Column" class="error" style="display: none"><br>A column must be selected.</label>
113
                            <span id="ColumnError"></span>
114
                        </th>
114
                        </th>
115
			<th>Filter</th>
115
			<th>Filter</th>
116
			</tr>
116
			</tr>
Lines 125-131 Link Here
125
     <tr>
125
     <tr>
126
        <td>&nbsp;</td>
126
        <td>&nbsp;</td>
127
        <td colspan="2"><select name="cotedigits" id="cotedigits">
127
        <td colspan="2"><select name="cotedigits" id="cotedigits">
128
          <option value=""> </option>
128
          <option value="" label="&nbsp;"> </option>
129
          <option value ="1">1</option>
129
          <option value ="1">1</option>
130
          <option value ="2">2</option>
130
          <option value ="2">2</option>
131
          <option value ="3">3</option>
131
          <option value ="3">3</option>
Lines 141-147 Link Here
141
				<td><input type="radio" name="Line" value="[% item_itype %]" /></td>
141
				<td><input type="radio" name="Line" value="[% item_itype %]" /></td>
142
				<td><input type="radio" name="Column" value="[% item_itype %]" /></td>
142
				<td><input type="radio" name="Column" value="[% item_itype %]" /></td>
143
				<td><select name="Filter" id="[% item_itype %]">
143
				<td><select name="Filter" id="[% item_itype %]">
144
					<option value=""> </option>
144
                    <option value="" label="&nbsp;"> </option>
145
                    [% FOREACH itemtype IN itemtypes %]
145
                    [% FOREACH itemtype IN itemtypes %]
146
                        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
146
                        <option value="[% itemtype.itemtype %]">[% itemtype.translated_description %]</option>
147
                    [% END %]
147
                    [% END %]
Lines 158-171 Link Here
158
                <td>Publication year</td>
158
                <td>Publication year</td>
159
				<td><input type="radio" name="Line" value="publicationyear" /></td>
159
				<td><input type="radio" name="Line" value="publicationyear" /></td>
160
				<td><input type="radio" name="Column" value="publicationyear" /></td>
160
				<td><input type="radio" name="Column" value="publicationyear" /></td>
161
                <td><label for="pubyearFrom">From</label> <input type="text" name="Filter" id="pubYearFrom" /> <label for="pubyearTo">To</label> <input type="text" name="Filter" id="pubyearTo" /></td>
161
                <td><label for="pubYearFrom">From</label> <input type="text" name="Filter" id="pubYearFrom" /> <label for="pubyearTo">To</label> <input type="text" name="Filter" id="pubyearTo" /></td>
162
			</tr>
162
			</tr>
163
			<tr>
163
			<tr>
164
                <td>Home library</td>
164
                <td>Home library</td>
165
				<td><input type="radio" name="Line" value="items.homebranch" /></td>
165
				<td><input type="radio" name="Line" value="items.homebranch" /></td>
166
				<td><input type="radio" name="Column" value="items.homebranch" /></td>
166
				<td><input type="radio" name="Column" value="items.homebranch" /></td>
167
				<td><select name="Filter" id="branch">
167
				<td><select name="Filter" id="branch">
168
                    <option value=""> </option>
168
                    <option value="" label="&nbsp;"> </option>
169
                    [% PROCESS options_for_libraries libraries => Branches.all() %]
169
                    [% PROCESS options_for_libraries libraries => Branches.all() %]
170
                    </select>
170
                    </select>
171
				</td>
171
				</td>
Lines 175-181 Link Here
175
				<td><input type="radio" name="Line" value="items.location" /></td>
175
				<td><input type="radio" name="Line" value="items.location" /></td>
176
				<td><input type="radio" name="Column" value="items.location" /></td>
176
				<td><input type="radio" name="Column" value="items.location" /></td>
177
				<td><select name="Filter" id="location">
177
				<td><select name="Filter" id="location">
178
					<option value=""> </option>
178
                    <option value="" label="&nbsp;"> </option>
179
					[% FOREACH locationloo IN locationloop %]
179
					[% FOREACH locationloo IN locationloop %]
180
					[% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
180
					[% IF ( locationloo.selected ) %]<option value="[% locationloo.code %]" selected="selected">[% locationloo.description %]</option>[% ELSE %]<option value="[% locationloo.code %]">[% locationloo.description %]</option>[% END %]
181
					[% END %]
181
					[% END %]
Lines 187-193 Link Here
187
				<td><input type="radio" name="Line"   value="items.ccode" /></td>
187
				<td><input type="radio" name="Line"   value="items.ccode" /></td>
188
				<td><input type="radio" name="Column" value="items.ccode" /></td>
188
				<td><input type="radio" name="Column" value="items.ccode" /></td>
189
				<td><select name="Filter" id="ccode">
189
				<td><select name="Filter" id="ccode">
190
					<option value=""> </option>
190
                    <option value="" label="&nbsp;"> </option>
191
					[% FOREACH authval IN authvals %]
191
					[% FOREACH authval IN authvals %]
192
					[% IF ( authval.selected ) %]<option value="[% authval.code %]" selected="selected">[% authval.description %]</option>[% ELSE %]<option value="[% authval.code %]">[% authval.description %]</option>[% END %]
192
					[% IF ( authval.selected ) %]<option value="[% authval.code %]" selected="selected">[% authval.description %]</option>[% ELSE %]<option value="[% authval.code %]">[% authval.description %]</option>[% END %]
193
					[% END %]
193
					[% END %]
Lines 277-282 Link Here
277
                    <input type="text" name="Filter" id="deldateTo" class="datepicker"/>
277
                    <input type="text" name="Filter" id="deldateTo" class="datepicker"/>
278
                </td>
278
                </td>
279
            </tr>
279
            </tr>
280
<script type="text/javascript">
281
//<![CDATA[
282
        $("#configure_report").validate({
283
            errorPlacement: function(error, element) {
284
                if (element.attr("name") == "Line") {
285
                    $("#LineError").html( error );
286
                } else if (element.attr("name") == "Column") {
287
                    $("#ColumnError").html( error );
288
                } else {
289
                    error.insertAfter(element);
290
                }
291
            }
292
        });
293
//]]>
294
</script>
280
		</tbody>
295
		</tbody>
281
	</table><br /></fieldset>
296
	</table><br /></fieldset>
282
297
283
- 

Return to bug 3311