diff --git a/code/game/machinery/ARES/ARES_procs.dm b/code/game/machinery/ARES/ARES_procs.dm index b636934640bb..142fae44a212 100644 --- a/code/game/machinery/ARES/ARES_procs.dm +++ b/code/game/machinery/ARES/ARES_procs.dm @@ -984,8 +984,13 @@ GLOBAL_LIST_INIT(maintenance_categories, list( return TRUE if("new_access") + var/ticket_holder var/priority_report = FALSE - var/ticket_holder = tgui_input_text(operator, "Who is the ticket for? (Please use precise name, with punctuation and capitalisation.)", "Ticket Holder", encode = FALSE) + var/is_self = tgui_alert(operator, "Is this request for yourself?", "Ticket Holder", list("Yes", "No")) + if(is_self == "No") + ticket_holder = tgui_input_text(operator, "Who is the ticket for? (Please use precise name, with punctuation and capitalisation.)", "Ticket Holder", encode = FALSE) + else if(is_self == "Yes") + ticket_holder = last_login if(!ticket_holder) return FALSE var/details = tgui_input_text(operator, "What is the purpose of this access ticket?", "Ticket Details", encode = FALSE) diff --git a/tgui/packages/tgui/interfaces/WorkingJoe.js b/tgui/packages/tgui/interfaces/WorkingJoe.js index e4c97770066a..7413e321308a 100644 --- a/tgui/packages/tgui/interfaces/WorkingJoe.js +++ b/tgui/packages/tgui/interfaces/WorkingJoe.js @@ -721,25 +721,28 @@ const AccessRequests = (props, context) => { Time + + For + Details )} {access_tickets.map((ticket, i) => { - let view_status = 'Ticket is pending assignment.'; + let view_status = 'Access Ticket is pending assignment.'; let view_icon = 'circle-question'; if (ticket.status === 'assigned') { - view_status = 'Ticket is assigned.'; + view_status = 'Access Ticket is assigned.'; view_icon = 'circle-plus'; } else if (ticket.status === 'rejected') { - view_status = 'Ticket has been rejected.'; + view_status = 'Access Ticket has been rejected.'; view_icon = 'circle-xmark'; } else if (ticket.status === 'cancelled') { - view_status = 'Ticket was cancelled by reporter.'; + view_status = 'Access Ticket was cancelled by reporter.'; view_icon = 'circle-stop'; } else if (ticket.status === 'completed') { - view_status = 'Ticket has been successfully resolved.'; + view_status = 'Access Ticket has been successfully resolved.'; view_icon = 'circle-check'; } let can_cancel = 'Yes'; @@ -764,6 +767,9 @@ const AccessRequests = (props, context) => { {ticket.time} + + {ticket.title} + {ticket.details}