[Vtigercrm-commits] [vtiger-commits] r5241 - /vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 21 10:50:48 EDT 2006


Author: saraj
Date: Fri Apr 21 08:50:44 2006
New Revision: 5241

Log:
Fixed the Default Folder Selection for Edit Email Template - Ahmed

Modified:
    vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl

Modified: vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl Fri Apr 21 08:50:44 2006
@@ -144,10 +144,20 @@
 								<br />
 								<textarea name="description" cols="30" rows="3" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" tabindex="2" >{$DESCRIPTION}</textarea>
 								<br />
-								<select name="foldername" class="detailedViewTextBox" tabindex="3" value="{$FOLDERNAME}">
-									<option value="Personal">{$UMOD.LBL_PERSONAL}</option>
-									<option value="Public" selected>{$UMOD.LBL_PUBLIC}</option>
-								</select>
+								<select name="foldername" class="detailedViewTextBox" tabind
+ex="3">
+                                                                {foreach item=arr from=$FOLDERNAME}
+
+                                                                 <option value="{$FOLDERNAME}" {$arr}>{$FOLDERNAME}</option>
+
+                                                                        {if $FOLDERNAME == 'Public'}
+                                                                                <option value="Personal">Personal</option>
+                                                                        {else}
+                                                                                <option value="Public">Public</option>
+                                                                        {/if}
+
+                                                                {/foreach}
+                                                                </select>
 							</td>
 						</tr>
 					</table>





More information about the vtigercrm-commits mailing list