Ignore:
Timestamp:
13 Jan 2012, 06:50:00 (13 years ago)
Author:
Henrik Bettermann
Message:

Move form status message to site layout pagetemplates. This saves a lot of code.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicanteditpage.pt

    r7459 r7463  
    1212      <span tal:replace="msg">message</span><br />
    1313    </div>
    14   </div>
    15 
    16   <div class="alert-message error"
    17     tal:define="status view/status"
    18     tal:condition="status">
    19     Form Status:
    20     <span i18n:translate="" tal:content="view/status">
    21       Form status summary
    22     </span>
    2314  </div>
    2415
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantregister.pt

    r7459 r7463  
    55    tal:condition="view/label"
    66    tal:content="view/label">Label</h2>
    7 
    8   <div class="alert-message error"
    9     tal:define="status view/status"
    10     tal:condition="status">
    11     Form Status:
    12     <span i18n:translate="" tal:content="view/status">
    13       Form status summary
    14     </span>
    15   </div>
    167
    178  <table class="form-table">
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontaineraddpage.pt

    r7459 r7463  
    55    tal:condition="view/label"
    66    tal:content="view/label">Label</h2>
    7 
    8   <div class="alert-message error"
    9     tal:define="status view/status"
    10     tal:condition="status">
    11     Form Status:
    12     <span i18n:translate="" tal:content="view/status">
    13       Form status summary
    14     </span>
    15   </div>
    167
    178  <table class="form-table">
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt

    r7459 r7463  
    11<form action="." tal:attributes="action request/URL" method="POST"  class="edit-form" enctype="multipart/form-data">
    22  <h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    3   <div class="alert-message error"  tal:define="status view/status"  tal:condition="status"> Form Status:
    4     <span i18n:translate="" tal:content="view/status"> Form status summary
    5     </span>
    6   </div>
     3
    74  <ul class="tabs" data-tabs="tabs">
    85    <li class="active">
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantsrootmanagepage.pt

    r7459 r7463  
    11<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    2 <div tal:define="status view/status" tal:condition="status" class="alert-message error">
    3   <div i18n:translate="" tal:content="view/status"> Form status summary
    4   </div>
    5   <ul class="errors" tal:condition="view/errors">
    6     <li tal:repeat="error view/error_views">
    7       <span tal:replace="structure error">Error Type
    8       </span>
    9     </li>
    10   </ul>
    11 </div>
     2
    123<form action="." tal:attributes="action request/URL" method="POST"  enctype="multipart/form-data">
    134  <ul class="tabs" data-tabs="tabs">
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatemanagepage.pt

    r7459 r7463  
    22tal:condition="view/label"
    33tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/configurationmanagepage.pt

    r7459 r7463  
    11<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    2 <div class="alert-message error"  tal:define="status view/status"  tal:condition="status"> Form Status:
    3   <span i18n:translate="" tal:content="view/status"> Form status summary
    4   </span>
    5 </div>
     2
    63<form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data">
    74    <ul class="tabs" data-tabs="tabs">
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/contactform.pt

    r7459 r7463  
    55    tal:condition="view/label"
    66    tal:content="view/label">Label</h2>
    7 
    8   <div class="alert-message error"
    9       tal:define="status view/status"
    10       tal:condition="status">
    11       <ul tal:condition="view/errors">
    12         <li tal:repeat="error view/error_views">
    13            <span tal:replace="structure error">Error Type</span>
    14         </li>
    15       </ul>
    16   </div>
    177
    188  <tal:block repeat="widget view/widgets">
     
    2414      Textbody
    2515    </div>
     16    <tal:error tal:condition="widget/error">
     17      <span tal:replace="structure widget/error">error</span>
     18      <br />
     19    </tal:error>
    2620    <br />
    2721  </tal:block>
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/default_waeup_edit_form.pt

    r7459 r7463  
    55    tal:condition="view/label"
    66    tal:content="view/label">Label</h2>
    7 
    8   <div class="alert-message error"
    9       tal:define="status view/status"
    10       tal:condition="status">
    11       Form Status:
    12       <span i18n:translate="" tal:content="view/status">
    13         Form status summary
    14       </span>
    15   </div>
    167
    178  <table class="form-table">
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt

    r7459 r7463  
    11<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    2 <div class="alert-message error"  tal:define="status view/status"  tal:condition="status"> Form Status:
    3   <span i18n:translate="" tal:content="view/status"> Form status summary
    4   </span>
    5 </div>
     2
    63<form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data">
    74  <ul class="tabs" data-tabs="tabs">
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultiescontainermanagepage.pt

    r7459 r7463  
    22    tal:condition="view/label"
    33    tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt

    r7459 r7463  
    11<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    2 <div class="alert-message error" tal:define="status view/status"
    3      tal:condition="status"> Form Status:
    4   <span i18n:translate="" tal:content="view/status"> Form status summary
    5   </span>
    6 </div>
     2
    73<form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data">
    84  <ul class="tabs" data-tabs="tabs">
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/staffsitelayout.pt

    r7461 r7463  
    8181          </div>
    8282        </div>
     83        <div class="alert-message error"
     84          tal:define="status view/status|nothing"
     85          tal:condition="status">
     86          Form Status:
     87          <span i18n:translate="" tal:content="view/status">
     88            Form status summary
     89          </span>
     90        </div>
    8391        <span tal:replace="structure provider:actionbar" />
    8492        <div tal:content="structure view/content"> THE CONTENT
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/studentsitelayout.pt

    r7461 r7463  
    6767          </div>
    6868        </div>
     69        <div class="alert-message error"
     70          tal:define="status view/status|nothing"
     71          tal:condition="status">
     72          Form Status:
     73          <span i18n:translate="" tal:content="view/status">
     74            Form status summary
     75          </span>
     76        </div>
    6977        <span tal:replace="structure provider:actionbar" />
    7078        <div tal:content="structure view/content"> THE CONTENT
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/usereditformpage.pt

    r7459 r7463  
    55    tal:condition="view/label"
    66    tal:content="view/label">Label</h2>
    7 
    8   <div class="alert-message error"
    9       tal:define="status view/status"
    10       tal:condition="status">
    11       Form Status:
    12       <span i18n:translate="" tal:content="view/status">
    13         Form status summary
    14       </span>
    15       <ul tal:condition="view/errors">
    16         <li tal:repeat="error view/error_views">
    17            <span tal:replace="structure error">Error Type</span>
    18         </li>
    19       </ul>
    20   </div>
    217
    228  <table class="form-table">
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser_templates/containermanagepage.pt

    r7459 r7463  
    11<h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
    2 <div class="alert-message error" tal:define="status view/status" tal:condition="status"> Form Status:
    3   <span i18n:translate="" tal:content="view/status"> Form status summary
    4   </span>
    5 </div>
     2
    63<form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data">
    74  <table>
  • main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser_templates/hostelmanagepage.pt

    r7459 r7463  
    22  tal:condition="view/label"
    33  tal:content="view/label">Label</h2>
    4 
    5   <div class="alert-message error"
    6       tal:define="status view/status"
    7       tal:condition="status">
    8       Form Status:
    9       <span i18n:translate="" tal:content="view/status">
    10         Form status summary
    11       </span>
    12       <ul tal:condition="view/errors">
    13         <li tal:repeat="error view/error_views">
    14            <span tal:replace="structure error">Error Type</span>
    15         </li>
    16       </ul>
    17   </div>
    184
    195  <form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/accommodationmanagepage.pt

    r7459 r7463  
    22tal:condition="view/label"
    33tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/basemanagepage.pt

    r7459 r7463  
    55<form action="." tal:attributes="action request/URL" method="post"
    66      enctype="multipart/form-data">
    7 
    8   <div class="alert-message error"
    9     tal:define="status view/status"
    10     tal:condition="status">
    11     Form Status:
    12     <span i18n:translate="" tal:content="view/status">
    13       Form status summary
    14     </span>
    15   </div>
    167
    178  <ul class="tabs" data-tabs="tabs">
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/changepw.pt

    r7459 r7463  
    55    tal:condition="view/label"
    66    tal:content="view/label">Label</h2>
    7 
    8   <div class="alert-message error"
    9     tal:define="status view/status"
    10     tal:condition="status">
    11     Form Status:
    12     <span i18n:translate="" tal:content="view/status">
    13       Form status summary
    14     </span>
    15   </div>
    167
    178  <table class="form-table">
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/clearanceeditpage.pt

    r7459 r7463  
    55<form action="." tal:attributes="action request/URL" method="post"
    66      enctype="multipart/form-data">
    7 
    8   <div class="alert-message error"
    9     tal:define="status view/status"
    10     tal:condition="status">
    11     Form Status:
    12     <span i18n:translate="" tal:content="view/status">
    13       Form status summary
    14     </span>
    15   </div>
    167
    178  <ul class="tabs" data-tabs="tabs">
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/courseticketmanagepage.pt

    r7459 r7463  
    55    tal:condition="view/label"
    66    tal:content="view/label">Label</h2>
    7 
    8   <div class="alert-message error"
    9     tal:define="status view/status"
    10     tal:condition="status">
    11     Form Status:
    12     <span i18n:translate="" tal:content="view/status">
    13       Form status summary
    14     </span>
    15   </div>
    167
    178  <table class="form-table">
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/paymentsmanagepage.pt

    r7459 r7463  
    22tal:condition="view/label"
    33tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursemanagepage.pt

    r7459 r7463  
    22tal:condition="view/label"
    33tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studyleveladdpage.pt

    r7459 r7463  
    22tal:condition="view/label"
    33tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studyleveleditpage.pt

    r7459 r7463  
    22tal:condition="view/label"
    33tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studylevelmanagepage.pt

    r7459 r7463  
    22tal:condition="view/label"
    33tal:content="view/label">Label</h2>
    4 
    5 <div class="alert-message error"
    6     tal:define="status view/status"
    7     tal:condition="status">
    8     Form Status:
    9     <span i18n:translate="" tal:content="view/status">
    10       Form status summary
    11     </span>
    12 </div>
    134
    145<form action="." tal:attributes="action request/URL" method="POST"
  • main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py

    r7459 r7463  
    15871587        self.browser.getControl(name="form.reg_number").value = '123'
    15881588        self.browser.getControl(name="form.email").value = 'aa@aa.ng'
    1589         self.browser.getControl("Get login credentials").click()
     1589        self.browser.getControl("Get new login credentials").click()
    15901590        self.assertTrue('An email with' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.