[Vtigercrm-commits] [vtiger-commits] r6622 - /vtigercrm/trunk/Smarty/templates/Inventory/InventoryActions.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sun May 28 09:23:21 EDT 2006
Author: saraj
Date: Sun May 28 07:23:17 2006
New Revision: 6622
Log:
* Modified to give the links based on the modules
Modified:
vtigercrm/trunk/Smarty/templates/Inventory/InventoryActions.tpl
Modified: vtigercrm/trunk/Smarty/templates/Inventory/InventoryActions.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Inventory/InventoryActions.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Inventory/InventoryActions.tpl Sun May 28 07:23:17 2006
@@ -24,24 +24,141 @@
<tr>
<td align="left" class="genHeaderSmall">{$APP.LBL_ACTIONS}</td>
</tr>
- <tr>
- <td align="left" style="padding-left:10px;">
- <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
- <a href="javascript: document.DetailView.return_module.value='{$MODULE}'; document.DetailView.return_action.value='DetailView'; document.DetailView.convertmode.value='{$CONVERTMODE}'; document.DetailView.module.value='Invoice'; document.DetailView.action.value='EditView'; document.DetailView.return_id.value='{$ID}'; document.DetailView.submit();" class="webMnu">Generate Invoice</a>
- </td>
- </tr>
- <tr>
- <td align="left" style="padding-left:10px;border-bottom:1px dotted #CCCCCC;">
- <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
- <a href="javascript: document.DetailView.return_module.value='SalesOrder'; document.DetailView.return_action.value='DetailView'; document.DetailView.convertmode.value='quotetoso'; document.DetailView.module.value='SalesOrder'; document.DetailView.action.value='EditView'; document.DetailView.submit();" class="webMnu">Generate Sales Order</a>
- </td>
- </tr>
+
+
+
+ <!-- Module based actions starts -->
+ {if $MODULE eq 'Products'}
+ <!-- Product Actions starts -->
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Create Quote</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Create Invoice</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Create SalesOrder</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List Pending Old Quotes</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List Pending Old Invoices</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List Pending Old SalesOrders</a>
+ </td>
+ </tr>
+ <!-- Product Actions ends -->
+
+ {elseif $MODULE eq 'Vendors'}
+ <!-- Vendors Actions starts -->
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Create PurchaseOrder</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List PurchaseOrders for this Vendor</a>
+ </td>
+ </tr>
+ <!-- Vendors Actions ends -->
+
+ {elseif $MODULE eq 'PurchaseOrder'}
+ <!-- PO Actions starts -->
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List Other PurchaseOrders to this Vendor</a>
+ </td>
+ </tr>
+ <!-- PO Actions ends -->
+
+ {elseif $MODULE eq 'SalesOrder'}
+ <!-- SO Actions starts -->
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List Linked Quotes</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List Linked Invoices</a>
+ </td>
+ </tr>
+ <!-- SO Actions ends -->
+
+ {elseif $MODULE eq 'Quotes'}
+ <!-- Vendors Actions starts -->
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="javascript: document.DetailView.return_module.value='{$MODULE}'; document.DetailView.return_action.value='DetailView'; document.DetailView.convertmode.value='{$CONVERTMODE}'; document.DetailView.module.value='Invoice'; document.DetailView.action.value='EditView'; document.DetailView.return_id.value='{$ID}'; document.DetailView.submit();" class="webMnu">Generate Invoice</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;border-bottom:1px dotted #CCCCCC;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="javascript: document.DetailView.return_module.value='SalesOrder'; document.DetailView.return_action.value='DetailView'; document.DetailView.convertmode.value='quotetoso'; document.DetailView.module.value='SalesOrder'; document.DetailView.action.value='EditView'; document.DetailView.submit();" class="webMnu">Generate Sales Order</a>
+ </td>
+ </tr>
+ <!-- Vendors Actions ends -->
+
+ {elseif $MODULE eq 'Invoice'}
+ <!-- Invoice Actions starts -->
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">List Linked Quotes</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Generare SalesOrder</a>
+ </td>
+ </tr>
+ <!-- Invoice Actions ends -->
+
+ {/if}
+
+ <!-- Module based actions ends -->
+
+
+
+
+
+
<tr>
<td align="left">
- <span class="genHeaderSmall">Find Other Quotes</span><br />
- You can find similar quotes using information of this quote
- </td>
- </tr>
+ <span class="genHeaderSmall">Other Functions</span><br />
+ </td>
+ </tr>
+
+
+<!--
<tr>
<td align="left" style="padding-left:10px;">
<img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
@@ -54,22 +171,34 @@
<a href="#" class="webMnu">Use Shipping Address </a>
</td>
</tr>
- <tr>
- <td align="left" style="padding-left:10px;">
- <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
- <a href="#" class="webMnu">Use Billing Address </a>
- </td>
- </tr>
- <tr>
- <td align="left" style="padding-left:10px;">
- <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
- <a href="#" class="webMnu">Use Product 1 </a>
- </td>
- </tr>
- <tr>
- <td align="left" style="padding-left:10px;">
- <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
- <a href="#" class="webMnu">Use Product 2 </a>
+-->
+
+
+<!-- This following Export To PDF link will come for PO, SO, Quotes and Invoice -->
+{if $MODULE eq 'PurchaseOrder' || $MODULE eq 'SalesOrder' || $MODULE eq 'Quotes' || $MODULE eq 'Invoice'}
+
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Export To PDF</a>
+ </td>
+ </tr>
+
+{/if}
+
+
+
+ <!-- The following links are common to all the inventory modules -->
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Print</a>
+ </td>
+ </tr>
+ <tr>
+ <td align="left" style="padding-left:10px;">
+ <img src="{$IMAGE_PATH}pointer.gif" hspace="5" align="absmiddle"/>
+ <a href="#" class="webMnu">Email Now </a>
</td>
</tr>
</table>
More information about the vtigercrm-commits
mailing list