mirror of
https://github.com/itflow-org/itflow
synced 2026-11-19 02:47:26 +00:00
Tickets: booked work has an end - the Schedule window has How long from 15 minutes to a day and an Agent picker that gives the ticket to someone else and takes it off the old agent's calendar; New Ticket's Schedule and a recurring ticket's Book the work for take a length; the calendar draws each booking at its length and dragging its bottom edge changes it after asking; the booking email, calendar file, ticket and guest page show the end; the double-booking warning lists the agent's tickets and timed events that overlap the booking instead of anything within two hours; database 3.8.2 adds tickets.ticket_schedule_end and recurring_tickets.recurring_ticket_schedule_minutes; 26.11.9 changelog entries
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
/*
|
||||
* The Schedule tab's booking and making ahead, in New and Edit Recurring
|
||||
* Ticket (agent/modals/recurring_ticket/) - the time and visit each ticket is
|
||||
* booked for, and how many days ahead it is made (functions/ticket.php). Set
|
||||
* Ticket (agent/modals/recurring_ticket/) - the time, length and visit each
|
||||
* ticket is booked for, and how many days ahead it is made (functions/ticket.php). Set
|
||||
* $ahead_row to the recurring ticket when editing, null for a new one. Only
|
||||
* after the 3.7.7 update. Saved by recurringTicketFromPost()
|
||||
* (agent/post/recurring_ticket.php).
|
||||
@@ -14,6 +14,7 @@ isset($mysqli) || die("Direct file access is not allowed");
|
||||
if (recurringAheadReady()) {
|
||||
$ahead_time = substr((string) ($ahead_row['recurring_ticket_schedule_time'] ?? ''), 0, 5);
|
||||
$ahead_onsite = intval($ahead_row['recurring_ticket_schedule_onsite'] ?? 0);
|
||||
$ahead_minutes = intval($ahead_row['recurring_ticket_schedule_minutes'] ?? CALENDAR_TICKET_MINUTES) ?: CALENDAR_TICKET_MINUTES;
|
||||
$ahead_days = intval($ahead_row['recurring_ticket_lead_days'] ?? 0);
|
||||
$ahead_mode = ($ahead_row['recurring_ticket_lead_mode'] ?? '') === 'month' ? 'month' : 'days';
|
||||
$ahead_next = $ahead_row ? substr((string) $ahead_row['recurring_ticket_next_run'], 0, 10) : '';
|
||||
@@ -25,12 +26,19 @@ if (recurringAheadReady()) {
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-clock"></i></span>
|
||||
<input type="time" class="form-control" name="schedule_time" step="900" value="<?= escapeHtml($ahead_time) ?>">
|
||||
<select class="form-select select2" name="schedule_onsite">
|
||||
<?php if (ticketScheduleEndReady()) { ?>
|
||||
<select class="form-select select2" name="schedule_minutes" aria-label="How long">
|
||||
<?php foreach (ticketScheduleLengths($ahead_minutes) as $minutes => $label) { ?>
|
||||
<option value="<?= intval($minutes) ?>" <?= intval($minutes) === $ahead_minutes ? 'selected' : '' ?>><?= escapeHtml($label) ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<?php } ?>
|
||||
<select class="form-select select2" name="schedule_onsite" aria-label="Visit">
|
||||
<option value="0" <?= $ahead_onsite ? '' : 'selected' ?>>Remote</option>
|
||||
<option value="1" <?= $ahead_onsite ? 'selected' : '' ?>>Onsite</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-text">Each ticket is booked for its run day at this time, with the emails and calendar invite booking it on the ticket sends. Leave it empty to book nothing.</div>
|
||||
<div class="form-text">Each ticket is booked for its run day at this time, for this long, with the emails and calendar invite booking it on the ticket sends. Leave the time empty to book nothing.</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
|
||||
Reference in New Issue
Block a user