|
Lines 98-103
Link Here
|
| 98 |
</option> |
98 |
</option> |
| 99 |
[% END %] |
99 |
[% END %] |
| 100 |
</select> |
100 |
</select> |
|
|
101 |
[% ELSIF ( CHUNK.type_modalselect ) %] |
| 102 |
<input type="text" name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="modalselect preference preference-[% CHUNK.type | html %]" data-source="[% CHUNK.source | html %]" readonly="readonly" value="[% CHUNK.value | html %]"/> |
| 101 |
[% ELSIF ( CHUNK.type_multiple ) %] |
103 |
[% ELSIF ( CHUNK.type_multiple ) %] |
| 102 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
104 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
| 103 |
[% FOREACH CHOICE IN CHUNK.CHOICES %][% IF ( CHOICE.selected ) %]<option value="[% CHOICE.value | html %]" selected="selected">[% ELSE %]<option value="[% CHOICE.value | html %]">[% END %][% CHOICE.text | html %]</option>[% END %] |
105 |
[% FOREACH CHOICE IN CHUNK.CHOICES %][% IF ( CHOICE.selected ) %]<option value="[% CHOICE.value | html %]" selected="selected">[% ELSE %]<option value="[% CHOICE.value | html %]">[% END %][% CHOICE.text | html %]</option>[% END %] |
|
Lines 169-174
Link Here
|
| 169 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
171 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 170 |
</div> <!-- /.row --> |
172 |
</div> <!-- /.row --> |
| 171 |
|
173 |
|
|
|
174 |
<!-- Modal --> |
| 175 |
<div class="modal" id="prefModal" tabindex="-1" role="dialog" aria-labelledby="prefModalLabel"> |
| 176 |
<div class="modal-dialog modal-wide" role="document"> |
| 177 |
<div class="modal-content"> |
| 178 |
<div class="modal-header"> |
| 179 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 180 |
<h4 class="modal-title" id="prefModalLabel">Modal title</h4> |
| 181 |
</div> |
| 182 |
<div class="modal-body"> |
| 183 |
<p> |
| 184 |
<a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a> |
| 185 |
| |
| 186 |
<a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a> |
| 187 |
</p> |
| 188 |
<form action="#" id="prefModalForm"> |
| 189 |
</form> |
| 190 |
</div> |
| 191 |
<div class="modal-footer"> |
| 192 |
<button id="saveModalPrefs" data-target="" type="button" class="btn btn-default">Save</button> |
| 193 |
<button type="button" class="btn btn-link cancel" data-dismiss="modal">Cancel</button> |
| 194 |
</div> |
| 195 |
</div> |
| 196 |
</div> |
| 197 |
</div> |
| 198 |
|
| 172 |
[% MACRO jsinclude BLOCK %] |
199 |
[% MACRO jsinclude BLOCK %] |
| 173 |
[% INCLUDE 'datatables.inc' %] |
200 |
[% INCLUDE 'datatables.inc' %] |
| 174 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
201 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
|
Lines 190-195
Link Here
|
| 190 |
|
217 |
|
| 191 |
<script> |
218 |
<script> |
| 192 |
var Sticky; |
219 |
var Sticky; |
|
|
220 |
var themelang = "[% themelang | html %]"; |
| 193 |
$(document).ready(function(){ |
221 |
$(document).ready(function(){ |
| 194 |
[% UNLESS ( searchfield ) %] |
222 |
[% UNLESS ( searchfield ) %] |
| 195 |
Sticky = $("#toolbar"); |
223 |
Sticky = $("#toolbar"); |
|
Lines 209-215
Link Here
|
| 209 |
e.preventDefault(); |
237 |
e.preventDefault(); |
| 210 |
window.location.reload(true); |
238 |
window.location.reload(true); |
| 211 |
}); |
239 |
}); |
| 212 |
|
|
|
| 213 |
}); |
240 |
}); |
| 214 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
241 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
| 215 |
var to_highlight = "[% To.json( searchfield ) | $raw %]"; |
242 |
var to_highlight = "[% To.json( searchfield ) | $raw %]"; |