[Mpuls-commits] r5689 - in base/trunk/mpulsweb/templates: . casemanagement formularpage

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Dec 2 12:21:08 CET 2011


Author: roland
Date: 2011-12-02 12:21:08 +0100 (Fri, 02 Dec 2011)
New Revision: 5689

Modified:
   base/trunk/mpulsweb/templates/casemanagement/new.mako
   base/trunk/mpulsweb/templates/formularpage/formular.mako
   base/trunk/mpulsweb/templates/main.mako
Log:
Add IDs to some links

Modified: base/trunk/mpulsweb/templates/casemanagement/new.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/new.mako	2011-12-02 10:56:59 UTC (rev 5688)
+++ base/trunk/mpulsweb/templates/casemanagement/new.mako	2011-12-02 11:21:08 UTC (rev 5689)
@@ -22,8 +22,8 @@
       <input type="checkbox" id="statement_signed" name="statement_signed"><label for="statement_signed">${_('The acceptence statement for entering, using and editing personal data has been obtained while initial meeting.')}</label>
     </div>
     <div class="input_space">
-      <input type="submit" value="${_('Print statement')}" name="print">
-      <input type="submit" value="${_('Create new case document')}" name="save">
+      <input type="submit" value="${_('Print statement')}" name="print" id="newCaseStatement">
+      <input type="submit" value="${_('Create new case document')}" name="save" id="newCaseSave">
     </div>
   </form>
 </div>

Modified: base/trunk/mpulsweb/templates/formularpage/formular.mako
===================================================================
--- base/trunk/mpulsweb/templates/formularpage/formular.mako	2011-12-02 10:56:59 UTC (rev 5688)
+++ base/trunk/mpulsweb/templates/formularpage/formular.mako	2011-12-02 11:21:08 UTC (rev 5689)
@@ -37,16 +37,19 @@
           % if session.get('render_mode') == 'ro':
             <li><a href="${h.url_for(controller='/formularpage', action='edit',
                                      id=c.page_id)}" 
-                   onclick="return checkModification();"> ${_('Edit')}</a></li>
+                   onclick="return checkModification();"
+                   id="formularPageEdit"> ${_('Edit')}</a></li>
           % else:
             <li><a href="${h.url_for(controller='/formularpage', action='show',
                                      id=c.page_id)}" 
-                   onclick="return checkModification();"> ${_('Close editing')}</a></li>
+                   onclick="return checkModification();"
+                   id="formularPageShow"> ${_('Close editing')}</a></li>
           % endif
         % endif
         <li><a href="${h.url_for(controller='/formularpage', action='printout',
                                  id=c.page_id)}" 
-               target="_blank" onclick="return checkModification();"> ${_('Printout')}</a></li>
+               target="_blank" onclick="return checkModification();"
+               id="formylarPagePrintout"> ${_('Printout')}</a></li>
       </ul>
     </div>
   </div>

Modified: base/trunk/mpulsweb/templates/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/main.mako	2011-12-02 10:56:59 UTC (rev 5688)
+++ base/trunk/mpulsweb/templates/main.mako	2011-12-02 11:21:08 UTC (rev 5689)
@@ -6,6 +6,7 @@
     % if g.mpuls_config.is_enabled('module', 'administration'):
         <a href="${h.url_for(controller='/usersettings', action='showSettings')}"
            title="${_('My Account')}"
+           id="userSettings"
            onclick="return checkModification();">
     % endif
     % if h.getLogin() != 'adm':
@@ -28,6 +29,7 @@
     <ul>
       <li>
         <a href="${h.url_for(controller='/')}"
+           id="blackBoard"
            onclick="return checkModification();">
           ${_('Black board')}
         </a>
@@ -35,6 +37,7 @@
       % if g.mpuls_config.is_enabled('module', 'administration'):
       <li>
         <a href="${h.url_for(controller='/usersettings', action='showSettings')}"
+           id="usetSettingsShowSettings"
            onclick="return checkModification();">
           ${_('My Account')}
         </a>
@@ -42,11 +45,13 @@
       % endif
       <li>
           <a href="${h.url_for(controller='/help')}"
+             id="help"
            onclick="return checkModification();">
            ${_('Help')}</a>
       </li>
       <li>
         <a href="${h.url_for(controller='/auth', action='logout')}"
