Make Profile Last Name optional in profile settings
This commit is contained in:
parent
a31fd1080b
commit
07d8570c80
@ -48,9 +48,8 @@ pscript.myc_add_user = function() {
|
|||||||
reqd: 1,
|
reqd: 1,
|
||||||
label: 'Email Id of the user to add'
|
label: 'Email Id of the user to add'
|
||||||
}];
|
}];
|
||||||
console.log(pscript.is_erpnext_saas);
|
|
||||||
|
|
||||||
if(pscript.is_erpnext_saas==0) {
|
if(!pscript.is_erpnext_saas) {
|
||||||
fields = fields.concat([
|
fields = fields.concat([
|
||||||
{
|
{
|
||||||
fieldtype: 'Data',
|
fieldtype: 'Data',
|
||||||
@ -61,7 +60,6 @@ pscript.myc_add_user = function() {
|
|||||||
{
|
{
|
||||||
fieldtype: 'Data',
|
fieldtype: 'Data',
|
||||||
fieldname: 'last_name',
|
fieldname: 'last_name',
|
||||||
reqd: 1,
|
|
||||||
label: 'Last Name'
|
label: 'Last Name'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -78,8 +76,6 @@ pscript.myc_add_user = function() {
|
|||||||
fieldname: 'add'
|
fieldname: 'add'
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(fields);
|
|
||||||
|
|
||||||
var d = new wn.widgets.Dialog({
|
var d = new wn.widgets.Dialog({
|
||||||
title: 'Add User',
|
title: 'Add User',
|
||||||
width: 400,
|
width: 400,
|
||||||
|
@ -36,7 +36,7 @@ MyProfile = function(wrapper) {
|
|||||||
this.form = new wn.widgets.FieldGroup()
|
this.form = new wn.widgets.FieldGroup()
|
||||||
this.form.make_fields(div, [
|
this.form.make_fields(div, [
|
||||||
{fieldname:'first_name', fieldtype:'Data',label:'First Name',reqd:1},
|
{fieldname:'first_name', fieldtype:'Data',label:'First Name',reqd:1},
|
||||||
{fieldname:'last_name', fieldtype:'Data',label:'Last Name',reqd:1},
|
{fieldname:'last_name', fieldtype:'Data',label:'Last Name'},
|
||||||
{fieldname:'bio', fieldtype:'Text',label:'Bio'},
|
{fieldname:'bio', fieldtype:'Text',label:'Bio'},
|
||||||
{fieldname:'update', fieldtype:'Button',label:'Update'}
|
{fieldname:'update', fieldtype:'Button',label:'Update'}
|
||||||
]);
|
]);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>ERPNext</title>
|
<title>ERPNext</title>
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
<script type="text/javascript">window._version_number="356"
|
<script type="text/javascript">window._version_number="358"
|
||||||
|
|
||||||
wn={}
|
wn={}
|
||||||
wn.provide=function(namespace){var nsl=namespace.split('.');var l=nsl.length;var parent=window;for(var i=0;i<l;i++){var n=nsl[i];if(!parent[n]){parent[n]={}}
|
wn.provide=function(namespace){var nsl=namespace.split('.');var l=nsl.length;var parent=window;for(var i=0;i<l;i++){var n=nsl[i];if(!parent[n]){parent[n]={}}
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user