Lines 138-170
Link Here
|
138 |
</div> |
138 |
</div> |
139 |
[% END %] |
139 |
[% END %] |
140 |
|
140 |
|
141 |
<div id="opac-pickups-views" class="toptabs"> |
141 |
[% WRAPPER tabs id= "opac-pickups-views" %] |
142 |
<ul class="nav nav-tabs" role="tablist"> |
142 |
[% WRAPPER tabs_nav %] |
143 |
<li class="nav-item" role="presentation" id="tab-user-pickups"> |
143 |
[% IF patron_curbside_pickups.count || !policies.count %] |
144 |
[% IF patron_curbside_pickups.count %] |
144 |
[% SET pickups_active = 1 %] |
145 |
<a href="#user-pickups" class="nav-link active" aria-controls="user-pickups" aria-selected="true" role="tab" data-bs-toggle="tab">Your pickups</a> |
145 |
[% END %] |
146 |
[% ELSE %] |
146 |
[% WRAPPER tab_item tabname= "user-pickups" bt_active= pickups_active %] |
147 |
<a href="#user-pickups" class="nav-link" aria-controls="user-pickups" role="tab" data-bs-toggle="tab">Your pickups</a> |
147 |
<span>Your pickups</span> |
148 |
[% END %] |
148 |
[% END %] |
149 |
</li> |
|
|
150 |
|
151 |
[% IF policies.count %] |
149 |
[% IF policies.count %] |
152 |
<li class="nav-item" role="presentation" id="tab-user-schedule-pickup"> |
|
|
153 |
[% IF patron_curbside_pickups.count %] |
150 |
[% IF patron_curbside_pickups.count %] |
154 |
<a href="#user-schedule-pickup" class="nav-link" aria-controls="user-schedule-pickup" role="tab" data-bs-toggle="tab">Schedule a pickup</a> |
151 |
[% SET scheduled_active = "" %] |
155 |
[% ELSE %] |
152 |
[% ELSE %] |
156 |
<a href="#user-schedule-pickup" class="nav-link active" aria-controls="user-schedule-pickup" aria-selected="true" role="tab" data-bs-toggle="tab">Schedule a pickup</a> |
153 |
[% SET scheduled_active = 1 %] |
|
|
154 |
[% END %] |
155 |
[% WRAPPER tab_item tabname= "user-schedule-pickup" bt_active= scheduled_active %] |
156 |
<span>Schedule a pickup</span> |
157 |
[% END %] |
157 |
[% END %] |
158 |
</li> |
|
|
159 |
[% END %] |
158 |
[% END %] |
160 |
</ul> |
159 |
[% END # /WRAPPER tabs_nav %] |
161 |
|
160 |
|
162 |
<div class="tab-content"> |
161 |
[% WRAPPER tab_panels %] |
163 |
[% IF patron_curbside_pickups.count %] |
162 |
[% IF patron_curbside_pickups.count %] |
164 |
<div role="tabpanel" class="tab-pane active" id="user-pickups" aria-labelledby="tab-user-pickups"> |
163 |
[% SET pickups_active = 1 %] |
165 |
[% ELSE %] |
|
|
166 |
<div role="tabpanel" class="tab-pane" id="user-pickups" aria-labelledby="tab-user-pickups"> |
167 |
[% END %] |
164 |
[% END %] |
|
|
165 |
[% WRAPPER tab_panel tabname="user-pickups" bt_active= pickups_active %] |
168 |
[% IF patron_curbside_pickups.count %] |
166 |
[% IF patron_curbside_pickups.count %] |
169 |
<table id="pickups-table" class="table table-striped"> |
167 |
<table id="pickups-table" class="table table-striped"> |
170 |
<thead> |
168 |
<thead> |
Lines 216-229
Link Here
|
216 |
[% ELSE %] |
214 |
[% ELSE %] |
217 |
<div>No curbside pickups.</div> |
215 |
<div>No curbside pickups.</div> |
218 |
[% END %] |
216 |
[% END %] |
219 |
</div> |
217 |
[% END # /tab_panel %] |
220 |
|
218 |
|
221 |
[% IF policies.count %] |
219 |
[% IF policies.count %] |
222 |
[% IF patron_curbside_pickups.count %] |
220 |
[% IF patron_curbside_pickups.count %] |
223 |
<div role="tabpanel" class="tab-pane" id="user-schedule-pickup" aria-labelledby="tab-user-schedule-pickup"> |
221 |
[% SET scheduled_active = "" %] |
224 |
[% ELSE %] |
|
|
225 |
<div role="tabpanel" class="tab-pane active" id="user-schedule-pickup" aria-labelledby="tab-user-schedule-pickup"> |
226 |
[% END %] |
222 |
[% END %] |
|
|
223 |
[% WRAPPER tab_panel tabname="user-schedule-pickup" bt_active= scheduled_active %] |
227 |
<form id="create-pickup" method="post"> |
224 |
<form id="create-pickup" method="post"> |
228 |
[% INCLUDE 'csrf-token.inc' %] |
225 |
[% INCLUDE 'csrf-token.inc' %] |
229 |
<fieldset class="rows"> |
226 |
<fieldset class="rows"> |
Lines 260-270
Link Here
|
260 |
<input type="submit" id="schedule-pickup-button" class="btn btn-default" disabled value="Schedule pickup" /> |
257 |
<input type="submit" id="schedule-pickup-button" class="btn btn-default" disabled value="Schedule pickup" /> |
261 |
</fieldset> |
258 |
</fieldset> |
262 |
</form> |
259 |
</form> |
263 |
</div> |
260 |
[% END # /tab_panel %] |
264 |
[% END %] |
261 |
[% END # /IF policies.count %] |
265 |
</div> |
262 |
[% END # /WRAPPER tab_panels %] |
266 |
</div> |
263 |
[% END # /WRAPPER tabs %] |
267 |
</div> |
264 |
</div> <!-- /#pickupdetails --> |
268 |
</div> <!-- / .col-lg-10 --> |
265 |
</div> <!-- / .col-lg-10 --> |
269 |
</div> <!-- / .row --> |
266 |
</div> <!-- / .row --> |
270 |
</div> <!-- / .container-fluid --> |
267 |
</div> <!-- / .container-fluid --> |
271 |
- |
|
|