Author: jablko
Date: Thu Sep 17 16:15:31 2009
New Revision: 3388
Log:
Use ->renderFormTag(), like revision 2975
Modified:
trunk/apps/qubit/modules/actor/actions/editAction.class.php
trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php
trunk/apps/qubit/modules/repository/actions/editAction.class.php
trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php
Modified: trunk/apps/qubit/modules/actor/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/actor/actions/editAction.class.php Thu Sep 17
15:57:13 2009 (r3387)
+++ trunk/apps/qubit/modules/actor/actions/editAction.class.php Thu Sep 17
16:15:31 2009 (r3388)
@@ -41,6 +41,8 @@
}
}
+ $this->form = new sfForm;
+
//Other Forms of Name
$this->otherNames = $this->actor->getOtherNames();
$this->newName = new QubitActorName;
Modified: trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php Thu Sep
17 15:57:13 2009 (r3387)
+++ trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php Thu Sep
17 16:15:31 2009 (r3388)
@@ -9,12 +9,11 @@
<div class="pageTitle"><?php echo __('edit %1% - ISAAR', array('%1%' =>
sfConfig::get('app_ui_label_actor'))) ?></div>
<?php if (isset($sf_request->id)): ?>
- <?php $formAction = url_for(array('module' => 'actor', 'action' => 'edit',
'id' => $sf_request->id)) ?>
+ <?php echo $form->renderFormTag(url_for(array('module' => 'actor', 'action'
=> 'edit', 'id' => $sf_request->id)), array('id' => 'editForm')) ?>
<?php else: ?>
- <?php $formAction = url_for(array('module' => 'actor', 'action' =>
'create')) ?>
+ <?php echo $form->renderFormTag(url_for(array('module' => 'actor', 'action'
=> 'create')), array('id' => 'editForm')) ?>
<?php endif; ?>
-<form method="post" action="<?php echo $formAction ?>" id="editForm">
<?php echo input_hidden_tag('repositoryReroute', $repositoryReroute) ?>
<?php echo input_hidden_tag('informationObjectReroute',
$informationObjectReroute) ?>
Modified: trunk/apps/qubit/modules/repository/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/editAction.class.php Thu Sep
17 15:57:13 2009 (r3387)
+++ trunk/apps/qubit/modules/repository/actions/editAction.class.php Thu Sep
17 16:15:31 2009 (r3388)
@@ -41,6 +41,8 @@
}
}
+ $this->form = new sfForm;
+
$this->contactInformation = $this->repository->getContactInformation();
$this->newContactInformation = new QubitContactInformation;
Modified: trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php Thu Sep
17 15:57:13 2009 (r3387)
+++ trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php Thu Sep
17 16:15:31 2009 (r3388)
@@ -3,9 +3,9 @@
<div class="pageTitle"><?php echo __('edit %1% - ISDIAH', array('%1%' =>
sfConfig::get('app_ui_label_repository'))); ?></div>
<?php if (isset($sf_request->id)): ?>
- <form method="POST" action="<?php echo url_for(array('module' =>
'repository', 'action' => 'edit', 'id' => $sf_request->id)) ?>">
+ <?php echo $form->renderFormTag(url_for(array('module' => 'repository',
'action' => 'edit', 'id' => $sf_request->id))) ?>
<?php else: ?>
- <form method="POST" action="<?php echo url_for(array('module' =>
'repository', 'action' => 'create')) ?>">
+ <?php echo $form->renderFormTag(url_for(array('module' => 'repository',
'action' => 'create'))) ?>
<?php endif; ?>
<div class="formHeader">
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---