|
Lines 52-60
Link Here
|
| 52 |
[% ELSE %] |
52 |
[% ELSE %] |
| 53 |
[% IF ( loop.first ) %]<table class="preferences"><thead><tr><th>Preference</th><th>Value</th></tr></thead><tbody>[% END %] |
53 |
[% IF ( loop.first ) %]<table class="preferences"><thead><tr><th>Preference</th><th>Value</th></tr></thead><tbody>[% END %] |
| 54 |
<tr class="name-row"> |
54 |
<tr class="name-row"> |
| 55 |
<td class="name-cell"> |
55 |
<td id="link_[% FOREACH NAME IN LINE.NAMES %][% NAME.name | html %][% UNLESS ( loop.last ) %]__[% END %][% END %]" class="name-cell"> |
| 56 |
<code> |
56 |
<code> |
|
|
57 |
[% SET is_pref = 0 %] |
| 57 |
[% FOREACH NAME IN LINE.NAMES %] |
58 |
[% FOREACH NAME IN LINE.NAMES %] |
|
|
59 |
[% SET is_pref = 1 %] |
| 58 |
<label for="pref_[% NAME.name | html %]"> |
60 |
<label for="pref_[% NAME.name | html %]"> |
| 59 |
[% IF ( NAME.jumped ) %] |
61 |
[% IF ( NAME.jumped ) %] |
| 60 |
<span class="term" id="jumped">[% NAME.name | html %]</span> |
62 |
<span class="term" id="jumped">[% NAME.name | html %]</span> |
|
Lines 74-80
Link Here
|
| 74 |
[% END %] |
76 |
[% END %] |
| 75 |
</code> |
77 |
</code> |
| 76 |
</td> |
78 |
</td> |
| 77 |
<td><div> |
79 |
<td class="pref-cell"> |
|
|
80 |
<div> |
| 78 |
[% FOREACH CHUNK IN LINE.CHUNKS %] |
81 |
[% FOREACH CHUNK IN LINE.CHUNKS %] |
| 79 |
[% IF ( CHUNK.type_text ) %] |
82 |
[% IF ( CHUNK.type_text ) %] |
| 80 |
[% CHUNK.contents | $raw %] |
83 |
[% CHUNK.contents | $raw %] |
|
Lines 143-149
Link Here
|
| 143 |
</ul> <!-- / ul.sortable --> |
146 |
</ul> <!-- / ul.sortable --> |
| 144 |
[% END %] |
147 |
[% END %] |
| 145 |
[% END %] |
148 |
[% END %] |
| 146 |
</div></td> |
149 |
[% IF ( is_pref ) %] |
|
|
150 |
<a class="permalink" style="display:none" data-toggle="tooltip" data-placement="left" title="Copy link to this preference" href="[% Koha.Preference("staffClientBaseURL") | uri %]/cgi-bin/koha/admin/preferences.pl?tab=[% TAB.tab_id | uri %]#link_[% FOREACH NAME IN LINE.NAMES %][% NAME.name | html %][% UNLESS ( loop.last ) %]__[% END %][% END %]"><i class="fa fa-link fa-rotate-180"></i></a> |
| 151 |
[% END %] |
| 152 |
</div> |
| 153 |
</td> |
| 147 |
</tr> |
154 |
</tr> |
| 148 |
[% IF ( loop.last ) %]</tbody></table>[% END %] |
155 |
[% IF ( loop.last ) %]</tbody></table>[% END %] |
| 149 |
[% END %] |
156 |
[% END %] |
|
Lines 212-217
Link Here
|
| 212 |
var MSG_ALL_VALUE_WARN = _("Note: _ALL_ value will override all other values"); |
219 |
var MSG_ALL_VALUE_WARN = _("Note: _ALL_ value will override all other values"); |
| 213 |
var MSG_UPD_LOC_FORMAT_WARN = _("The following values are not formatted correctly:"); |
220 |
var MSG_UPD_LOC_FORMAT_WARN = _("The following values are not formatted correctly:"); |
| 214 |
var MSG_INVALID = _( "Error: presence of invalid data prevent saving. Please make the corrections and try again." ); |
221 |
var MSG_INVALID = _( "Error: presence of invalid data prevent saving. Please make the corrections and try again." ); |
|
|
222 |
var MSG_COPY_TO_CLIPBOARD = _( "Copy link to this preference" ); |
| 223 |
var MSG_COPIED_TO_CLIPBOARD = _( "Link copied to the clipboard" ); |
| 215 |
</script> |
224 |
</script> |
| 216 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
225 |
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %] |
| 217 |
[% Asset.js("js/ajax.js") | $raw %] |
226 |
[% Asset.js("js/ajax.js") | $raw %] |