Standardizing format for error/message dialogs. <div class="dialog alert"> for high-priority warnings/confirmations. <div class="dialog message"> for lower priority/informational messages.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Owen Leonard 2007-12-11 09:41:30 -06:00 committed by Joshua Ferraro
parent 100a51e6c2
commit 86e458a3ce
14 changed files with 89 additions and 93 deletions

View File

@ -457,13 +457,6 @@ ul.toolbar li {
list-style : none;
}
div.message {
border : 1px solid #6699CC;
width : 75%;
margin : 1em auto;
padding : .5em;
}
div.patroninfo {
margin-top : -.5em;
}
@ -810,35 +803,35 @@ fieldset.rows .inputnote {
}
#addbiblio a, #addchild a, #newentry a {
padding-left : 34px;
background-image: url("/intranet-tmpl/prog/img/toolbar-new.gif");
background-image: url("../../img/toolbar-new.gif");
background-position : center left;
background-repeat : no-repeat;
}
#deletebiblio button, #deletebiblio a, #deletepatron a {
padding-left : 34px;
background-image: url("/intranet-tmpl/prog/img/toolbar-delete.gif");
background-image: url("../../img/toolbar-delete.gif");
background-position : center left;
background-repeat : no-repeat;
}
#printbiblio button, #printbiblio a {
padding-left : 34px;
background-image: url("/intranet-tmpl/prog/img/toolbar-print.gif");
background-image: url("../../img/toolbar-print.gif");
background-position : center left;
background-repeat : no-repeat;
}
#addtoshelf button, #addtoshelf a {
padding-left : 34px;
background-image: url("/intranet-tmpl/prog/img/toolbar-add-to-shelf.gif");
background-image: url("../../img/toolbar-add-to-shelf.gif");
background-position : center left;
background-repeat : no-repeat;
}
#placehold a {
padding-left : 34px;
background-image: url("/intranet-tmpl/prog/img/toolbar-hold.gif");
background-image: url("../../img/toolbar-hold.gif");
background-position : center left;
background-repeat : no-repeat;
}
@ -951,7 +944,6 @@ div.circmessage:first-child {
}
div.circmessage {
border: 1px solid #CCC;
padding: .4em;
margin-bottom : .3em;
}
@ -965,56 +957,61 @@ div.first fieldset {
margin-right : 0;
}
#circ_needsconfirmation {
margin : auto;
}
.dialog {
width: 50%;
float:left;
background: url(../../img/dropshadow-alpha.png) no-repeat bottom right !important;
background: url(../../img/dropshadow.gif) no-repeat bottom right;
margin: 10px 0 0 10px !important;
margin: 10px 0 0 5px;
}
.dialog div {
background: none !important;
background: url(../../img/dropshadow-mask.gif) no-repeat left top;
padding: 0 !important;
padding: 0 6px 6px 0;
}
.dialog div.confirm {
background-color: #ffc;
// background : url(../../img/dialog-bg.gif) repeat-x left 0 !important;
font: 1em sans-serif;
border: 1px solid #bcbcbc;
padding: 4px !important;
margin: -6px 6px 6px -6px !important;
margin: 0;
padding : .5em;
margin : 1em auto;
width: 65%;
}
.dialog div.confirm h2, .dialog div.confirm h3, .dialog div.confirm h4 {
.dialog h2, .dialog h3, .dialog h4 {
margin : auto;
text-align : center;
}
div.confirm input {
.dialog input {
background-color : #FFF;
border : 1px solid #bcbcbc;
margin : .4em;
padding : .4em .4em .4em 25px;
}
div.confirm input.approve {
.dialog input.approve {
background : #FFF url(../../img/approve.gif) no-repeat 4px center;
}
div.confirm input.deny {
.dialog input.deny {
background : #FFF url(../../img/deny.gif) no-repeat 4px center;
}
div.confirm input:hover {
.dialog input:hover {
background-color : #ffc;
}
div.alert {
background : #FFC url(../../img/alert-bg.gif) repeat-x left 0;
text-align : center;
}
div.alert strong {
color : #900;
}
div.message {
background : white url("../../img/message-bg.gif") repeat-x left 0;
border : 1px solid #bcbcbc;
width : 55%;
}
div.message input.approve {
display : block;
margin: auto;
}
div.results {
padding : .7em 0;
}

View File

@ -108,14 +108,14 @@ function Check(f) {
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" -->
<h3>Delete ramework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?</h3>
<!-- TMPL_IF NAME="delete_confirm" --><div class="dialog alert">
<h3>Delete framework for <!-- TMPL_VAR NAME="frameworktext" --> (<!-- TMPL_VAR NAME="frameworkcode" -->)?</h3>
<!-- TMPL_IF NAME="total" -->
<div class="error">This framework is used <!-- TMPL_VAR NAME="total" --> times</div>
<strong>This framework is used <!-- TMPL_VAR NAME="total" --> times</strong>.
<!-- /TMPL_IF -->
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><input type="submit" value="Yes, Delete this Framework!" />
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="frameworkcode" value="<!-- TMPL_VAR NAME="frameworkcode" -->" /><input type="submit" class="approve" value="Yes, Delete this Framework!" />
</form>
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="No, Do not Delete!" /></form>
<form class="inline" action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" class="deny" value="No, Do not Delete!" /></form></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="else" -->

View File

@ -149,9 +149,10 @@
<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<fieldset><legend>
<!-- TMPL_IF NAME="totalgtzero" -->
Cagegory <!-- TMPL_VAR NAME="categorycode" --> is in use. Deletion not possible!<!-- TMPL_ELSE -->
Category <!-- TMPL_VAR NAME="categorycode" --> is in use. Deletion not possible!<!-- TMPL_ELSE -->
Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" --><!-- /TMPL_IF --></legend>
<!-- TMPL_IF NAME="totalgtzero" --><div class="error">This category is used <!-- TMPL_VAR NAME="total" --> times. Deletion not possible</div><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="totalgtzero" --><div class="dialog alert"><strong>This category is used <!-- TMPL_VAR NAME="total" --> times</strong>. Deletion not possible</div><!-- /TMPL_IF -->
<table>
<tr><th scope="row">Category code: </th><td><!-- TMPL_VAR NAME="categorycode" --></td></tr>
<tr><th scope="row">Description: </th><td><!-- TMPL_VAR NAME="description" --></td></tr>

View File

@ -220,32 +220,39 @@ Item Types Administration
</ol>
</fieldset>
<p id="action">
<fieldset class="action">
<input type="button" value="Save Changes" onclick="Check(this.form)" />
</p>
<a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
</fieldset>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="delete_confirm" -->
<!-- TMPL_IF name="total" --><div class="error">This record is used <!-- TMPL_VAR name="total" --> times. Deletion is not possible.<!-- /TMPL_IF -->
<div class="table details"> <table>
<caption><!-- TMPL_IF name="total" -->Cannot Delete Item Type<!-- TMPL_ELSE -->Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?<!-- /TMPL_IF --></caption>
<!-- TMPL_IF name="total" --><div class="dialog message">
<h3>Cannot Delete Item Type</h3>
<p><strong>This record is used <!-- TMPL_VAR name="total" --> times</strong>. Deletion is not possible.</p>
<!-- TMPL_ELSE --><div class="dialog alert">
<h3>Delete Item Type '<!-- TMPL_VAR name="itemtype" -->'?</h3>
<!-- /TMPL_IF -->
<table>
<tr>
<th>Item type</th>
<th scope="row">Item type</th>
<td><!-- TMPL_VAR name="itemtype" --></td>
</tr>
<tr><th>Description</th><td><!-- TMPL_VAR name="description" --></td></tr>
<tr><th>Loan length</th><td><!-- TMPL_VAR name="loanlength" --></td></tr>
<tr><th>Renewals</th><td><!-- TMPL_IF name="renewalsallowed" -->Allowed<!-- TMPL_ELSE -->Not allowed<!-- /TMPL_IF --></td></tr>
<!-- Hide from NPL --><tr><th>Rental charge</th><td><!-- TMPL_VAR name="rentalcharge" --></td></tr><!-- Hide from NPL --></table>
<tr><th scope="row">Description</th><td><!-- TMPL_VAR name="description" --></td></tr>
<tr><th scope="row">Loan length</th><td><!-- TMPL_VAR name="loanlength" --></td></tr>
<tr><th scope="row">Renewals</th><td><!-- TMPL_IF name="renewalsallowed" -->Allowed<!-- TMPL_ELSE -->Not allowed<!-- /TMPL_IF --></td></tr>
<tr><th scope="row">Rental charge</th><td><!-- TMPL_VAR name="rentalcharge" --></td></tr></table>
<form action="<!-- TMPL_VAR name="script_name" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" /><input type="hidden" name="itemtype" value="<!-- TMPL_VAR name="itemtype" -->" /><!-- TMPL_IF name="total" -->
</form><form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" value="OK" /></form>
</form>
<form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" class="approve" value="OK" /></form>
<!-- TMPL_ELSE -->
<input type="submit" value="Delete this Item Type" /></form> <form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" value="Do Not Delete" /></form>
<input type="submit" class="approve" value="Delete this Item Type" /></form> <form action="<!-- TMPL_VAR name="script_name" -->" method="post"><input type="submit" class="deny" value="Do Not Delete" /></form>
<!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF -->

View File

@ -442,15 +442,15 @@ function unHideSubfield(index,labelindex) { // FIXME :: is it used ?
<!-- TMPL_UNLESS name="number" -->
<!-- show duplicate warning on tab 0 only -->
<!-- TMPL_IF name="duplicatebiblionumber" -->
<div class="error">
<div class="dialog alert">
<h4>Duplicate Record?</h4>
<p>Is this a duplicate of <a href="/cgi-bin/koha/catalogue/MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="duplicatebiblionumber" -->" onclick="openWindow('../MARCdetail.pl?biblionumber=<!-- TMPL_VAR name="duplicatebiblionumber" -->&amp;popup=1', 'Duplicate biblio'; return false;)"><!-- TMPL_VAR name="duplicatetitle" --></a>?</p>
<form action="/cgi-bin/koha/cataloguing/additem.pl" method="get">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR name="duplicatebiblionumber" -->" />
<input type="submit" value="Yes: Edit existing items" />
<input type="submit" class="approve" value="Yes: Edit existing items" />
</form>
<form action="/cgi-bin/koha/cataloguing/addbiblio.pl" method="get">
<input type="submit" onclick="confirmnotdup(); return false;" value="No: Save as New Record" />
<input type="submit" class="deny" onclick="confirmnotdup(); return false;" value="No: Save as New Record" />
</form>
</div>
<!-- /TMPL_IF -->

View File

@ -45,8 +45,9 @@
<!-- INITIAL BLOC : PARAMETERS & BORROWER INFO -->
<!-- TMPL_IF NAME="NEEDSCONFIRMATION" -->
<div class="yui-g" style="text-align: center"><div id="circ_needsconfirmation" class="dialog">
<div><div class="confirm">
<div class="yui-g" style="text-align: center">
<div id="circ_needsconfirmation" class="dialog alert">
<h3>Please Confirm Checkout</h3>
<ul>
@ -106,7 +107,7 @@
<input type="submit" class="deny" value="No, Don't Check Out (N)" accesskey="n" />
</form>
</div></div></div></div>
</div></div>
<!-- /TMPL_IF --> <!-- NEEDSCONFIRMATION -->

View File

@ -38,7 +38,7 @@
<!-- TMPL_IF Name="found" -->
<!-- found -->
<div class="message">
<div class="dialog message">
<!-- case of a reservation found, and display info -->
<!-- TMPL_IF Name="waiting" -->
<!-- waiting -->

View File

@ -1,12 +1,12 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; SMS Administration</title>
<title>Koha &rsaquo; Tools &rsaquo; Send SMS Message</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; SMS Administration</div>
<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; Send SMS Message</div>
<div id="doc3" class="yui-t2">
@ -14,7 +14,7 @@
<div id="yui-main">
<div class="yui-b">
<!--TMPL_IF NAME="error"--><div class="error"><!--TMPL_VAR NAME="error"--> </div><!--/TMPL_IF-->
<!--TMPL_IF NAME="error"--><div class="dialog alert"><!--TMPL_VAR NAME="error"--> </div><!--/TMPL_IF-->
<form action="/cgi-bin/koha/sms/sms.pl" method="post">
<fieldset class="rows">
<legend>SMS Messaging</legend>
@ -23,11 +23,9 @@
<li><label for="phone">Phone:</label><input type="text" name="phone" id="phone" value="<!--TMPL_VAR NAME="phone"-->"/> (e.g., 5338644143)</li>
</ol>
</fieldset>
<fieldset class="action"><input type="submit" value="Send SMS"></fieldset>
<fieldset class="action"><input type="submit" value="Send SMS"><a class="cancel" href="/cgi-bin/koha/sms/sms.pl">Cancel</a></fieldset>
</form>
<div class="message">Enter a message. The message will be sent to the user.</div>
</div>
</div>
<div class="yui-b">

View File

@ -98,16 +98,16 @@
</form>
</div>
</div>
<!--TMPL_IF Name="Number" --><p><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></p><!-- /TMPL_IF-->
<!--TMPL_IF Name="errorfile" --><p class="error"><!--TMPL_VAR Name="errorfile"--> can't be opened</p><!-- /TMPL_IF-->
<!--TMPL_IF Name="Number" --><div class="dialog message"><!--TMPL_VAR Name="Number"--> items modified : datelastseen set to <!--TMPL_VAR Name="date"--></div><!-- /TMPL_IF-->
<!--TMPL_IF Name="errorfile" --><div class="dialog alert"><!--TMPL_VAR Name="errorfile"--> can't be opened</div><!-- /TMPL_IF-->
<!--TMPL_LOOP Name="errorloop"-->
<p class="error">
<div class="dialog alert">
<!--TMPL_VAR Name="barcode"-->
<!--TMPL_IF Name="ERR_BARCODE"-->: barcode not found<!--/TMPL_IF-->
<!--TMPL_IF Name="ERR_WTHDRAWN"-->: item withdrawn<!--/TMPL_IF-->
<!--TMPL_IF Name="ERR_ONLOAN_RET"-->: item was on loan. It was returned before marked as seen<!--/TMPL_IF-->
<!--TMPL_IF Name="ERR_ONLOAN_NOT_RET"-->: item was on loan. couldn't be returned.<!--/TMPL_IF-->
</p>
</div>
<!-- /TMPL_LOOP-->
<!-- TMPL_IF NAME="loop" -->
<form method="post" action="/cgi-bin/koha/tools/inventory.pl">

View File

@ -35,7 +35,7 @@
<input type="submit" value="Select" />
</form>
<!--TMPL_IF Name="ERROR"-->
<div class="error">
<div class="dialog alert">
<h3>Data error</h3>
<p>The following fields have a forbidden value. Correct them and press OK again :</p>
<ul>
@ -69,7 +69,7 @@
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<th><!-- TMPL_VAR NAME="line" --></th>
<th scope="row"><!-- TMPL_VAR NAME="line" --></th>
<td>
<input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
</td>

View File

@ -31,11 +31,7 @@
<!-- TMPL_ELSE -->
<!-- TMPL_IF name="ERRORS" -->
<<<<<<< HEAD:koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
<div class="dialog alert"><ul>
=======
<ul class="error">
>>>>>>> Cleaning up and styling picture upload page. Second try for this patch.:koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
<!-- TMPL_LOOP name="ERRORS" -->
<!-- TMPL_IF NAME="NODIR" -->
<li>The <span class="ex">patronimages/</span> directory isn't present on your server, please ask your systems administrator to create it</li>
@ -53,11 +49,7 @@
<li>The upload file appears to be empty.</li>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<<<<<<< HEAD:koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
</ul></div>
=======
</ul>
>>>>>>> Cleaning up and styling picture upload page. Second try for this patch.:koha-tmpl/intranet-tmpl/prog/en/modules/tools/picture-upload.tmpl
<!-- /TMPL_IF -->
<form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">

View File

@ -164,13 +164,13 @@ function confirmDelete(s,n){
<!-- TMPL_IF NAME="shelves" -->
<div class="yui-ge">
<div class="yui-u first">
<!-- TMPL_IF NAME="already" --><p class="error">A virtual shelf with that name already exists!</p><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="already" --><div class="dialog alert">A virtual shelf with that name already exists!</div><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="status1" -->
<p class="error"><!-- TMPL_VAR NAME="string1" --></p>
<div class="dialog alert"><!-- TMPL_VAR NAME="string1" --></div>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="paramsloop" -->
<!-- TMPL_IF NAME="status" -->
<p class="error"><!-- TMPL_VAR NAME="string" --></p>
<div class="dialog alert"><!-- TMPL_VAR NAME="string" --></div>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
@ -185,7 +185,7 @@ function confirmDelete(s,n){
<option value="2">Public</option>
<option value="3">Free</option></select></li></ol></fieldset>
<p><input type="submit" value="Save" /></p>
<fieldset class="action"><input type="submit" value="Save" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
</form>
@ -203,7 +203,7 @@ function confirmDelete(s,n){
<!-- TMPL_IF name="edit" -->
<div class="yui-ge">
<div class="yui-u first">
<!-- TMPL_IF NAME="already" --><p class="error">A virtual shelf with that name already exists!</p><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="already" --><div class="dialog alert">A virtual shelf with that name already exists!</div><!-- /TMPL_IF -->
<form method="post" action="/cgi-bin/koha/virtualshelves/shelves.pl">
<input type="hidden" name="op" value="modifsave" />
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->" />
@ -228,7 +228,7 @@ function confirmDelete(s,n){
<!-- /TMPL_IF -->
</select></li>
</ol></fieldset>
<p><input type="submit" value="Save changes" /></p>
<fieldset class="action"><input type="submit" value="Save changes" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
</form>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B