Author: david
Date: Wed Sep 28 16:45:58 2011
New Revision: 9866

Log:
Switch to print icon instead of 'reports' context menu

Added:
   trunk/images/printer-icon.png   (contents, props changed)
Deleted:
   trunk/apps/qubit/modules/physicalobject/actions/reportsComponent.class.php
   trunk/apps/qubit/modules/physicalobject/templates/_reports.php
Modified:
   trunk/apps/qubit/modules/physicalobject/config/view.yml
   trunk/apps/qubit/modules/physicalobject/templates/indexSuccess.php
   trunk/plugins/sfCaribouPlugin/css/style.css

Modified: trunk/apps/qubit/modules/physicalobject/config/view.yml
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/config/view.yml     Wed Sep 28 
15:42:33 2011        (r9865)
+++ trunk/apps/qubit/modules/physicalobject/config/view.yml     Wed Sep 28 
16:45:58 2011        (r9866)
@@ -7,6 +7,5 @@
 
 indexSuccess:
   javascripts:
-    blank:
-  components:
-    sidebar: [physicalobject, reports]
+    /plugins/sfDrupalPlugin/vendor/drupal/misc/jquery.once.js:
+    /plugins/sfDrupalPlugin/vendor/drupal/misc/tableheader:

Modified: trunk/apps/qubit/modules/physicalobject/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/indexSuccess.php  Wed Sep 
28 15:42:33 2011        (r9865)
+++ trunk/apps/qubit/modules/physicalobject/templates/indexSuccess.php  Wed Sep 
28 16:45:58 2011        (r9866)
@@ -2,6 +2,10 @@
 
 <h1 class="label"><?php echo render_title($resource) ?></h1>
 
+<div id="action-icons">
+  <?php echo link_to(image_tag('printer-icon.png', array('alt' => 
__('Print'))), array($resource, 'module' => 'physicalobject', 'action' => 
'boxList'), array('title' => __('Print'))) ?>
+</div>
+
 <div class="section">
 
   <?php echo render_show(__('Type'), $resource->type) ?>

Added: trunk/images/printer-icon.png
==============================================================================
Binary file. No diff available.

Modified: trunk/plugins/sfCaribouPlugin/css/style.css
==============================================================================
--- trunk/plugins/sfCaribouPlugin/css/style.css Wed Sep 28 15:42:33 2011        
(r9865)
+++ trunk/plugins/sfCaribouPlugin/css/style.css Wed Sep 28 16:45:58 2011        
(r9866)
@@ -336,3 +336,23 @@
 {
   margin: 0;
 }
+
+#action-icons
+{
+  background-color: #EDF5FA;
+  border-width: 0 1px 1px 1px;
+  border-color: #D3E7F4;
+  border-style: solid;
+
+  border-radius: 2px;
+  -moz-border-radius: 2px;
+  -webkit-border-radius: 2px;
+
+  text-align: right;
+  padding: 3px;
+}
+
+#action-icons img
+{
+  margin: 0px 3px;
+}

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