mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Replaces Terminated with Dismissed as default rank removal
This commit is contained in:
@@ -279,7 +279,7 @@
|
|||||||
|
|
||||||
if ("terminate")
|
if ("terminate")
|
||||||
if (is_authenticated())
|
if (is_authenticated())
|
||||||
modify.assignment = "Demoted" //VOREStation Edit
|
modify.assignment = "Dismissed" //VOREStation Edit: setting adjustment
|
||||||
modify.access = list()
|
modify.access = list()
|
||||||
|
|
||||||
callHook("terminate_employee", list(modify))
|
callHook("terminate_employee", list(modify))
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
computer.proc_eject_id(user)
|
computer.proc_eject_id(user)
|
||||||
if("terminate")
|
if("terminate")
|
||||||
if(computer && can_run(user, 1))
|
if(computer && can_run(user, 1))
|
||||||
id_card.assignment = "Demoted" //VOREStation Edit: setting adjustment
|
id_card.assignment = "Dismissed" //VOREStation Edit: setting adjustment
|
||||||
id_card.access = list()
|
id_card.access = list()
|
||||||
callHook("terminate_employee", list(id_card))
|
callHook("terminate_employee", list(id_card))
|
||||||
if("edit")
|
if("edit")
|
||||||
|
|||||||
@@ -126,10 +126,10 @@
|
|||||||
<div class='item'>
|
<div class='item'>
|
||||||
<div class='itemLabel'>
|
<div class='itemLabel'>
|
||||||
<!-- VOREStation Edit Start -->
|
<!-- VOREStation Edit Start -->
|
||||||
Demotions:
|
Dismissals:
|
||||||
</div>
|
</div>
|
||||||
<div class='itemContent'>
|
<div class='itemContent'>
|
||||||
{{:helper.link('Demote ' + data.target_owner, 'gear', {'choice' : 'terminate'}, data.target_rank == "Demoted" ? 'disabled' : null, data.target_rank == "Demoted" ? 'disabled' : 'linkDanger')}}
|
{{:helper.link('Dismiss ' + data.target_owner, 'gear', {'choice' : 'terminate'}, data.target_rank == "Dismissed" ? 'disabled' : null, data.target_rank == "Dismissed" ? 'disabled' : 'linkDanger')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- VOREStation Edit End -->
|
<!-- VOREStation Edit End -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -56,10 +56,10 @@
|
|||||||
<div class='item'>
|
<div class='item'>
|
||||||
<div class='itemLabel'>
|
<div class='itemLabel'>
|
||||||
<!-- VOREStation Edit Start -->
|
<!-- VOREStation Edit Start -->
|
||||||
Demotions:
|
Dismissals:
|
||||||
</div>
|
</div>
|
||||||
<div class='itemContent'>
|
<div class='itemContent'>
|
||||||
{{:helper.link('Demote ' + data.id_owner, 'gear', {'action' : 'terminate'}, data.id_rank == "Demoted" ? 'disabled' : null, data.id_rank == "Demoted" ? 'disabled' : 'linkDanger')}}
|
{{:helper.link('Dismiss ' + data.id_owner, 'gear', {'action' : 'terminate'}, data.id_rank == "Dismissed" ? 'disabled' : null, data.id_rank == "Dismissed" ? 'disabled' : 'linkDanger')}}
|
||||||
</div>
|
</div>
|
||||||
<!-- VOREStation Edit End -->
|
<!-- VOREStation Edit End -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user