Author: sevein
Date: Sun Apr 29 22:31:14 2012
New Revision: 11557

Log:
Issue 2288. New template for ISDIAH

Modified:
   
branches/2.0/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php

Modified: 
branches/2.0/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
==============================================================================
--- 
branches/2.0/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
       Sun Apr 29 22:30:21 2012        (r11556)
+++ 
branches/2.0/plugins/sfIsdiahPlugin/modules/sfIsdiahPlugin/templates/indexSuccess.php
       Sun Apr 29 22:31:14 2012        (r11557)
@@ -1,152 +1,182 @@
-<h1><?php echo __('View %1%', array('%1%' => 
sfConfig::get('app_ui_label_repository'))) ?></h1>
+<div id="main-column" class="span9 offset3">
 
-<h1 class="label">
-<?php echo link_to_if(SecurityPriviliges::editCredentials($sf_user, 
'repository'), render_title($resource), array($resource, 'module' => 
'repository', 'action' => 'edit'), array('title' => __('Edit repository'))) ?>
-</h1>
-
-<?php if (isset($errorSchema)): ?>
-  <div class="messages error">
-    <ul>
-      <?php foreach ($errorSchema as $error): ?>
-        <li><?php echo $error ?></li>
-      <?php endforeach; ?>
-    </ul>
+  <div id="headline">
+    <h1><?php echo render_title($resource) ?></h1>
   </div>
-<?php endif; ?>
 
-<div class="section" id="identifyArea">
+  <!--
+  <?php if (isset($errorSchema)): ?>
+    <div class="alert alert-info">
+      <a class="close" data-dismiss="alert" href="#">×</a>
+      <h4 class="alert-heading"><?php echo __('Warning!') ?></h4>
+      <ul>
+        <?php foreach ($errorSchema as $error): ?>
+          <li><?php echo $error ?></li>
+        <?php endforeach; ?>
+      </ul>
+    </div>
+  <?php endif; ?>
+  -->
 
-  <?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'))) ?>
+  <div class="row">
 
-  <?php echo render_show(__('Identifier'), 
render_value($resource->identifier)) ?>
+    <div class="span7" id="content">
 
-  <?php echo render_show(__('Authorized form of name'), 
render_value($resource)) ?>
+      <div class="section" id="identifyArea">
 
-  <div class="field">
-    <h3><?php echo __('Parallel form(s) of name') ?></h3>
-    <div>
-      <ul>
-        <?php foreach ($resource->getOtherNames(array('typeId' => 
QubitTerm::PARALLEL_FORM_OF_NAME_ID)) as $item): ?>
-          <li><?php echo render_value($item->__toString()) ?></li>
+        <?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)) ?>
+
+        <?php echo render_show(__('Authorized form of name'), 
render_value($resource)) ?>
+
+        <div class="field">
+          <h3><?php echo __('Parallel form(s) of name') ?></h3>
+          <div>
+            <ul>
+              <?php foreach ($resource->getOtherNames(array('typeId' => 
QubitTerm::PARALLEL_FORM_OF_NAME_ID)) as $item): ?>
+                <li><?php echo render_value($item->__toString()) ?></li>
+              <?php endforeach; ?>
+            </ul>
+          </div>
+        </div>
+
+        <div class="field">
+          <h3><?php echo __('Other form(s) of name') ?></h3>
+          <div>
+            <ul>
+              <?php foreach ($resource->getOtherNames(array('typeId' => 
QubitTerm::OTHER_FORM_OF_NAME_ID)) as $item): ?>
+                <li><?php echo render_value($item->__toString()) ?></li>
+              <?php endforeach; ?>
+            </ul>
+          </div>
+        </div>
+
+        <?php foreach 
($resource->getTermRelations(QubitTaxonomy::REPOSITORY_TYPE_ID) as $item): ?>
+          <?php echo render_show(__('Type'), render_value($item->term)) ?>
         <?php endforeach; ?>
-      </ul>
-    </div>
-  </div>
 
-  <div class="field">
-    <h3><?php echo __('Other form(s) of name') ?></h3>
-    <div>
-      <ul>
-        <?php foreach ($resource->getOtherNames(array('typeId' => 
QubitTerm::OTHER_FORM_OF_NAME_ID)) as $item): ?>
-          <li><?php echo render_value($item->__toString()) ?></li>
+      </div>
+
+      <div class="section" id="contactArea">
+
+        <?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): ?>
+          <?php echo get_partial('contactinformation/contactInformation', 
array('contactInformation' => $contactItem)) ?>
         <?php endforeach; ?>
-      </ul>
-    </div>
-  </div>
 
-  <?php foreach 
($resource->getTermRelations(QubitTaxonomy::REPOSITORY_TYPE_ID) as $item): ?>
-    <?php echo render_show(__('Type'), render_value($item->term)) ?>
-  <?php endforeach; ?>
+      </div>
 
-</div>
+      <div class="section" id="descriptionArea">
 
-<div class="section" id="contactArea">
+        <?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 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 echo render_show(__('History'), 
render_value($resource->getHistory(array('cultureFallback' => true)))) ?>
 
-  <?php foreach ($resource->contactInformations as $contactItem): ?>
-    <?php echo get_partial('contactinformation/contactInformation', 
array('contactInformation' => $contactItem)) ?>
-  <?php endforeach; ?>
+        <?php echo render_show(__('Geographical and cultural context'), 
render_value($resource->getGeoculturalContext(array('cultureFallback' => 
true)))) ?>
 
-</div> <!-- /.section#contactArea -->
+        <?php echo render_show(__('Mandates/Sources of authority'), 
render_value($resource->getMandates(array('cultureFallback' => true)))) ?>
 
-<div class="section" id="descriptionArea">
+        <?php echo render_show(__('Administrative structure'), 
render_value($resource->getInternalStructures(array('cultureFallback' => 
true)))) ?>
 
-  <?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(__('Records management and collecting 
policies'), 
render_value($resource->getCollectingPolicies(array('cultureFallback' => 
true)))) ?>
 
-  <?php echo render_show(__('History'), 
render_value($resource->getHistory(array('cultureFallback' => true)))) ?>
+        <?php echo render_show(__('Buildings'), 
render_value($resource->getBuildings(array('cultureFallback' => true)))) ?>
 
-  <?php echo render_show(__('Geographical and cultural context'), 
render_value($resource->getGeoculturalContext(array('cultureFallback' => 
true)))) ?>
+        <?php echo render_show(__('Holdings'), 
render_value($resource->getHoldings(array('cultureFallback' => true)))) ?>
 
-  <?php echo render_show(__('Mandates/Sources of authority'), 
render_value($resource->getMandates(array('cultureFallback' => true)))) ?>
+        <?php echo render_show(__('Finding aids, guides and publications'), 
render_value($resource->getFindingAids(array('cultureFallback' => true)))) ?>
 
-  <?php echo render_show(__('Administrative structure'), 
render_value($resource->getInternalStructures(array('cultureFallback' => 
true)))) ?>
+      </div>
 
-  <?php echo render_show(__('Records management and collecting policies'), 
render_value($resource->getCollectingPolicies(array('cultureFallback' => 
true)))) ?>
+      <div class="section" id="accessArea">
 
-  <?php echo render_show(__('Buildings'), 
render_value($resource->getBuildings(array('cultureFallback' => true)))) ?>
+        <?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(__('Holdings'), 
render_value($resource->getHoldings(array('cultureFallback' => true)))) ?>
+        <?php echo render_show(__('Opening times'), 
render_value($resource->getOpeningTimes(array('cultureFallback' => true)))) ?>
 
-  <?php echo render_show(__('Finding aids, guides and publications'), 
render_value($resource->getFindingAids(array('cultureFallback' => true)))) ?>
+        <?php echo render_show(__('Access conditions and requirements'), 
render_value($resource->getAccessConditions(array('cultureFallback' => true)))) 
?>
 
-</div>
+        <?php echo render_show(__('Accessibility'), 
render_value($resource->getDisabledAccess(array('cultureFallback' => true)))) ?>
 
-<div class="section" id="accessArea">
+      </div>
 
-  <?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'))) ?>
+      <div class="section" id="servicesArea">
 
-  <?php echo render_show(__('Opening times'), 
render_value($resource->getOpeningTimes(array('cultureFallback' => true)))) ?>
+        <?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(__('Access conditions and requirements'), 
render_value($resource->getAccessConditions(array('cultureFallback' => true)))) 
?>
+        <?php echo render_show(__('Research services'), 
render_value($resource->getResearchServices(array('cultureFallback' => true)))) 
?>
 
-  <?php echo render_show(__('Accessibility'), 
render_value($resource->getDisabledAccess(array('cultureFallback' => true)))) ?>
+        <?php echo render_show(__('Reproduction services'), 
render_value($resource->getReproductionServices(array('cultureFallback' => 
true)))) ?>
 
-</div>
+        <?php echo render_show(__('Public areas'), 
render_value($resource->getPublicFacilities(array('cultureFallback' => true)))) 
?>
 
-<div class="section" id="servicesArea">
+      </div>
 
-  <?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'))) ?>
+      <div class="section" id="controlArea">
 
-  <?php echo render_show(__('Research services'), 
render_value($resource->getResearchServices(array('cultureFallback' => true)))) 
?>
+        <?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(__('Reproduction services'), 
render_value($resource->getReproductionServices(array('cultureFallback' => 
true)))) ?>
+        <?php echo render_show(__('Description identifier'), 
render_value($resource->descIdentifier)) ?>
 
-  <?php echo render_show(__('Public areas'), 
render_value($resource->getPublicFacilities(array('cultureFallback' => true)))) 
?>
+        <?php echo render_show(__('Institution identifier'), 
render_value($resource->getDescInstitutionIdentifier(array('cultureFallback' => 
true)))) ?>
 
-</div>
+        <?php echo render_show(__('Rules and/or conventions used'), 
render_value($resource->getDescRules(array('cultureFallback' => true)))) ?>
 
-<div class="section" id="controlArea">
+        <?php echo render_show(__('Status'), 
render_value($resource->descStatus)) ?>
 
-  <?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(__('Level of detail'), 
render_value($resource->descDetail)) ?>
 
-  <?php echo render_show(__('Description identifier'), 
render_value($resource->descIdentifier)) ?>
+        <?php echo render_show(__('Dates of creation, revision and deletion'), 
render_value($resource->getDescRevisionHistory(array('cultureFallback' => 
true)))) ?>
 
-  <?php echo render_show(__('Institution identifier'), 
render_value($resource->getDescInstitutionIdentifier(array('cultureFallback' => 
true)))) ?>
+        <div class="field">
+          <h3><?php echo __('Language(s)') ?></h3>
+          <div>
+            <ul>
+              <?php foreach ($resource->language as $code): ?>
+                <li><?php echo format_language($code) ?></li>
+              <?php endforeach; ?>
+            </ul>
+          </div>
+        </div>
 
-  <?php echo render_show(__('Rules and/or conventions used'), 
render_value($resource->getDescRules(array('cultureFallback' => true)))) ?>
+        <div class="field">
+          <h3><?php echo __('Script(s)') ?></h3>
+          <div>
+            <ul>
+              <?php foreach ($resource->script as $code): ?>
+                <li><?php echo format_script($code) ?></li>
+              <?php endforeach; ?>
+            </ul>
+          </div>
+        </div>
 
-  <?php echo render_show(__('Status'), render_value($resource->descStatus)) ?>
+        <?php echo render_show(__('Sources'), 
render_value($resource->getDescSources(array('cultureFallback' => true)))) ?>
 
-  <?php echo render_show(__('Level of detail'), 
render_value($resource->descDetail)) ?>
+        <?php echo render_show(__('Maintenance notes'), 
render_value($isdiah->maintenanceNotes)) ?>
 
-  <?php echo render_show(__('Dates of creation, revision and deletion'), 
render_value($resource->getDescRevisionHistory(array('cultureFallback' => 
true)))) ?>
+      </div>
 
-  <div class="field">
-    <h3><?php echo __('Language(s)') ?></h3>
-    <div>
-      <ul>
-        <?php foreach ($resource->language as $code): ?>
-          <li><?php echo format_language($code) ?></li>
-        <?php endforeach; ?>
-      </ul>
     </div>
-  </div>
 
-  <div class="field">
-    <h3><?php echo __('Script(s)') ?></h3>
-    <div>
-      <ul>
-        <?php foreach ($resource->script as $code): ?>
-          <li><?php echo format_script($code) ?></li>
-        <?php endforeach; ?>
-      </ul>
+    <div class="span2" id="right-column">
+
+      <h3><?php echo __('Primary contact') ?></h3>
+      <p>Charles Xavier<br>1293 West Broadway<br>Vancouver, BC, V6X 
3X3<br>Canada</p>
+      <div><a href="#" class="widebtn">Send Email</a></div>
+      <div><a href="#" class="widebtn">Website</a></div>
+
+      <h3><?php echo __('Opening times') ?></h3>
+      <p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum 
dolor sit amet.</p>
+
+      <h3><?php echo __('Services') ?></h3>
+      <p>Research Services: sit amet. Lorem ipsum dolor sit amet. Lorem ipsum 
dolor sit amet.</p>
     </div>
-  </div>
 
-  <?php echo render_show(__('Sources'), 
render_value($resource->getDescSources(array('cultureFallback' => true)))) ?>
+    </div>
 
-  <?php echo render_show(__('Maintenance notes'), 
render_value($isdiah->maintenanceNotes)) ?>
+  </div>
 
 </div>
 

-- 
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