|
Lines 108-113
Link Here
|
| 108 |
</option> |
108 |
</option> |
| 109 |
[% END %] |
109 |
[% END %] |
| 110 |
</select> |
110 |
</select> |
|
|
111 |
[% ELSIF ( CHUNK.type_modalselect ) %] |
| 112 |
<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 %]"/> |
| 111 |
[% ELSIF ( CHUNK.type_multiple ) %] |
113 |
[% ELSIF ( CHUNK.type_multiple ) %] |
| 112 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
114 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
| 113 |
[% 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 %] |
115 |
[% 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 179-184
Link Here
|
| 179 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
181 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
| 180 |
</div> <!-- /.row --> |
182 |
</div> <!-- /.row --> |
| 181 |
|
183 |
|
|
|
184 |
<!-- Modal --> |
| 185 |
<div class="modal" id="prefModal" tabindex="-1" role="dialog" aria-labelledby="prefModalLabel"> |
| 186 |
<div class="modal-dialog modal-wide" role="document"> |
| 187 |
<div class="modal-content"> |
| 188 |
<div class="modal-header"> |
| 189 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
| 190 |
<h4 class="modal-title" id="prefModalLabel">Modal title</h4> |
| 191 |
</div> |
| 192 |
<div class="modal-body"> |
| 193 |
<p> |
| 194 |
<a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a> |
| 195 |
| |
| 196 |
<a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a> |
| 197 |
</p> |
| 198 |
<form action="#" id="prefModalForm"> |
| 199 |
</form> |
| 200 |
</div> |
| 201 |
<div class="modal-footer"> |
| 202 |
<button id="saveModalPrefs" data-target="" type="button" class="btn btn-default">Save</button> |
| 203 |
<button type="button" class="btn btn-link cancel" data-dismiss="modal">Cancel</button> |
| 204 |
</div> |
| 205 |
</div> |
| 206 |
</div> |
| 207 |
</div> |
| 208 |
|
| 182 |
[% MACRO jsinclude BLOCK %] |
209 |
[% MACRO jsinclude BLOCK %] |
| 183 |
[% INCLUDE 'datatables.inc' %] |
210 |
[% INCLUDE 'datatables.inc' %] |
| 184 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
211 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
|
Lines 200-205
Link Here
|
| 200 |
|
227 |
|
| 201 |
<script> |
228 |
<script> |
| 202 |
var Sticky; |
229 |
var Sticky; |
|
|
230 |
var themelang = "[% themelang | html %]"; |
| 203 |
$(document).ready(function(){ |
231 |
$(document).ready(function(){ |
| 204 |
[% UNLESS ( searchfield ) %] |
232 |
[% UNLESS ( searchfield ) %] |
| 205 |
Sticky = $("#toolbar"); |
233 |
Sticky = $("#toolbar"); |
|
Lines 219-225
Link Here
|
| 219 |
e.preventDefault(); |
247 |
e.preventDefault(); |
| 220 |
window.location.reload(true); |
248 |
window.location.reload(true); |
| 221 |
}); |
249 |
}); |
| 222 |
|
|
|
| 223 |
}); |
250 |
}); |
| 224 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
251 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
| 225 |
var to_highlight = "[% To.json( searchfield ) | $raw %]"; |
252 |
var to_highlight = "[% To.json( searchfield ) | $raw %]"; |