added job application
This commit is contained in:
parent
73f84176f0
commit
3074c89ffd
41
hr/doctype/job_applicant/job_applicant_list.js
Normal file
41
hr/doctype/job_applicant/job_applicant_list.js
Normal file
@ -0,0 +1,41 @@
|
||||
// render
|
||||
wn.doclistviews['Job Applicant'] = wn.views.ListView.extend({
|
||||
init: function(d) {
|
||||
this._super(d)
|
||||
this.fields = this.fields.concat([
|
||||
"`tabSupport Ticket`.status",
|
||||
'`tabSupport Ticket`.modified_by'
|
||||
|
||||
]);
|
||||
this.stats = this.stats.concat(['status']);
|
||||
this.show_hide_check_column();
|
||||
},
|
||||
|
||||
label_style: {
|
||||
"status": {
|
||||
"Open": "danger",
|
||||
"Hold": "info",
|
||||
"Rejected": "plain",
|
||||
}
|
||||
},
|
||||
|
||||
prepare_data: function(data) {
|
||||
this._super(data);
|
||||
|
||||
data.label_style = this.label_style.status[data.status];
|
||||
if(data.label_style=="danger")
|
||||
data.label_style = "important"
|
||||
|
||||
data.status_html = repl('<span class="label \
|
||||
label-%(label_style)s">%(status)s</span>', data);
|
||||
},
|
||||
|
||||
columns: [
|
||||
{width: '3%', content: 'check'},
|
||||
{width: '5%', content:'avatar_modified'},
|
||||
{width: '50%', content:'name'},
|
||||
{width: '30%', content:'status_html'},
|
||||
{width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}}
|
||||
]
|
||||
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user