Lines 92-97
Link Here
|
92 |
</option> |
92 |
</option> |
93 |
[% END %] |
93 |
[% END %] |
94 |
</select> |
94 |
</select> |
|
|
95 |
[% ELSIF ( CHUNK.type_modalselect ) %] |
96 |
<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 %]"/> |
95 |
[% ELSIF ( CHUNK.type_multiple ) %] |
97 |
[% ELSIF ( CHUNK.type_multiple ) %] |
96 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
98 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
97 |
[% 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 %] |
99 |
[% 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 163-168
Link Here
|
163 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
165 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
164 |
</div> <!-- /.row --> |
166 |
</div> <!-- /.row --> |
165 |
|
167 |
|
|
|
168 |
<!-- Modal --> |
169 |
<div class="modal" id="prefModal" tabindex="-1" role="dialog" aria-labelledby="prefModalLabel"> |
170 |
<div class="modal-dialog modal-wide" role="document"> |
171 |
<div class="modal-content"> |
172 |
<div class="modal-header"> |
173 |
<button type="button" class="closebtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> |
174 |
<h4 class="modal-title" id="prefModalLabel">Modal title</h4> |
175 |
</div> |
176 |
<div class="modal-body"> |
177 |
<p> |
178 |
<a href="#" id="select_all"><i class="fa fa-check"></i> Select all</a> |
179 |
| |
180 |
<a href="#" id="clear_all"><i class="fa fa-remove"></i> Clear all</a> |
181 |
</p> |
182 |
<form action="#" id="prefModalForm"> |
183 |
</form> |
184 |
</div> |
185 |
<div class="modal-footer"> |
186 |
<button id="saveModalPrefs" data-target="" type="button" class="btn btn-default">Save</button> |
187 |
<button type="button" class="btn btn-link cancel" data-dismiss="modal">Cancel</button> |
188 |
</div> |
189 |
</div> |
190 |
</div> |
191 |
</div> |
192 |
|
166 |
[% MACRO jsinclude BLOCK %] |
193 |
[% MACRO jsinclude BLOCK %] |
167 |
[% INCLUDE 'datatables.inc' %] |
194 |
[% INCLUDE 'datatables.inc' %] |
168 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
195 |
[% Asset.js("lib/hc-sticky.js") | $raw %] |
Lines 174-179
Link Here
|
174 |
[% Asset.js( "lib/codemirror/yaml.min.js" ) | $raw %] |
201 |
[% Asset.js( "lib/codemirror/yaml.min.js" ) | $raw %] |
175 |
<script> |
202 |
<script> |
176 |
var Sticky; |
203 |
var Sticky; |
|
|
204 |
var themelang = "[% themelang | html %]"; |
177 |
$(document).ready(function(){ |
205 |
$(document).ready(function(){ |
178 |
[% UNLESS ( searchfield ) %] |
206 |
[% UNLESS ( searchfield ) %] |
179 |
Sticky = $("#toolbar"); |
207 |
Sticky = $("#toolbar"); |
Lines 193-199
Link Here
|
193 |
e.preventDefault(); |
221 |
e.preventDefault(); |
194 |
window.location.reload(true); |
222 |
window.location.reload(true); |
195 |
}); |
223 |
}); |
196 |
|
|
|
197 |
}); |
224 |
}); |
198 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
225 |
// This is here because of its dependence on template variables, everything else should go in js/pages/preferences.js - jpw |
199 |
var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |
226 |
var to_highlight = "[% searchfield |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') | html %]"; |