r9470 - in apps/gobi/trunk: code/Page code/Page/skins static
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: hannes
Date: 2008-12-23 11:08:16 +0100 (Tue, 23 Dec 2008)
New Revision: 9470
Added:
apps/gobi/trunk/static/dialog-warning.png
Modified:
apps/gobi/trunk/code/Page/PageActions.js
apps/gobi/trunk/code/Page/skins/stylesheet.skin
Log:
Add warning icon to delete confirm screen.
Details at http://dev.helma.org/trac/helma/changeset/9470
Modified: apps/gobi/trunk/code/Page/PageActions.js
===================================================================
--- apps/gobi/trunk/code/Page/PageActions.js 2008-12-23 10:04:44 UTC (rev 9469)
+++ apps/gobi/trunk/code/Page/PageActions.js 2008-12-23 10:08:16 UTC (rev 9470)
@@ -416,8 +416,13 @@
if (!req.data.ajax) {
res.push();
}
- res.write("<p>" + msg("delete_ask", this.name) + "</p>");
- form.render();
+ var table = new Html.TableWriter(2, {td: {style: "padding: 6px;"}});
+ table.write("<img src='" + getStaticUrl() + "../dialog-warning.png' class='icon'>");
+ table.write(msg("delete_ask", this.getPathName()));
+ table.write("");
+ table.write(form);
+ table.close();
+ // form.render();
if (!req.data.ajax) {
res.data.body = res.pop();
this.renderSkin("page");
Modified: apps/gobi/trunk/code/Page/skins/stylesheet.skin
===================================================================
--- apps/gobi/trunk/code/Page/skins/stylesheet.skin 2008-12-23 10:04:44 UTC (rev 9469)
+++ apps/gobi/trunk/code/Page/skins/stylesheet.skin 2008-12-23 10:08:16 UTC (rev 9470)
@@ -197,6 +197,12 @@
text-align: center;
}
+ .icon {
+ vertical-align: middle;
+ width: 48px;
+ height: 48px;
+ }
+
.horizontalFill {
width: 90%;
}
Added: apps/gobi/trunk/static/dialog-warning.png
Property changes on: apps/gobi/trunk/static/dialog-warning.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream