[Vtigercrm-commits] [vtiger-commits] r6132 - in /vtigercrm/trunk/Smarty/templates: MyPrefEditView.tpl RolePopup.tpl UserEditView.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 17 15:17:55 EDT 2006


Author: don
Date: Wed May 17 13:17:50 2006
New Revision: 6132

Log:
Role Popup done

Added:
    vtigercrm/trunk/Smarty/templates/RolePopup.tpl   (with props)
Modified:
    vtigercrm/trunk/Smarty/templates/MyPrefEditView.tpl
    vtigercrm/trunk/Smarty/templates/UserEditView.tpl

Modified: vtigercrm/trunk/Smarty/templates/MyPrefEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/MyPrefEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/MyPrefEditView.tpl Wed May 17 13:17:50 2006
@@ -22,6 +22,10 @@
         ColorPicker_targetInput.value = color;
         ColorPicker_targetInput.style.backgroundColor = color;
 {rdelim}
+
+function openPopup(){ldelim}
+                window.open("index.php?module=Users&action=UsersAjax&file=RolePopup&parenttab=Settings","roles_popup_window","height=425,width=640,toolbar=no,menubar=no,dependent=yes,resizable =no");
+        {rdelim}
 </script>
 <style type="text/css">@import url(themes/blue/style.css);</style>
 
@@ -104,7 +108,13 @@
                                     <tr>
                                         <td class="dvtCellLabel" align="right">
 						<span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_MY} {$UMOD.LBL_USER_ROLE}</td>
-                                        <td class="dvtCellInfo">{$USER_ROLE}</td>
+                                        <td class="dvtCellInfo">
+					<input type="text" name="role_name"  id="role_name" value="{$ROLENAME}" class="txtBox" readonly="readonly">&nbsp;
+                                        {$ROLEPOPUPBUTTON}
+                                        <input type="hidden" name="user_role" id="user_role" value="{$USERROLE}">
+                                        </td>
+
+
                                         <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_EMAIL}</td>
                                    	 <td class="dvtCellInfo"><input type="text" name="email1" value='{$EMAIL1}' class="detailedViewTextBox"  onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" /></td>
                                     </tr>

Modified: vtigercrm/trunk/Smarty/templates/UserEditView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserEditView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserEditView.tpl Wed May 17 13:17:50 2006
@@ -22,6 +22,10 @@
 	ColorPicker_targetInput.value = color;
         ColorPicker_targetInput.style.backgroundColor = color;
 {rdelim}	
+
+function openPopup(){ldelim}
+		window.open("index.php?module=Users&action=UsersAjax&file=RolePopup&parenttab=Settings","roles_popup_window","height=425,width=640,toolbar=no,menubar=no,dependent=yes,resizable =no");
+	{rdelim}	
 </script>	
 
 <table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -126,7 +130,11 @@
 				 </tr>
 				 <tr>
 				    <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_USER_ROLE}</td>
-				    <td class="dvtCellInfo">{$USER_ROLE}</td>
+				    <td class="dvtCellInfo"><!-- {$USER_ROLE} -->
+							<input type="text" name="role_name"  id="role_name" value="{$ROLENAME}" class="txtBox" readonly="readonly">&nbsp;
+							{$ROLEPOPUPBUTTON}
+							<input type="hidden" name="user_role" id="user_role" value="{$USERROLE}">
+					</td>
 
 
 				   <td class="dvtCellLabel" align="right"><span class="style1"><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font></span>{$UMOD.LBL_EMAIL}</td>





More information about the vtigercrm-commits mailing list