[Vtigercrm-commits] [vtiger-commits] r9090 - in /vtigercrm/trunk/Smarty/templates: RelatedListContents.tpl RelatedListsHidden.tpl SetMenu.tpl Settings.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 24 00:56:03 EDT 2006
Author: richie
Date: Wed Aug 23 22:55:50 2006
New Revision: 9090
Log:
Updated the Related Lists tpl files for single pane view -- ahmed
Modified:
vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl
vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl
vtigercrm/trunk/Smarty/templates/SetMenu.tpl
vtigercrm/trunk/Smarty/templates/Settings.tpl
Modified: vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RelatedListContents.tpl Wed Aug 23 22:55:50 2006
@@ -11,7 +11,15 @@
********************************************************************************/
-->*}
+
+{if $SinglePane_View eq 'true'}
+ {assign var = return_modname value='DetailView'}
+{else}
+ {assign var = return_modname value='CallRelatedList'}
+{/if}
+
{foreach key=header item=detail from=$RELATEDLISTS}
+
<table border=0 cellspacing=0 cellpadding=0 width=100% class="small" style="border-bottom:1px solid #999999;padding:5px;">
<tr>
<td valign=bottom><b>{$APP.$header}</b></td>
@@ -32,12 +40,12 @@
<input title="{$APP.LBL_SELECT_PRODUCT_BUTTON_LABEL}" accessKey="" class="crmbutton small edit" value="{$APP.LBL_SELECT_PRODUCT_BUTTON_LABEL}" LANGUAGE=javascript onclick="this.form.action.value='AddProductsToPriceBook';this.form.module.value='Products';this.form.return_module.value='Products';this.form.return_action.value='PriceBookDetailView'" type="submit" name="button"></td>
{elseif $MODULE eq 'Potentials'}
<input title="Change" accessKey="" class="crmbutton small save" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Product}" LANGUAGE=javascript onclick='return window.open("index.php?module=Products&return_module={$MODULE}&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=false&recordid={$ID}","test","width=640,height=602,resizable=0,scrollbars=0");' type="button" name="button">
- <input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="crmbutton small save" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='CallRelatedList'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="crmbutton small save" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='{$return_modname}'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
{elseif $MODULE eq 'Vendors'}
- <input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='CallRelatedList'; this.form.parent_id.value='';" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='{$return_modname}'; this.form.parent_id.value='';" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
{else}
- <input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='CallRelatedList'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Product}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Products';this.form.return_module.value='{$MODULE}';this.form.return_action.value='{$return_modname}'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Product}"></td>
{/if}
{elseif $header eq 'Leads'}
{if $MODULE eq 'Campaigns'}
@@ -61,20 +69,20 @@
{elseif $header eq 'Activities'}
{if $MODULE eq 'PurchaseOrder' || $MODULE eq 'Invoice' || $MODULE eq 'SalesOrder' || $MODULE eq 'Quotes' || $MODULE eq 'Campaigns'}
<input type="hidden" name="activity_mode">
- <input title="{$APP.LBL_ADD_NEW} {$APP.Todo}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Calendar'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Task'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Todo}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Todo}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='{$return_modname}'; this.form.module.value='Calendar'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Task'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Todo}"></td>
{else}
<input type="hidden" name="activity_mode">
- <input title="{$APP.LBL_ADD_NEW} {$APP.Todo}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Calendar'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Task'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Todo}">
- <input title="{$APP.LBL_ADD_NEW} {$APP.Event}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Calendar'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Events'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Event}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Todo}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='{$return_modname}'; this.form.module.value='Calendar'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Task'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Todo}">
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Event}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='{$return_modname}'; this.form.module.value='Calendar'; this.form.return_module.value='{$MODULE}'; this.form.activity_mode.value='Events'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Event}"></td>
{/if}
{elseif $header eq 'HelpDesk'}
<input title="{$APP.LBL_ADD_NEW} {$APP.Ticket}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='HelpDesk'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Ticket}"></td>
{elseif $header eq 'Campaigns'}
<input title="Change" accessKey="" class="crmbutton small edit" value="{$APP.LBL_SELECT_BUTTON_LABEL} {$APP.Campaign}" LANGUAGE=javascript onclick='return window.open("index.php?module=Campaigns&return_module={$MODULE}&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=false&recordid={$ID}","test","width=640,height=602,resizable=0,scrollbars=0");' type="button" name="button"></td>
{elseif $header eq 'Attachments'}
- <input title="{$APP.LBL_ADD_NEW} {$APP.Note}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='CallRelatedList'; this.form.module.value='Notes'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Note}">
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Note}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.return_action.value='{$return_modname}'; this.form.module.value='Notes'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Note}">
<input type="hidden" name="fileid">
- <input title="{$APP.LBL_ADD_NEW} {$APP.LBL_ATTACHMENT}" accessyKey="F" class="crmbutton small create" onclick="window.open('index.php?module=uploads&action=uploadsAjax&file=upload&return_action=CallRelatedList&return_module={$MODULE}&return_id={$id}','Attachments','width=500,height=300');" type="button" name="button" value="{$APP.LBL_ADD_NEW} {$APP.LBL_ATTACHMENT}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.LBL_ATTACHMENT}" accessyKey="F" class="crmbutton small create" onclick="window.open('index.php?module=uploads&action=uploadsAjax&file=upload&return_action={$return_modname}&return_module={$MODULE}&return_id={$ID}','Attachments','width=500,height=300');" type="button" name="button" value="{$APP.LBL_ADD_NEW} {$APP.LBL_ATTACHMENT}"></td>
{elseif $header eq 'Quotes'}
<input title="{$APP.LBL_ADD_NEW} {$APP.Quote}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='Quotes'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Quote}"></td>
{elseif $header eq 'Invoice'}
@@ -90,17 +98,17 @@
<input title="{$APP.LBL_ADD_NEW} {$APP.SalesOrder}" accessyKey="F" class="crmbutton small create" onclick="this.form.action.value='EditView';this.form.module.value='SalesOrder'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.SalesOrder}"></td>
{/if}
{elseif $header eq 'Purchase Order'}
- <input title="{$APP.LBL_ADD_NEW} {$APP.PurchaseOrder}" accessyKey="O" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.module.value='PurchaseOrder'; this.form.return_module.value='{$MODULE}'; this.form.return_action.value='CallRelatedList'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.PurchaseOrder}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.PurchaseOrder}" accessyKey="O" class="crmbutton small create" onclick="this.form.action.value='EditView'; this.form.module.value='PurchaseOrder'; this.form.return_module.value='{$MODULE}'; this.form.return_action.value='{$return_modname}'" type="submit" name="button" value="{$APP.LBL_ADD_NEW} {$APP.PurchaseOrder}"></td>
{elseif $header eq 'Emails'}
<input type="hidden" name="email_directing_module">
<input type="hidden" name="record">
- <input title="{$APP.LBL_ADD_NEW} {$APP.Email}" accessyKey="F" class="crmbutton small create" onclick="fnvshobj(this,'sendmail_cont');sendmail('{$MODULE}',{$id});" type="button" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Email}"></td>
+ <input title="{$APP.LBL_ADD_NEW} {$APP.Email}" accessyKey="F" class="crmbutton small create" onclick="fnvshobj(this,'sendmail_cont');sendmail('{$MODULE}',{$ID});" type="button" name="button" value="{$APP.LBL_ADD_NEW} {$APP.Email}"></td>
{elseif $header eq 'Users'}
{if $MODULE eq 'Calendar'}
- <input title="Change" accessKey="" tabindex="2" type="button" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="button" LANGUAGE=javascript onclick='return window.open("index.php?module=Users&return_module=Calendar&return_action=CallRelatedList&activity_mode=Events&action=Popup&popuptype=detailview&form=EditView&form_submit=true&select=enable&return_id={$id}&recordid={$ID}","test","width=640,height=525,resizable=0,scrollbars=0")';>
+ <input title="Change" accessKey="" tabindex="2" type="button" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="button" LANGUAGE=javascript onclick='return window.open("index.php?module=Users&return_module=Calendar&return_action={$return_modname}&activity_mode=Events&action=Popup&popuptype=detailview&form=EditView&form_submit=true&select=enable&return_id={$ID}&recordid={$ID}","test","width=640,height=525,resizable=0,scrollbars=0")';>
{elseif $MODULE eq 'Emails'}
<input title="{$APP.LBL_BULK_MAILS}" accessykey="F" class="crmbutton small create" onclick="this.form.action.value='sendmail';this.form.return_action.value='DetailView';this.form.module.value='Emails';this.form.return_module.value='Emails';" name="button" value="{$APP.LBL_BULK_MAILS}" type="submit">
- <input title="Change" accesskey="" tabindex="2" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="Button" language="javascript" onclick='return window.open("index.php?module=Users&return_module=Emails&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=true&return_id={$id}&recordid={$ID}","test","width=640,height=520,resizable=0,scrollbars=0");' type="button"> </td>
+ <input title="Change" accesskey="" tabindex="2" class="crmbutton small edit" value="{$APP.LBL_SELECT_USER_BUTTON_LABEL}" name="Button" language="javascript" onclick='return window.open("index.php?module=Users&return_module=Emails&action=Popup&popuptype=detailview&select=enable&form=EditView&form_submit=true&return_id={$ID}&recordid={$ID}","test","width=640,height=520,resizable=0,scrollbars=0");' type="button"> </td>
{/if}
{elseif $header eq 'Activity History'}
</td>
Modified: vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/RelatedListsHidden.tpl Wed Aug 23 22:55:50 2006
@@ -16,9 +16,13 @@
<input type="hidden" name="module">
<input type="hidden" name="mode">
<input type="hidden" name="return_module" id="return_module" value="{$MODULE}">
-<input type="hidden" name="return_action" value="CallRelatedList">
-<input type="hidden" name="return_id" value="{$id}">
-<input type="hidden" name="parent_id" id="parent_id" value="{$id}">
+{if $SinglePane_View eq 'true'}
+ <input type="hidden" name="return_action" value="DetailView">
+{else}
+ <input type="hidden" name="return_action" value="CallRelatedList">
+{/if}
+<input type="hidden" name="return_id" value="{$ID}">
+<input type="hidden" name="parent_id" id="parent_id" value="{$ID}">
<input type="hidden" name="parenttab" id="parenttab" value="{$CATEGORY}">
<input type="hidden" name="action">
{if $MODULE eq 'Calendar'}
@@ -26,40 +30,40 @@
<input type="hidden" name="user_id" value="{$USER_ID}">
<input type="hidden" name="record" value="{$ID}">
{elseif $MODULE eq 'Accounts'}
- <input type="hidden" name="account_id" value="{$id}">
+ <input type="hidden" name="account_id" value="{$ID}">
{$HIDDEN_PARENTS_LIST}
{elseif $MODULE eq 'Contacts'}
- <input type="hidden" name="contact_id" value="{$id}">
+ <input type="hidden" name="contact_id" value="{$ID}">
<input type="hidden" name="account_id" value="{$accountid}">
<input type="hidden" name="campaignid" value="{$campaignid}">
{$HIDDEN_PARENTS_LIST}
{elseif $MODULE eq 'Campaigns'}
- <input type="hidden" name="campaignid" value="{$id}">
+ <input type="hidden" name="campaignid" value="{$ID}">
{elseif $MODULE eq 'Leads'}
- <input type="hidden" name="lead_id" value="{$id}">
+ <input type="hidden" name="lead_id" value="{$ID}">
<input type="hidden" name="campaignid" value="{$campaignid}">
{$HIDDEN_PARENTS_LIST}
{elseif $MODULE eq 'Potentials'}
- <input type="hidden" name="potential_id" value="{$id}">
+ <input type="hidden" name="potential_id" value="{$ID}">
{elseif $MODULE eq 'Quotes'}
- <input type="hidden" name="quoteid" value="{$id}">
+ <input type="hidden" name="quoteid" value="{$ID}">
{elseif $MODULE eq 'SalesOrder'}
- <input type="hidden" name="salesorderid" value="{$id}">
+ <input type="hidden" name="salesorderid" value="{$ID}">
{elseif $MODULE eq 'PurchaseOrder'}
- <input type="hidden" name="purchaseorderid" value="{$id}">
+ <input type="hidden" name="purchaseorderid" value="{$ID}">
{elseif $MODULE eq 'Invoice'}
- <input type="hidden" name="invoiceid" value="{$id}">
+ <input type="hidden" name="invoiceid" value="{$ID}">
{elseif $MODULE eq 'Products'}
- <input type="hidden" name="product_id" value="{$id}">
+ <input type="hidden" name="product_id" value="{$ID}">
{elseif $MODULE eq 'Vendors'}
- <input type="hidden" name="vendor_id" value="{$id}">
+ <input type="hidden" name="vendor_id" value="{$ID}">
{elseif $MODULE eq 'PriceBooks'}
- <input type="hidden" name="pricebook_id" value="{$id}">
+ <input type="hidden" name="pricebook_id" value="{$ID}">
{elseif $MODULE eq 'Emails'}
- <input type="hidden" name="email_id" value="{$id}">
+ <input type="hidden" name="email_id" value="{$ID}">
<input type="hidden" name="user_id" value="{$USER_ID}">
<input type="hidden" name="record" value="{$ID}">
{elseif $MODULE eq 'HelpDesk'}
- <input type="hidden" name="ticket_id" value="{$id}">
+ <input type="hidden" name="ticket_id" value="{$ID}">
{/if}
Modified: vtigercrm/trunk/Smarty/templates/SetMenu.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/SetMenu.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/SetMenu.tpl Wed Aug 23 22:55:50 2006
@@ -70,6 +70,12 @@
<tr><td class="settingsTabSelected" nowrap><a href="index.php?module=Users&action=ListLoginHistory&parenttab=Settings">{$MOD.LBL_LOGIN_HISTORY_DETAILS}</a></td></tr>
{else}
<tr><td class="settingsTabList" nowrap><a href="index.php?module=Users&action=ListLoginHistory&parenttab=Settings">{$MOD.LBL_LOGIN_HISTORY_DETAILS}</a></td></tr>
+ {/if}
+
+ {if $smarty.request.action eq 'DefModuleView'}
+ <tr><td class="settingsTabSelected" nowrap><a href="index.php?module=Users&action=DefModuleView&parenttab=Settings">{$MOD.LBL_DEFAULT_MODULE_VIEW}</a></td></tr>
+ {else}
+ <tr><td class="settingsTabList" nowrap><a href="index.php?module=Users&action=DefModuleView&parenttab=Settings">{$MOD.LBL_DEFAULT_MODULE_VIEW}</a></td></tr>
{/if}
<tr><td class="settingsTabHeader" nowrap>{$MOD.LBL_STUDIO}</td></tr>
Modified: vtigercrm/trunk/Smarty/templates/Settings.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Settings.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Settings.tpl Wed Aug 23 22:55:50 2006
@@ -155,6 +155,21 @@
</tr>
</table>
+ </td>
+ <!-- Row 3 -->
+ <tr>
+ <td width=25% valign=top>
+ <!-- icon 9-->
+ <table border=0 cellspacing=0 cellpadding=5 width=100%>
+ <tr>
+ <td rowspan=2 valign=top><a href="index.php?module=Users&action=DefModuleView&parenttab=Settings"><img src="{$IMAGE_PATH}" alt="{$MOD.LBL_DEFAULT_MODULE_VIEW}" width="48" height="48" border=0 title="{$MOD.LBL_DEFAULT_MODULE_VIEW}"></a></td>
+ <td class=big valign=top><a href="index.php?module=Users&action=DefModuleView&parenttab=Settings">{$MOD.LBL_DEFAULT_MODULE_VIEW}</a></td>
+ </tr>
+ <tr>
+ <td class="small" valign=top>{$MOD.LBL_DEFAULT_MODULE_VIEW_DESC}</td>
+ </tr>
+
+ </table>
</td>
</tr>
</table>
More information about the vtigercrm-commits
mailing list