Author: jablko
Date: Tue Sep 15 11:43:30 2009
New Revision: 3311
Log:
Drop links from edit pages which could loose entered data
Modified:
trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php
trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php
Modified: trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php Tue Sep
15 11:42:26 2009 (r3310)
+++ trunk/apps/qubit/modules/actor/templates/editIsaarSuccess.php Tue Sep
15 11:43:30 2009 (r3311)
@@ -18,13 +18,9 @@
<?php echo input_hidden_tag('repositoryReroute', $repositoryReroute) ?>
<?php echo input_hidden_tag('informationObjectReroute',
$informationObjectReroute) ?>
- <?php if ($actor->getAuthorizedFormOfName(array('sourceCulture' => true))):
?>
<div class="formHeader">
- <?php echo link_to($actor, array('module' => 'actor', 'action' =>
'show', 'id' => $actor->getId())) ?>
+ <?php echo render_title($actor) ?>
</div>
- <?php else: ?>
- <table class="list" style="height: 25px;"><thead><tr><th></th></tr></table>
- <?php endif; ?>
<?php if ($sf_context->getActionName() == 'createIsaar'): ?>
<fieldset class="collapsible">
Modified: trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
Tue Sep 15 11:42:26 2009 (r3310)
+++ trunk/apps/qubit/modules/informationobject/templates/editDcSuccess.php
Tue Sep 15 11:43:30 2009 (r3311)
@@ -10,13 +10,9 @@
<?php echo $form->renderFormTag(url_for(array('module' =>
'informationobject', 'action' => 'create')), array('id' => 'editForm')) ?>
<?php endif; ?>
-<?php if ($label = QubitDc::getLabel($informationObject, array('sourceCulture'
=> true))): ?>
<div class="formHeader">
- <?php echo link_to($label,
'informationobject/showDc/?id='.$informationObject->getId()) ?>
+ <?php echo render_title(QubitDc::getLabel($informationObject)) ?>
</div>
-<?php else: ?>
- <table class="list" style="height:
25px;"><thead><tr><th> </th></tr></table>
-<?php endif; ?>
<?php echo $form->identifier->renderRow() ?>
Modified:
trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
Tue Sep 15 11:42:26 2009 (r3310)
+++ trunk/apps/qubit/modules/informationobject/templates/editIsadSuccess.php
Tue Sep 15 11:43:30 2009 (r3311)
@@ -10,13 +10,9 @@
<?php endif; ?>
<?php echo input_hidden_tag('collection_type_id',
QubitTerm::ARCHIVAL_MATERIAL_ID) ?>
- <?php if ($label = QubitIsad::getLabel($informationObject, array())): ?>
<div class="formHeader">
- <?php echo link_to($label,
'informationobject/showIsad/?id='.$informationObject->getId()) ?>
+ <?php echo render_title(QubitIsad::getLabel($informationObject)) ?>
</div>
- <?php else: ?>
- <div class="formHeader" style="height: 20px;"></div>
- <?php endif; ?>
<fieldset class="collapsible collapsed" id="identityArea">
Modified:
trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
Tue Sep 15 11:42:26 2009 (r3310)
+++ trunk/apps/qubit/modules/informationobject/templates/editModsSuccess.php
Tue Sep 15 11:43:30 2009 (r3311)
@@ -12,13 +12,9 @@
<?php echo input_hidden_tag('collection_type_id',
QubitTerm::PUBLISHED_MATERIAL_ID) ?>
- <?php if ($label = QubitMods::getLabel($informationObject, array())): ?>
<div class="formHeader">
- <?php echo link_to($label, array('module' => 'informationobject',
'action' => 'show', 'id' => $informationObject->getId())) ?>
+ <?php echo render_title(QubitMods::getLabel($informationObject)) ?>
</div>
- <?php else: ?>
- <table class="list" style="height:
25px;"><thead><tr><th> </th></tr></table>
- <?php endif; ?>
<?php echo $form->identifier->renderRow() ?>
Modified:
trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
Tue Sep 15 11:42:26 2009 (r3310)
+++ trunk/apps/qubit/modules/informationobject/templates/editRadSuccess.php
Tue Sep 15 11:43:30 2009 (r3311)
@@ -10,13 +10,9 @@
<?php endif; ?>
<?php echo input_hidden_tag('collection_type_id',
QubitTerm::ARCHIVAL_MATERIAL_ID) ?>
-<?php if ($label = QubitRad::getLabel($informationObject,
array('sourceCulture' => true))): ?>
<div class="formHeader">
- <?php echo link_to($label, array('module' => 'informationobject', 'action'
=> 'show', 'id' => $informationObject->getId())) ?>
+ <?php echo render_title(QubitRad::getLabel($informationObject)) ?>
</div>
-<?php else: ?>
- <table class="list" style="height:
25px;"><thead><tr><th> </th></tr></table>
-<?php endif; ?>
<fieldset class="collapsible collapsed"
id="titleAndStatementOfResponsibilityArea">
Modified: trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php Tue Sep
15 11:42:26 2009 (r3310)
+++ trunk/apps/qubit/modules/repository/templates/editIsdiahSuccess.php Tue Sep
15 11:43:30 2009 (r3311)
@@ -8,13 +8,9 @@
<form method="POST" action="<?php echo url_for(array('module' =>
'repository', 'action' => 'create')) ?>">
<?php endif; ?>
- <?php if ($repository->getAuthorizedFormOfName(array('cutureFallback' =>
true))): ?>
<div class="formHeader">
- <?php echo link_to($repository, array('module' => 'repository', 'action'
=> 'show', 'id' => $repository->getId())) ?>
+ <?php echo render_title($repository) ?>
</div>
- <?php else: ?>
- <table class="list" style="height:
25px;"><thead><tr><th> </th></tr></table>
- <?php endif; ?>
<?php if ($sf_context->getActionName() == 'createIsdiah'): ?>
<fieldset class="collapsible">
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---