+           id="logout"
            onclick="return checkModification();">
           ${_('Logout')}</a>
       </li>
@@ -56,6 +61,7 @@
 
 <%def name="buildNavipath()">
   <li><a href="${h.url_for(controller='/')}"
+         id="breadCrumbRoot"
          onclick="return checkModification();">${_('%s Start') % h.get_app_title()}</a></li>
 </%def>
 
@@ -77,7 +83,7 @@
           <h1>${_('%s Start') % h.get_app_title()}</h1>
           <ul>
             <li>
-              <a href="${h.url_for(controller='/')}">
+              <a href="${h.url_for(controller='/')}" id="blackBoardSideNavigation">
                 ${_('Black board')}
               </a>
             </li>
@@ -85,7 +91,8 @@
             % if g.mpuls_config.is_enabled('module', 'appointments'):
               <li>
                 <a href="${h.url_for(controller='/appointment',
-                                     action='overview')}">
+                                     action='overview')}"
+                   id="appointmentOverview">
                   ${_('Events')}
                 </a>
               </li>
@@ -94,7 +101,8 @@
             % if g.mpuls_config.is_enabled('module', 'documents'):
               <li>
                 <a href="${h.url_for(controller='/document', 
-                                     action='globalOverview')}">
+                                     action='globalOverview')}"
+                   id="documentGlobalOverview">
                   ${_('Documents')}
                 </a>
               </li>
@@ -110,21 +118,24 @@
           <ul>
             <li>
               <a href="${h.url_for(controller='/case_overview',
-                                   action='overview')}">
+                                   action='overview')}"
+                 id="caseoverviewOverview">
                 ${_('Case documents	')}
               </a>
             </li>
             % if h.hasRole(['cm']):
               % if g.mpuls_config.is_enabled('case-module', 'create'):
               <li>
-                <a href="${h.url_for(controller='/case', action='new')}">
+                <a href="${h.url_for(controller='/case', action='new')}"
+                   id="caseNew">
                   ${_('New case document')}
                 </a> 
               </li>
               % endif
               % if g.mpuls_config.is_enabled('case-module', 'import'):
                 <li>
-                  <a href="${h.url_for(controller='/case', action='importCase')}">
+                  <a href="${h.url_for(controller='/case', action='importCase')}"
+                     id="caseImportCase">
                     ${_('Import case document')}
                   </a>
                 </li>
@@ -141,7 +152,8 @@
           <h1>${_('Overview')}</h1>
             <ul>
               <li>
-                <a href="${h.url_for(controller='/evaluation_overview', action='index')}">
+                <a href="${h.url_for(controller='/evaluation_overview', action='index')}"
+                   id="evaluationOverviewIndex">
                   ${_('Agency')}
                 </a>
               </li>
@@ -169,18 +181,21 @@
         <ul>
           <li>
             <a href="${h.url_for(controller='/administration',
-                                 action='overviewUser')}"> 
+                                 action='overviewUser')}"
+               id="administrationOverviewUser"> 
               ${_('User')}
             </a>
           </li>
           <li>
             <a href="${h.url_for(controller='/administration',
-                                 action='overviewUserGroups')}">
+                                 action='overviewUserGroups')}"
+               id="administrationOverviewUserGroups">
               ${_('Usergroup')}
             </a>
           </li>
           <li>
-            <a href="${h.url_for(controller='/settings')}">
+            <a href="${h.url_for(controller='/settings')}"
+               id="settings">
               ${_('Settings')}
             </a>
           </li>
@@ -195,7 +210,8 @@
     % for eval in g.mpuls_config.get('evaluations', 'enabled'): 
       <li>
         <a href="${h.url_for(controller='/evaluate', action='evaluate',
-                             id=eval.get('id'))}">${eval.get('name')}</a>
+                             id=eval.get('id'))}"
+           id="evaluateEvaluate">${eval.get('name')}</a>
       </li>
     % endfor
   </ul>
@@ -219,7 +235,8 @@
   <div id="footer">
     <div id="version_str">
     <a href="${h.url_for(controller='/info')}"
-           onclick="return checkModification();">
+           onclick="return checkModification();"
+           id="info">
           ${_('Info')}</a>
       | ${g.mpuls_config.get_app_name()}
       | ${g.mpuls_config.get_releasedate()}



More information about the Mpuls-commits mailing list