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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt (-48 / +47 lines)
Lines 19-73 Link Here
19
[% END %]
19
[% END %]
20
<h1>Dictionary</h1>
20
<h1>Dictionary</h1>
21
[% IF ( start_dictionary ) %]
21
[% IF ( start_dictionary ) %]
22
<p>Use the dictionary to define custom criteria for reporting.</p>
22
	<p>Use the dictionary to define custom criteria for reporting.</p>
23
23
24
24
		[% IF ( definitions ) %]
25
<h2>Current Terms</h2>
25
		<h2>Current Terms</h2>
26
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
26
		<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
27
<input type="hidden" name="phase" value="View Dictionary" />
27
		<input type="hidden" name="phase" value="View Dictionary" />
28
Filter by area <select name="areas">
28
		[% IF ( areas ) %]
29
<option value="">All</option>
29
			Filter by area <select name="areas">
30
[% FOREACH area IN areas %]     
30
			<option value="">All</option>
31
    [% IF ( area.selected ) %]
31
			[% FOREACH area IN areas %]
32
        <option value="[% area.id %]" selected="selected" >[% area.name %]</option>
32
			    [% IF ( area.selected ) %]
33
    [% ELSE %]
33
			        <option value="[% area.id %]" selected="selected" >[% area.name %]</option>
34
        <option value="[% area.id %]">[% area.name %]</option>
34
			    [% ELSE %]
35
    [% END %]
35
			        <option value="[% area.id %]">[% area.name %]</option>
36
[% END %]
36
			    [% END %]
37
</select> 
37
			[% END %]
38
<input name="submit" value="Go" type="submit" />
38
			</select>
39
</form>
39
			<input name="submit" value="Go" type="submit" />
40
<br />
40
			</form>
41
<table border="1" cellspacing="0" cellpadding="5">
41
			<br />
42
<tr>
42
		[% END %]
43
<th>Name</th>
43
		<table border="1" cellspacing="0" cellpadding="5">
44
<th>Description</th>
44
		<tr>
45
<th>Area</th>
45
		<th>Name</th>
46
<th>Definition</th>
46
		<th>Description</th>
47
<th>&nbsp;</th>
47
		<th>Area</th>
48
</tr>
48
		<th>Definition</th>
49
[% IF ( definitions ) %]
49
		<th>&nbsp;</th>
50
[% FOREACH definition IN definitions %]
50
		</tr>
51
[% UNLESS ( loop.odd ) %]
51
		[% FOREACH definition IN definitions %]
52
<tr class="highlight" valign="top">
52
			[% UNLESS ( loop.odd ) %]
53
[% ELSE %]
53
				<tr class="highlight" valign="top">
54
<tr valign="top">
54
			[% ELSE %]
55
[% END %]
55
				<tr valign="top">
56
<td>[% definition.name %]</td>
56
			[% END %]
57
<td>[% definition.description %]</td>
57
			<td>[% definition.name %]</td>
58
<td>[% definition.areaname %]</td>
58
			<td>[% definition.description %]</td>
59
<td>[% definition.saved_sql %]</td>
59
			<td>[% definition.areaname %]</td>
60
<td><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
60
			<td>[% definition.saved_sql %]</td>
61
<input type="hidden" name="id" value="[% definition.id %]" />
61
			<td><form method="post" action="/cgi-bin/koha/reports/dictionary.pl">
62
<input type="hidden" name="phase" value="Delete Definition" />
62
			<input type="hidden" name="id" value="[% definition.id %]" />
63
<input type="submit" name="submit" value="Delete Definition" />
63
			<input type="hidden" name="phase" value="Delete Definition" />
64
</form></td>
64
			<input type="submit" name="submit" value="Delete Definition" />
65
</tr>
65
			</form></td>
66
[% END %]
66
			</tr>
67
		[% END %]
68
		</table>
69
		[% END %]
67
[% END %]
70
[% END %]
68
</table>
69
[% END %]
70
71
71
72
[% IF ( new_dictionary ) %]
72
[% IF ( new_dictionary ) %]
73
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
73
<form action="/cgi-bin/koha/reports/dictionary.pl" method="post">
74
- 

Return to bug 6599