|
|
@ -75,6 +75,10 @@ |
|
|
|
<t t-esc="dict(status.fields_get(allfields=['working_mode'])['working_mode']['selection'])[status.working_mode]"/> |
|
|
|
</p> |
|
|
|
|
|
|
|
<p t-if="status.super"> |
|
|
|
You are a Super Co-operator |
|
|
|
</p> |
|
|
|
|
|
|
|
<p> |
|
|
|
<label>Status:</label> |
|
|
|
<t t-esc="dict(status.fields_get(allfields=['status'])['status']['selection'])[status.status]"/> |
|
|
@ -123,6 +127,13 @@ |
|
|
|
</div> |
|
|
|
<div class="panel-body"> |
|
|
|
<t t-esc="shift.task_type_id.name"/> |
|
|
|
<button type="button" class="btn btn-default btn-sm pull-right" |
|
|
|
t-if="shift.super_coop_id" |
|
|
|
data-toggle="modal" |
|
|
|
t-att-data-target="'#super_coop-shift-%s' % shift.id"> |
|
|
|
<span class="fa fa-info" aria-hidden="true"></span> |
|
|
|
Super Co-operator Info |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -134,6 +145,7 @@ |
|
|
|
<th>Date</th> |
|
|
|
<th>Time</th> |
|
|
|
<th>Type of Shift</th> |
|
|
|
<th class="text-center">Super Co-operator Info</th> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
@ -152,11 +164,48 @@ |
|
|
|
<td> |
|
|
|
<t t-esc="shift.task_type_id.name"/> |
|
|
|
</td> |
|
|
|
<td class="text-center"> |
|
|
|
<button type="button" class="btn btn-default btn-sm" |
|
|
|
t-if="shift.super_coop_id" |
|
|
|
data-toggle="modal" |
|
|
|
t-att-data-target="'#super_coop-shift-%s' % shift.id"> |
|
|
|
<span class="fa fa-info" aria-hidden="true"></span> |
|
|
|
</button> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
|
|
|
|
<!-- Super Co-operator info modal --> |
|
|
|
<t t-foreach="subscribed_shifts" t-as="shift"> |
|
|
|
<div class="modal fade" t-if="shift.super_coop_id" t-att-id="'super_coop-shift-%s' % shift.id" tabindex="-1" role="dialog" |
|
|
|
t-att-aria-labelledby="'super_coop-shift-%s-label' % shift.id"> |
|
|
|
<div class="modal-dialog" role="document"> |
|
|
|
<div class="modal-content"> |
|
|
|
<div class="modal-header"> |
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
|
|
|
<span aria-hidden="true">×</span> |
|
|
|
</button> |
|
|
|
<h4 class="modal-title" t-att-id="'super_coop-shift-%s-label' % shift.id"> |
|
|
|
<t t-esc="shift.super_coop_id.name"/> |
|
|
|
</h4> |
|
|
|
</div> |
|
|
|
<div class="modal-body"> |
|
|
|
<i class="fa fa-phone" aria-hidden="true"></i> <t t-esc="shift.super_coop_id.phone"/><br/> |
|
|
|
<i class="fa fa-envelope" aria-hidden="true"></i> |
|
|
|
<a t-att-href="'mailto:%s' % shift.super_coop_id.email"> |
|
|
|
<t t-esc="shift.super_coop_id.email"/> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
<div class="modal-footer"> |
|
|
|
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
|
|
|
|
<section class="wrap" t-if="not subscribed_shifts"> |
|
|
|
<div class="container"> |
|
|
|
<div class="row"> |
|
|
|