Add Reject button for nearest hub section of job order dispatch #183
This commit is contained in:
parent
1b6f26d07f
commit
54bc9455a1
1 changed files with 12 additions and 2 deletions
|
|
@ -561,7 +561,9 @@
|
||||||
-->
|
-->
|
||||||
<th class="text-right">Available Riders</th>
|
<th class="text-right">Available Riders</th>
|
||||||
<th class="text-right">Jobs For Assignment</th>
|
<th class="text-right">Jobs For Assignment</th>
|
||||||
<th>Contact Numbers</th> </tr>
|
<th>Contact Numbers</th>
|
||||||
|
<th>Action</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr class="placeholder-row{{ hubs|length > 0 ? ' hide' }}">
|
<tr class="placeholder-row{{ hubs|length > 0 ? ' hide' }}">
|
||||||
|
|
@ -581,6 +583,9 @@
|
||||||
<td class="text-right">{{ hub.rider_count }}</td>
|
<td class="text-right">{{ hub.rider_count }}</td>
|
||||||
<td class="text-right">{{ hub.jo_count }}</td>
|
<td class="text-right">{{ hub.jo_count }}</td>
|
||||||
<td>{{ hub.hub.getContactNumbers|replace({"\n": ', '}) }}</td>
|
<td>{{ hub.hub.getContactNumbers|replace({"\n": ', '}) }}</td>
|
||||||
|
<td>
|
||||||
|
<button type="button" class="button-reject btn btn-primary">Reject</button>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
@ -804,7 +809,7 @@
|
||||||
<button type="submit" class="btn btn-success">{{ mode == 'update-fulfillment' ? 'Fulfill' : 'Submit' }}</button>
|
<button type="submit" class="btn btn-success">{{ mode == 'update-fulfillment' ? 'Fulfill' : 'Submit' }}</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if ftags.set_map_coordinate and is_granted('joborder.cancel') and not obj.isCancelled %}
|
{% if ftags.set_map_coordinate and is_granted('joborder.cancel') and not obj.isCancelled %}
|
||||||
<a href="{{ url('jo_cancel', {'id': obj.getID}) }}" class="btn btn-danger btn-cancel-job-order">Cancel Job Order</button>
|
<a href="{{ url('jo_cancel', {'id': obj.getID}) }}" class="btn btn-danger btn-cancel-job-order">Cancel Job Order</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if mode != 'create' %}
|
{% if mode != 'create' %}
|
||||||
<a href="{{ return_url }}" class="btn btn-secondary">Back</a>
|
<a href="{{ return_url }}" class="btn btn-secondary">Back</a>
|
||||||
|
|
@ -1469,6 +1474,11 @@ $(function() {
|
||||||
var ticketTable = $("#data-tickets").mDatatable(ticketOptions);
|
var ticketTable = $("#data-tickets").mDatatable(ticketOptions);
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
// reject job order
|
||||||
|
$(".button-reject").click(function(e) {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
// cancel job order
|
// cancel job order
|
||||||
$(".btn-cancel-job-order").click(function(e) {
|
$(".btn-cancel-job-order").click(function(e) {
|
||||||
var url = $(this).prop('href');
|
var url = $(this).prop('href');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue