[Mpuls-commits] r5389 - base/trunk/mpulsweb/templates/dialogs

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 23 17:19:33 CEST 2011


Author: torsten
Date: 2011-09-23 17:19:33 +0200 (Fri, 23 Sep 2011)
New Revision: 5389

Added:
   base/trunk/mpulsweb/templates/dialogs/confirm_main.mako
   base/trunk/mpulsweb/templates/dialogs/error_main.mako
   base/trunk/mpulsweb/templates/dialogs/success_main.mako
Log:
Added new templates for success, error or confirm dialog in main context.


Added: base/trunk/mpulsweb/templates/dialogs/confirm_main.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/confirm_main.mako	2011-09-23 09:58:54 UTC (rev 5388)
+++ base/trunk/mpulsweb/templates/dialogs/confirm_main.mako	2011-09-23 15:19:33 UTC (rev 5389)
@@ -0,0 +1,9 @@
+## -*- coding: utf-8 -*-
+<%inherit file="../main.mako" />
+<%!  import mpulsweb.lib.helper.filters as F %>
+<div class="dialog">
+<h1><img src="${h.url_for('/images/icons/info/question.png')}" alt="${_('attention')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<p>${h.literal(c.dialog_text or c.question)}</p>
+<a class="button" href="${c.url_ok}">${_('Yes')}</a>
+<a class="button" href="${c.url_abort}">${_('No')}</a>
+</div>

Added: base/trunk/mpulsweb/templates/dialogs/error_main.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/error_main.mako	2011-09-23 09:58:54 UTC (rev 5388)
+++ base/trunk/mpulsweb/templates/dialogs/error_main.mako	2011-09-23 15:19:33 UTC (rev 5389)
@@ -0,0 +1,8 @@
+## -*- coding: utf-8 -*-
+<%inherit file="../main.mako" />
+<%!  import mpulsweb.lib.helper.filters as F %>
+<div class="dialog">
+<h1><img src="${h.url_for('/images/icons/info/failure.png')}" alt="${_('Error')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<p>${h.literal(c.dialog_text or c.question)}</p>
+<a class="button" href="${c.url_ok}">${_('Ok')}</a>
+</div>

Added: base/trunk/mpulsweb/templates/dialogs/success_main.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/success_main.mako	2011-09-23 09:58:54 UTC (rev 5388)
+++ base/trunk/mpulsweb/templates/dialogs/success_main.mako	2011-09-23 15:19:33 UTC (rev 5389)
@@ -0,0 +1,8 @@
+## -*- coding: utf-8 -*-
+<%inherit file="../main.mako" />
+<%!  import mpulsweb.lib.helper.filters as F %>
+<div class="dialog">
+<h1><img src="${h.url_for('/images/icons/info/confirmation.png')}" alt="${_('Confirmation')}" width="48" height="48">${c.dialog_title or c.confirm_for}</h1>
+<p>${h.literal(c.dialog_text or c.question)}</p>
+<a class="button" href="${c.url_ok}">${_('Ok')}</a>
+</div>



More information about the Mpuls-commits mailing list