Even more applying standard dialog styles to confirmation messages. Also fixing alternating table row colors in stopwords.pl

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2007-12-19 20:28:12 -06:00 committed by Joshua Ferraro
parent cec9c86d8a
commit 9d23361f24
7 changed files with 66 additions and 59 deletions

View file

@ -136,12 +136,12 @@ if ($op eq 'add_form') {
my $env; my $env;
my ($count,$results)=StringSearch($env,$searchfield,'web'); my ($count,$results)=StringSearch($env,$searchfield,'web');
my @loop; my @loop;
my $toggle = 'white'; my $toggle = 0;
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){ for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
my %row = (word => $results->[$i]{'word'}, my %row = (word => $results->[$i]{'word'},
toggle => $toggle); toggle => $toggle);
push @loop, \%row; push @loop, \%row;
$toggle = ($toggle eq 'white') ? '#ffffcc' : 'white' ; $toggle = ($toggle eq 0) ? 1 : 0 ;
} }
$template->param(loop => \@loop); $template->param(loop => \@loop);

View file

@ -74,11 +74,14 @@
<!-- TMPL_IF NAME="add_validate" --> <!-- TMPL_IF NAME="add_validate" -->
<ul id="_informations"><li>Budget Data Recorded, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li></ul> <div class="dialog message">
<h3>Budget Data Recorded</h3>
<form action="<!-- TMPL_VAR name="script_name" -->" method="get"><input type="submit" class="approve" value="OK" /><form></div>
<!-- /TMPL_IF --> <!-- add_validate --> <!-- /TMPL_IF --> <!-- add_validate -->
<!-- TMPL_IF name="delete_confirmed" --> <!-- TMPL_IF name="delete_confirmed" -->
<ul id="_informations"><li>Budget deleted, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li></ul> <div class="dialog message"><h3>Budget deleted</h3>
<form action="<!-- TMPL_VAR name="script_name" -->" method="get"><input type="submit" class="approve" value="OK" /><form></div>
<!-- /TMPL_IF --> <!-- delete_confirmed --> <!-- /TMPL_IF --> <!-- delete_confirmed -->
@ -327,8 +330,7 @@
<!-- /TMPL_IF --> <!-- add_form --> <!-- /TMPL_IF --> <!-- add_form -->
<!-- TMPL_IF name="delete_confirm" --> <!-- TMPL_IF name="delete_confirm" -->
<fieldset> <div class="dialog alert"> <h3>Delete Budget?</h3>
<legend>Delete Budget?</legend>
<table> <table>
<tr> <tr>
@ -347,15 +349,12 @@
</tr> </tr>
</table> </table>
</fieldset>
<form action="<!-- TMPL_VAR NAME="action" -->" method="post"> <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
<fieldset class="action"> <input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="op" value="delete_confirmed" /> <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
<input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" /> <input type="submit" value="Delete this budget" class="approve" /></form>
<input type="submit" value="Delete this budget" /> <form action="<!-- TMPL_VAR NAME="action" -->" method="get">
<a class="cancel" href="/cgi-bin/koha/admin/aqbudget.pl">Cancel</a> <input type="submit" class="deny" value="No, Do Not Delete" /></form></div>
</fieldset>
</form>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->

View file

@ -58,27 +58,33 @@
<!-- TMPL_IF NAME="delete_confirm" --> <!-- TMPL_IF NAME="delete_confirm" -->
<div class="dialog alert"><h3>Delete Subfield <span class="ex">'<!-- TMPL_VAR NAME="tagsubfield" -->'?</span></h3>
<form action="<!-- TMPL_VAR NAME="delete_link" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /> <form action="<!-- TMPL_VAR NAME="delete_link" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" />
<fieldset>
<legend>Confirm Deletion of Subfield <em><!-- TMPL_VAR NAME="tagsubfield" -->?</em></legend>
<table><tr><th scope="row">Subfield:</th> <td><!-- TMPL_VAR NAME="tagsubfield" --></td></tr> <table><tr><th scope="row">Subfield:</th> <td><!-- TMPL_VAR NAME="tagsubfield" --></td></tr>
<tr><th scope="row">Description:</th> <td><!-- TMPL_VAR NAME="liblibrarian" --></td></tr></table> <tr><th scope="row">Description:</th> <td><!-- TMPL_VAR NAME="liblibrarian" --></td></tr></table>
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" /> <input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" />
<input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="tagsubfield" -->" /> <input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="tagsubfield" -->" />
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" /> <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
<fieldset class="action"><input type="submit" class="cancel" value="Yes, Delete this Subfield" /><a class="cancel" href="/cgi-bin/koha/admin/auth_subfields_structure.pl?searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;tagfield=<!-- TMPL_VAR NAME="tagfield" -->&amp;tagsubfield=<!-- TMPL_VAR NAME="tagsubfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" -->">Cancel</a></fieldset> <input type="submit" class="approve" value="Yes, Delete this Subfield" />
</fieldset> </form>
</form> <form action="<!-- TMPL_VAR NAME="delete_link" -->" method="get">
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" />
<input type="hidden" name="tagsubfield" value="<!-- TMPL_VAR NAME="tagsubfield" -->" />
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR NAME="authtypecode" -->" />
<input type="submit" class="deny" value="No, Do Not Delete" />
</form>
</form></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" --> <!-- TMPL_IF NAME="delete_confirmed" -->
<h3>Data deleted</h3> <div class="dialog message"> <h3>Data deleted</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" /> <input type="hidden" name="tagfield" value="<!-- TMPL_VAR NAME="tagfield" -->" />
<input type="submit" class="submit" value="OK" /> <input type="submit" class="approve" value="OK" />
</form> </form></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->

