profile: added email signature to outgoing mail and profile settings
This commit is contained in:
parent
ab20c49a93
commit
be919b3855
@ -1,4 +1,8 @@
|
||||
erpnext.updates = [
|
||||
["26th November 2012", [
|
||||
"Email: Added User Signature",
|
||||
"Support Ticket: Added link to Lead / Contact. If incoming ticket is not from an existing Lead / Contact, create a new Lead",
|
||||
]],
|
||||
["24ht November 2012", [
|
||||
"Support Ticket: Support Ticket Response is now Communication",
|
||||
]],
|
||||
|
@ -70,6 +70,8 @@ MyProfile = function(wrapper) {
|
||||
fields: [
|
||||
{fieldname:'first_name', fieldtype:'Data',label:'First Name',reqd:1},
|
||||
{fieldname:'last_name', fieldtype:'Data',label:'Last Name'},
|
||||
{fieldname:'email_signature', fieldtype:'Text',label:'Email Signature',
|
||||
decription:'Will be appended to outgoing mail'},
|
||||
{fieldname:'bio', fieldtype:'Text',label:'Bio'},
|
||||
{fieldname:'update', fieldtype:'Button',label:'Update'}
|
||||
]
|
||||
|
@ -63,6 +63,7 @@ def set_user_details(arg=None):
|
||||
arg_dict = load_json(arg)
|
||||
if not 'bio' in arg_dict: arg_dict['bio'] = None
|
||||
if not 'last_name' in arg_dict: arg_dict['last_name'] = None
|
||||
if not 'email_signature' in arg_dict: arg_dict['email_signature'] = None
|
||||
p.fields.update(arg_dict)
|
||||
p.save()
|
||||
webnotes.msgprint('Updated')
|
||||
|
@ -22,7 +22,7 @@ erpnext.toolbar.setup = function() {
|
||||
erpnext.toolbar.add_modules();
|
||||
|
||||
// profile
|
||||
$('#toolbar-user').append('<li><a href="#!profile-settings">Profile Settings</a></li>');
|
||||
$('#toolbar-user').append('<li><a href="#!profile-settings">My Settings...</a></li>');
|
||||
|
||||
$('.navbar .pull-right').append('\
|
||||
<li><a href="#!messages" title="Unread Messages"><span class="navbar-new-comments"></span></a></li>');
|
||||
|
Loading…
Reference in New Issue
Block a user