[Vtigercrm-commits] [vtiger-commits] r5302 - in /vtigercrm/trunk/Smarty/templates: CreateProfile.tpl CreateProfile1.tpl EditProfile.tpl ProfileDetailView.tpl UserProfile.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Apr 24 13:04:10 EDT 2006


Author: don
Date: Mon Apr 24 11:04:03 2006
New Revision: 5302

Log:
Issue in Profile Parenttab has been fixed

Modified:
    vtigercrm/trunk/Smarty/templates/CreateProfile.tpl
    vtigercrm/trunk/Smarty/templates/CreateProfile1.tpl
    vtigercrm/trunk/Smarty/templates/EditProfile.tpl
    vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl
    vtigercrm/trunk/Smarty/templates/UserProfile.tpl

Modified: vtigercrm/trunk/Smarty/templates/CreateProfile.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CreateProfile.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CreateProfile.tpl Mon Apr 24 11:04:03 2006
@@ -10,6 +10,7 @@
 <input type="hidden" name="module" value="Users">
 <input type="hidden" name="mode" value="{$MODE}">
 <input type="hidden" name="action" value="CreateProfile1">
+<input type="hidden" name="parenttab" value="Settings">
 <tr>
 <td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br />
 <span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_PROFILES}</b></span>
@@ -30,18 +31,18 @@
 <tr>
 <td align="right" width="50%" style="padding-right:10px;">{$CMOD.LBL_NEW_PROFILE_NAME}</td>
 
-<td width="50%" align="left" style="padding-left:10px;"><input type="text" name="profile_name" id="pobox" value="{$PROFILE_NAME}" class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"/></td>
+<td width="50%" align="left" style="padding-left:10px;"><input type="text" name="profile_name" id="pobox" value="" class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"/></td>
 </tr>
 <tr>
 <td align="right" style="padding-right:10px;">{$CMOD.LBL_DESCRIPTION}</td>
-<td align="left" style="padding-left:10px;"><textarea name="profile_description" class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'">{$PROFILE_DESCRIPTION}</textarea></td>
+<td align="left" style="padding-left:10px;"><textarea name="profile_description" class="detailedViewTextBox" onFocus="this.className='detailedViewTextBoxOn'" onBlur="this.className='detailedViewTextBox'"></textarea></td>
 </tr>
 <tr><td colspan="2" style="border-bottom:1px dashed #CCCCCC;">&nbsp;</td></tr>
 <tr>
 
 <td colspan="2" align="right">
 <input type="button" value=" &lsaquo; Back " name="back" disabled />&nbsp;&nbsp;
-<input type="submit" value=" Next &rsaquo; " accessKey="N" class="button" name="Next"/>&nbsp;&nbsp;
+<input type="submit" value=" Next &rsaquo; " accessKey="N" class="button" name="Next" onClick="return rolevalidate();"/>&nbsp;&nbsp;
 <input type="button" value=" Cancel " name="Cancel" onClick="window.history.back()";/>
 
 </td>
@@ -64,4 +65,18 @@
 </tr>
 </table>
 	{include file='SettingsSubMenu.tpl'}
-
+<script>
+function rolevalidate()
+{ldelim}
+    var profilename = document.getElementById('pobox').value;
+    profilename = profilename.replace(/ /gi,'',profilename);
+    if(profilename != '')
+        return true;
+    else
+    {ldelim}
+        alert('Enter The Profile name');
+        document.getElementById('pobox').focus();
+        return false;
+    {rdelim}
+{rdelim}
+</script>

Modified: vtigercrm/trunk/Smarty/templates/CreateProfile1.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CreateProfile1.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CreateProfile1.tpl Mon Apr 24 11:04:03 2006
@@ -12,6 +12,7 @@
 <input type="hidden" name="profile_description" value="{$PROFILE_DESCRIPTION}">
 <input type="hidden" name="mode" value="{$MODE}">
 <input type="hidden" name="action" value="profilePrivileges">
+<input type="hidden" name="parenttab" value="Settings">
 <tr>
 <td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br />
 <span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_PROFILES}</b></span>

Modified: vtigercrm/trunk/Smarty/templates/EditProfile.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/EditProfile.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/EditProfile.tpl Mon Apr 24 11:04:03 2006
@@ -34,6 +34,7 @@
 	</table>
 	<form action="index.php" method="post" name="new" id="form">
 	<input type="hidden" name="module" value="Users">		
+	<input type="hidden" name="parenttab" value="Settings">
 	<input type="hidden" name="action" value="{$ACTION}">		
 	<input type="hidden" name="mode" value="{$MODE}">	
 	<input type="hidden" name="profileid" value="{$PROFILEID}">

Modified: vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ProfileDetailView.tpl Mon Apr 24 11:04:03 2006
@@ -35,6 +35,7 @@
 	<form action="index.php" method="post" name="new" id="form">
 	<input type="hidden" name="module" value="Users">		
 	<input type="hidden" name="action" value="profilePrivileges">		
+	<input type="hidden" name="parenttab" value="Settings">
 	<input type="hidden" name="return_action" value="profilePrivileges">		
 	<input type="hidden" name="mode" value="edit">	
 	<input type="hidden" name="profileid" value="{$PROFILEID}">	

Modified: vtigercrm/trunk/Smarty/templates/UserProfile.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserProfile.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserProfile.tpl Mon Apr 24 11:04:03 2006
@@ -10,6 +10,7 @@
 <input type="hidden" name="module" value="Users">
 <input type="hidden" name="mode" value="create">
 <input type="hidden" name="action" value="CreateProfile">
+<input type="hidden" name="parenttab" value="Settings">
 <tr>
 <td class="showPanelBg" valign="top" width="100%" colspan="3" style="padding-left:20px; "><br />
 <span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS} </a> > {$MOD.LBL_USER_MANAGEMENT} > {$MOD.LBL_PROFILES}</b></span>





More information about the vtigercrm-commits mailing list