View file

@ -113,26 +113,28 @@ return false;
<!-- TMPL_IF NAME="delete_confirm" --> <!-- TMPL_IF NAME="delete_confirm" -->
<div class="dialog alert">
<h3>Confirm Deletion</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<fieldset><legend>Confirm Deletion</legend>
<table> <table>
<tr><th scope="row">Tag: </th><td><!-- TMPL_VAR NAME="searchfield" --> <!-- TMPL_VAR NAME="liblibrarian" --></td></tr> <tr><th scope="row">Tag: </th><td><!-- TMPL_VAR NAME="searchfield" --> <!-- TMPL_VAR NAME="liblibrarian" --></td></tr>
</table> </table>
<input type="hidden" name="op" value="delete_confirmed" /> <input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->" /> <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->" />
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<fieldset class="action"><input type="submit" value="YES"> <a class="cancel" href="/cgi-bin/koha/admin/auth_tag_structure.pl">Cancel</a> </fieldset> <input type="submit" value="Yes, Delete" class="approve"></form>
</fieldset></form> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get"><input type="submit" class="deny" value="No, Do Not Delete" /></form>
</div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" --> <!-- TMPL_IF NAME="delete_confirmed" -->
<h3>Data deleted</h3> <div class="dialog message"> <h3>Data deleted</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->" /> <input type="hidden" name="authtypecode" value="<!-- TMPL_VAR name="authtypecode" -->" />
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<input type="submit" value="OK" class="submit" /> <input type="submit" value="OK" class="submit" />
</form> </form></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="authtype_create" --> <!-- TMPL_IF NAME="authtype_create" -->
@ -210,12 +212,12 @@ return false;
<!-- /TMPL_LOOP --> <!-- /TMPL_LOOP -->
</table> </table>
<!-- TMPL_IF NAME="isprevpage" --> <div class="pages"><!-- TMPL_IF NAME="isprevpage" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">Previous Page</a> <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">&lt;&lt; Previous Page</a>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="nextpage" --> <!-- TMPL_IF NAME="nextpage" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">Next Page</a> <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->&amp;searchfield=<!-- TMPL_VAR NAME="searchfield" -->&amp;authtypecode=<!-- TMPL_VAR NAME="authtypecode" --> ">Next Page &gt;&gt;</a>
<!-- /TMPL_IF --> <!-- /TMPL_IF --></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
</div> </div>

View file

@ -121,23 +121,23 @@
<!-- TMPL_IF NAME="delete_confirm" --> <!-- TMPL_IF NAME="delete_confirm" -->
<h3>Confirm Deletion of Tag <em><!-- TMPL_VAR NAME="searchfield" --></em>?</h3> <div class="dialog alert"><h3>Confirm Deletion of Tag <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span>?</h3>
<p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p> <p>Tag: <!-- TMPL_VAR NAME="searchfield" --></p>
<p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p> <p>Description: <!-- TMPL_VAR NAME="liblibrarian" --></p>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" /> <input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
<input type="submit" value="Yes, Delete this Tag" /></form> <input type="submit" class="approve" value="Yes, Delete this Tag" /></form>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do Not Delete" /></form> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do Not Delete" class="deny" /></form></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" --> <!-- TMPL_IF NAME="delete_confirmed" -->
<div class="details"><h3>Tag Deleted</h3> <div class="details"><div class="dialog message"><h3>Tag Deleted</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" />
<input type="submit" value="Return to MARC Frameworks" /> <input type="submit" value="OK" class="approve" />
</form> </form></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="framework_create" --> <!-- TMPL_IF NAME="framework_create" -->

View file

@ -94,28 +94,27 @@
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_validate" --> <!-- TMPL_IF NAME="add_validate" -->
Data recorded <div class="dialog message"> <h3>Data recorded</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="submit" value="OK" /> <input type="submit" value="OK" class="approve" />
</form> </form></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" --> <!-- TMPL_IF NAME="delete_confirm" -->
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <div class="dialog alert">
<fieldset> <h3>Delete Stop Word <span class="ex">'<!-- TMPL_VAR NAME="searchfield" -->'</span></h3>
<input type="hidden" name="op" value="delete_confirmed" /> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" />
<input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" /> <input type="hidden" name="searchfield" value="<!-- TMPL_VAR NAME="searchfield" -->" />
<legend>Confirm Deletion of Stop word <em><!-- TMPL_VAR NAME="searchfield" --></em></legend> <input type="submit" value="Yes, Delete" class="approve" /></form>
<input type="submit" value="Yes, Delete" /> <a class="cancel" href="/cgi-bin/koha/admin/stopwords.pl">Cancel</a> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get"><input type="submit" class="deny" value="No, Do Not Delete" /> </form></div>
</fieldset>
</form>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" --> <!-- TMPL_IF NAME="delete_confirmed" -->
Data deleted <div class="dialog message"> <h3>Data deleted</h3>
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="submit" value="OK" /> <input type="submit" value="OK" class="approve" />
</form> </form></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="else" --> <!-- TMPL_IF NAME="else" -->
@ -150,18 +149,18 @@
<th> </th> <th> </th>
</tr> </tr>
<!-- TMPL_LOOP NAME="loop" --> <!-- TMPL_LOOP NAME="loop" -->
<tr bgcolor="<!-- TMPL_VAR NAME="toggle" -->"> <!-- TMPL_IF NAME="toggle" --> <tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="word" --></td> <td><!-- TMPL_VAR NAME="word" --></td>
<td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="word" -->">Delete</a></td> <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;searchfield=<!-- TMPL_VAR NAME="word" -->">Delete</a></td>
</tr> </tr>
<!-- /TMPL_LOOP --> <!-- /TMPL_LOOP -->
</table> </table>
<!-- TMPL_IF NAME="offsetgtzero" --> <div class="pages"> <!-- TMPL_IF NAME="offsetgtzero" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->">&lt;&lt; Previous</a> <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="prevpage" -->">&lt;&lt; Previous</a>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ltcount" --> <!-- TMPL_IF NAME="ltcount" -->
<a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next &gt;&gt;</a> <a href="<!-- TMPL_VAR NAME="script_name" -->?offset=<!-- TMPL_VAR NAME="nextpage" -->">Next &gt;&gt;</a>
<!-- /TMPL_iF --> <!-- /TMPL_iF --></div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
</div> </div>

View file

@ -276,7 +276,7 @@
<!-- /TMPL_IF --> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" --> <!-- TMPL_IF NAME="delete_confirm" -->
<h3>Delete Notice?</h3> <div class="dialog alert"><h3>Delete Notice?</h3>
<table> <table>
<tr> <tr>
<td> <td>
@ -291,16 +291,17 @@
<td><!-- TMPL_VAR NAME="Name" --></td> <td><!-- TMPL_VAR NAME="Name" --></td>
</tr> </tr>
</table> </table>
<p><form action="<!-- TMPL_VAR NAME="action" -->" method="post"><input type="hidden" name="op" value="delete_confirmed"> <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed">
<input type="hidden" name="code" value="<!-- TMPL_VAR NAME="code" -->" /> <input type="hidden" name="code" value="<!-- TMPL_VAR NAME="code" -->" />
<input type="hidden" name="module" value="<!-- TMPL_VAR NAME="module" -->" /> <input type="hidden" name="module" value="<!-- TMPL_VAR NAME="module" -->" />
<input type="submit" value="YES" /> <input type="submit" value="Yes, Delete" class="approve" />
</form> </form>
<form action="<!-- TMPL_VAR NAME="action" -->" method="post"> <form action="<!-- TMPL_VAR NAME="action" -->" method="get">
<input type="submit" value="NO" /> <input type="submit" value="No, Do Not Delete" class="deny" />
</form> </form>
</p> </div>
<!-- /TMPL_IF --> <!-- /TMPL_IF -->