Author: jablko
Date: Wed Sep  2 17:49:48 2009
New Revision: 3154

Log:
Add header, <form> tag, and save and cancel actions to edit physical storage 
page

Modified:
   
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
   
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
==============================================================================
--- 
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
      Wed Sep  2 17:27:36 2009        (r3153)
+++ 
trunk/apps/qubit/modules/informationobject/actions/editPhysicalObjectsAction.class.php
      Wed Sep  2 17:49:48 2009        (r3154)
@@ -39,6 +39,8 @@
 
     $request->setAttribute('informationObject', $this->informationObject);
 
+    $this->form = new sfForm;
+
     $this->relations = 
QubitRelation::getRelationsByObjectId($this->informationObject->getId(), 
array('typeId'=>QubitTerm::HAS_PHYSICAL_OBJECT_ID));
   }
 

Modified: 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
==============================================================================
--- 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
 Wed Sep  2 17:27:36 2009        (r3153)
+++ 
trunk/apps/qubit/modules/informationobject/templates/editPhysicalObjectsSuccess.php
 Wed Sep  2 17:49:48 2009        (r3154)
@@ -1,3 +1,7 @@
+<h1><?php echo __('Edit physical storage') ?></h1>
+
+<?php echo $form->renderFormTag(url_for(array('module' => 'informationobject', 
'action' => 'editPhysicalObjects', 'id' => $informationObject->id))) ?>
+
 <?php if(count($relations)): ?>
 
 <div class="form-item">
@@ -76,3 +80,10 @@
     
options_for_select(QubitTerm::getIndentedChildTree(QubitTerm::CONTAINER_ID), 
     null, array('include_blank'=>true))) ?>
 </div>
+
+  <ul class="actions">
+    <li><?php echo link_to(__('Cancel'), array('module' => 
'informationobject', 'action' => 'show', 'id' => $informationObject->id)) 
?></li>
+    <li><?php echo submit_tag(__('Save')) ?></li>
+  </ul>
+
+</form>

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to