Author: david
Date: Wed Oct 12 15:46:27 2011
New Revision: 10042
Log:
Move action-icons div to a partial. Switch all information object templates to
partial
Added:
trunk/apps/qubit/modules/informationobject/templates/_actionIcons.php
(contents, props changed)
Modified:
trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
Added: trunk/apps/qubit/modules/informationobject/templates/_actionIcons.php
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/apps/qubit/modules/informationobject/templates/_actionIcons.php
Wed Oct 12 15:46:27 2011 (r10042)
@@ -0,0 +1,4 @@
+<div id="action-icons">
+ <?php echo link_to(image_tag('printer-icon.png', array('alt' =>
__('Print'))), array($sf_request->getAttribute('sf_route')->resource, 'module'
=> 'informationobject', 'media' => 'print'), array('id' => 'print-button',
'title' => __('Print'))) ?>
+ <?php echo link_to(image_tag('report.png', array('alt' => __('Reports'))),
array($sf_request->getAttribute('sf_route')->resource, 'module' =>
'informationobject', 'action' => 'reports'), array('id' => 'Reports', 'title'
=> __('Reports'))) ?>
+</div>
Modified: trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php
Wed Oct 12 15:42:47 2011 (r10041)
+++ trunk/plugins/sfDcPlugin/modules/sfDcPlugin/templates/indexSuccess.php
Wed Oct 12 15:46:27 2011 (r10042)
@@ -4,7 +4,8 @@
<h1 class="label printable">
<?php echo link_to_if(QubitAcl::check($resource, 'update'),
render_title($dc), array($resource, 'module' => 'informationobject', 'action'
=> 'edit'), array('title' => __('Edit resource metadata'))) ?>
- <?php echo link_to(image_tag('printer-icon.png', array('alt' => __('Print
report'))), array($resource, 'module' => 'informationobject', 'action' =>
'reports'), array('id' => 'print-button', 'title' => __('Print report'))) ?>
+
+ <?php echo get_partial('informationobject/actionIcons') ?>
</h1>
<?php if (isset($errorSchema)): ?>
Modified:
trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
Wed Oct 12 15:42:47 2011 (r10041)
+++ trunk/plugins/sfIsadPlugin/modules/sfIsadPlugin/templates/indexSuccess.php
Wed Oct 12 15:46:27 2011 (r10042)
@@ -5,10 +5,7 @@
<h1 class="label">
<?php echo link_to_if(QubitAcl::check($resource, 'update'),
render_title($isad), array($resource, 'module' => 'informationobject', 'action'
=> 'edit'), array('title' => __('Edit archival description'))) ?>
- <div id="action-icons">
- <?php echo link_to(image_tag('printer-icon.png', array('alt' =>
__('Print'))), array($resource, 'module' => 'informationobject', 'media' =>
'print'), array('id' => 'print-button', 'title' => __('Print'))) ?>
- <?php echo link_to(image_tag('report.png', array('alt' => __('Reports'))),
array($resource, 'module' => 'informationobject', 'action' => 'reports'),
array('id' => 'Reports', 'title' => __('Reports'))) ?>
- </div>
+ <?php echo get_partial('informationobject/actionIcons') ?>
</h1>
<?php if (QubitInformationObject::ROOT_ID != $resource->parentId): ?>
Modified:
trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php
Wed Oct 12 15:42:47 2011 (r10041)
+++ trunk/plugins/sfModsPlugin/modules/sfModsPlugin/templates/indexSuccess.php
Wed Oct 12 15:46:27 2011 (r10042)
@@ -4,7 +4,8 @@
<h1 class="label printable">
<?php echo link_to_if(QubitAcl::check($resource, 'update'),
render_title($mods), array($resource, 'module' => 'informationobject', 'action'
=> 'edit'), array('title' => __('Edit resource metadata'))) ?>
- <?php echo link_to(image_tag('printer-icon.png', array('alt' => __('Print
report'))), array($resource, 'module' => 'informationobject', 'action' =>
'reports'), array('id' => 'print-button', 'title' => __('Print report'))) ?>
+
+ <?php echo get_partial('informationobject/actionIcons') ?>
</h1>
<?php if (0 < count($resource->digitalObjects)): ?>
Modified:
trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
Wed Oct 12 15:42:47 2011 (r10041)
+++ trunk/plugins/sfRadPlugin/modules/sfRadPlugin/templates/indexSuccess.php
Wed Oct 12 15:46:27 2011 (r10042)
@@ -4,7 +4,8 @@
<h1 class="label printable">
<?php echo link_to_if(QubitAcl::check($resource, 'update'),
render_title($rad), array($resource, 'module' => 'informationobject', 'action'
=> 'edit'), array('title' => __('Edit archival description'))) ?>
- <?php echo link_to(image_tag('printer-icon.png', array('alt' => __('Print
report'))), array($resource, 'module' => 'informationobject', 'action' =>
'reports'), array('id' => 'print-button', 'title' => __('Print report'))) ?>
+
+ <?php echo get_partial('informationobject/actionIcons') ?>
</h1>
<?php if (QubitInformationObject::ROOT_ID != $resource->parentId): ?>
--
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.