Skip to content

Commit

Permalink
Bug 7842 - Inconsistencies in Notices interface
Browse files Browse the repository at this point in the history
- Putting "New" button in toolbar <div>
- Moving "Copy" function and making label more explicit
- Adding page headings
- Correcting table header sort options

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
  • Loading branch information
oleonard authored and PaulPoulain committed May 11, 2012
1 parent 1aebf55 commit f284286
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
Expand Up @@ -8,7 +8,7 @@ $(document).ready(function() {
$("#lettert:has(tbody tr)").tablesorter({
widgets : ['zebra'],
sortList: [[0,0]],
headers: { 3: {sorter:false},4: { sorter: false }}
headers: { 4: {sorter:false},5: { sorter: false },6: { sorter: false }}
});

$('#branch').change(function() {
Expand Down Expand Up @@ -130,6 +130,7 @@ $(document).ready(function() {
<div class="yui-b">

[% IF ( no_op_set ) %]
<h1>Notices and Slips</h1>
<form method="get" action="/cgi-bin/koha/tools/letter.pl" id="selectlibrary">
<input type="hidden" name="searchfield" value="[% searchfield %]" />
[% UNLESS independant_branch %]
Expand All @@ -143,10 +144,10 @@ $(document).ready(function() {
</select>
</p>
[% END %]
<p>
<div id="toolbar">
<input type="submit" id="newnotice" value="New Notice" />
<input type="hidden" id="op" name="op" />
</p>
</div>
</form>

[% IF ( search ) %]
Expand All @@ -156,7 +157,7 @@ $(document).ready(function() {
[% select_for_copy = BLOCK %]
<select name="branchcode">
[% FOREACH branchloo IN branchloop %]
<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
<option value="[% branchloo.value %]">Copy to [% branchloo.branchname %]</option>
[% END %]
</select>
[% END %]
Expand All @@ -167,7 +168,7 @@ $(document).ready(function() {
<th>Module</th>
<th>Code</th>
<th>Name</th>
<th>&nbsp;</th>
<th>Copy notice</th>
<th>&nbsp;</th>
<th>&nbsp;</th>
</tr></thead>
Expand All @@ -184,11 +185,6 @@ $(document).ready(function() {
<td>[% lette.code %]</td>
<td>[% lette.name %]</td>
<td>
[% IF can_edit %]
<a href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;branchcode=[% lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]">Edit</a>
[% END %]
</td>
<td>
[% IF !independant_branch || !lette.branchcode %]
<form method="post" action="/cgi-bin/koha/tools/letter.pl">
<input type="hidden" name="op" value="copy" />
Expand All @@ -202,6 +198,11 @@ $(document).ready(function() {
[% END %]
<input type="submit" value="Copy" />
</form>
[% END %]
</td>
<td>
[% IF can_edit %]
<a href="/cgi-bin/koha/tools/letter.pl?op=add_form&amp;branchcode=[% lette.branchcode %]&amp;module=[% lette.module %]&amp;code=[% lette.code %]">Edit</a>
[% END %]
</td>
<td>
Expand All @@ -217,7 +218,7 @@ $(document).ready(function() {


[% IF ( add_form ) %]
<h1>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</h1>
<form action="?" name="Aform" method="post">
<input type="hidden" name="op" id="op" value="add_validate" />
<input type="hidden" name="checked" value="0" />
Expand All @@ -227,7 +228,6 @@ $(document).ready(function() {
<input type="hidden" name="add" value="1" />
[% END %]
<fieldset class="rows">
<legend>[% IF ( modify ) %]Modify notice[% ELSE %]Add notice[% END %]</legend>
<input type="hidden" name="oldbranchcode" value="[% branchcode %]" />
[% IF independant_branch %]
<input type="hidden" name="branchcode" value="[% independant_branch %]" />
Expand Down

0 comments on commit f284286

Please sign in to comment.