Author: sevein
Date: Tue Sep 20 15:29:42 2011
New Revision: 9767

Log:
Add section links to edit form in ISDIAH

Modified:
   
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php

Modified: 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php  
    Tue Sep 20 14:48:53 2011        (r9766)
+++ 
trunk/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php  
    Tue Sep 20 15:29:42 2011        (r9767)
@@ -14,7 +14,7 @@
 
 <div class="section" id="identifyArea">
 
-  <h2><?php echo __('Identify area') ?></h2>
+  <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'repository'), '<h2>'.__('Identity area').'</h2>', array($resource, 'module' => 
'repository', 'action' => 'edit'), array('anchor' => 'identityArea', 'title' => 
__('Edit identity area'))) ?>
 
   <?php echo render_show(__('Identifier'), 
render_value($resource->identifier)) ?>
 
@@ -50,7 +50,7 @@
 
 <div class="section" id="contactArea">
 
-  <h2><?php echo __('Contact area') ?></h2>
+  <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'repository'), '<h2>'.__('Contact area').'</h2>', array($resource, 'module' => 
'repository', 'action' => 'edit'), array('anchor' => 'contactArea', 'title' => 
__('Edit contact area'))) ?>
 
   <?php foreach ($resource->contactInformations as $contactItem): ?>
     <div class="field">
@@ -69,7 +69,7 @@
 
 <div class="section" id="descriptionArea">
 
-  <h2><?php echo __('Description area') ?></h2>
+  <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'repository'), '<h2>'.__('Description area').'</h2>', array($resource, 'module' 
=> 'repository', 'action' => 'edit'), array('anchor' => 'descriptionArea', 
'title' => __('Edit description area'))) ?>
 
   <?php echo render_show(__('History'), 
render_value($resource->getHistory(array('cultureFallback' => true)))) ?>
 
@@ -91,7 +91,7 @@
 
 <div class="section" id="accessArea">
 
-  <h2><?php echo __('Access area') ?></h2>
+  <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'repository'), '<h2>'.__('Access area').'</h2>', array($resource, 'module' => 
'repository', 'action' => 'edit'), array('anchor' => 'accessArea', 'title' => 
__('Edit access area'))) ?>
 
   <?php echo render_show(__('Opening times'), 
render_value($resource->getOpeningTimes(array('cultureFallback' => true)))) ?>
 
@@ -103,7 +103,7 @@
 
 <div class="section" id="servicesArea">
 
-  <h2><?php echo __('Services area') ?></h2>
+  <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'repository'), '<h2>'.__('Services area').'</h2>', array($resource, 'module' => 
'repository', 'action' => 'edit'), array('anchor' => 'servicesArea', 'title' => 
__('Edit services area'))) ?>
 
   <?php echo render_show(__('Research services'), 
render_value($resource->getResearchServices(array('cultureFallback' => true)))) 
?>
 
@@ -115,7 +115,7 @@
 
 <div class="section" id="controlArea">
 
-  <h2><?php echo __('Control area') ?></h2>
+  <?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'repository'), '<h2>'.__('Control area').'</h2>', array($resource, 'module' => 
'repository', 'action' => 'edit'), array('anchor' => 'controlArea', 'title' => 
__('Edit control area'))) ?>
 
   <?php echo render_show(__('Description identifier'), 
render_value($resource->descIdentifier)) ?>
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to