[silva.infrae.contact][Emiliano D'Alterio] Made "status" and "ex...

[email protected] Mon, 28 Oct 2013 17:32:11 +0100
Newsgroups gmane.comp.web.zope.silva.cvs
Message-ID <[email protected]>
author:    Emiliano D'Alterio
date:      Mon Oct 28 17:32:05 2013 +0100
revision:  18:c772511d6e57 in silva.infrae.contact
branch:    
details:   https://hg.infrae.com/silva.infrae.contact?cmd=changeset;node=c772511d6e57
modified:  src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt
added:     
removed:   
log:       Made "status" and "expired" <p> conditional. Changed "error" <span>
	to <p>.


diffstat:

 src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt |  22 +++++----
 1 files changed, 12 insertions(+), 10 deletions(-)

diffs (42 lines):

diff -r 63e5f5231d18 -r c772511d6e57 src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt
--- a/src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt	Sun Oct 27 17:33:34 2013 +0100
+++ b/src/silva/infrae/contact/contactform_templates/contactformtemplate.cpt	Mon Oct 28 17:32:05 2013 +0100
@@ -12,15 +12,17 @@
   <p tal:condition="form.description"
      tal:content="form.description">Description</p>
 
+<tal:status tal:condition="form.status">
   <p class="form-status"
-     tal:condition="form.status"
-     tal:content="form.status">Status</p>
-     
- <p class="form-status">
-     <a tal:condition="form.expired"
-        tal:attributes="href python:'%s#contactusform' % (form.refresh_url)">Refresh page.
-     </a>
- </p>
+    tal:content="form.status">Status
+  </p>
+</tal:status>
+
+<tal:expired tal:condition="form.expired"> 
+   <p class="form-status">
+       <a tal:attributes="href python:'%s#contactusform' % (form.refresh_url)">Refresh page.</a>
+   </p>
+</tal:expired>
 
   <div class="form-error"
        tal:condition="form.errors">
@@ -36,10 +38,10 @@
       
       <tal:error tal:define="error widget.error"
                  tal:condition="error">
-        <span class="field-error"
+        <p class="field-error"
               tal:content="error.title">
           Error
-        </span>
+        </p>
         <br />
       </tal:error>