Lines 680-696
Link Here
|
680 |
<ol> |
680 |
<ol> |
681 |
<li id="css-helpers"> |
681 |
<li id="css-helpers"> |
682 |
<label>Insert selectors to apply styles to: </label> |
682 |
<label>Insert selectors to apply styles to: </label> |
683 |
<a class="css-helper" id="headings">Headings</a> |
683 |
<a class="css-helper headings" data-lang="[% lang | html %]">Headings</a> |
684 |
<a class="css-helper" id="tables">Tables</a> |
684 |
<a class="css-helper tables" data-lang="[% lang | html %]">Tables</a> |
685 |
<a class="css-helper" id="text">All text</a> |
685 |
<a class="css-helper text" data-lang="[% lang | html %]">All text</a> |
686 |
</li> |
686 |
</li> |
687 |
<li> |
687 |
<li class="style_notices_option"> |
688 |
<label for="style">Style (CSS): </label> |
688 |
<label for="style_[% lang | html %]">Style (CSS): </label> |
689 |
<textarea id="style" name="style" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea> |
689 |
<textarea id="style_[% lang | html %]" name="style_[% lang | html %]" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea> |
690 |
</li> |
690 |
</li> |
691 |
<li> |
691 |
<li class="format_all_notices_option"> |
692 |
<label for="format_all">Apply format settings to all notices:</label> |
692 |
<label for="format_all_[% lang | html %]">Apply format settings to all notices[% IF Koha.Preference('TranslateNotices') %] for this language[% END %]:</label> |
693 |
<input type="checkbox" name="format_all" id="format_all" value="1" /> |
693 |
<input type="checkbox" name="format_all_[% lang | html %]" id="format_all_[% lang | html %]" class="format_all" value="1" /> |
694 |
<span class="hint">Existing format settings will be overwritten.</span> |
694 |
<span class="hint">Existing format settings will be overwritten.</span> |
695 |
</li> |
695 |
</li> |
696 |
</ol> |
696 |
</ol> |
Lines 719-741
Link Here
|
719 |
var new_branchcode = '[% new_branchcode | html %]'; |
719 |
var new_branchcode = '[% new_branchcode | html %]'; |
720 |
var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'notices', 'lettert', 'json' ) | $raw %]; |
720 |
var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'notices', 'lettert', 'json' ) | $raw %]; |
721 |
$(document).ready(function(){ |
721 |
$(document).ready(function(){ |
722 |
$("#headings").click(function(){ |
722 |
$(".headings").click(function(){ |
723 |
$("#style").val(function(i, text) { |
723 |
var lang = $(this).data('lang'); |
|
|
724 |
$("#style_"+lang).val(function(i, text) { |
724 |
return text + 'pre, #slip, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + |
725 |
return text + 'pre, #slip, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + |
725 |
'#receipt, #receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6 {\n' + |
726 |
'#receipt, #receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6 {\n' + |
726 |
'// insert CSS here\n' + |
727 |
'// insert CSS here\n' + |
727 |
'}'; |
728 |
'}'; |
728 |
}); |
729 |
}); |
729 |
}); |
730 |
}); |
730 |
$("#tables").click(function(){ |
731 |
$(".tables").click(function(){ |
731 |
$("#style").val(function(i, text) { |
732 |
var lang = $(this).data('lang'); |
|
|
733 |
$("#style_"+lang).val(function(i, text) { |
732 |
return text + '\nbody, table, th, td, th:last-child, td:last-child {\n' + |
734 |
return text + '\nbody, table, th, td, th:last-child, td:last-child {\n' + |
733 |
'// insert CSS here\n' + |
735 |
'// insert CSS here\n' + |
734 |
'}'; |
736 |
'}'; |
735 |
}); |
737 |
}); |
736 |
}); |
738 |
}); |
737 |
$("#text").click(function(){ |
739 |
$(".text").click(function(){ |
738 |
$("#style").val(function(i, text) { |
740 |
var lang = $(this).data('lang'); |
|
|
741 |
$("#style_"+lang).val(function(i, text) { |
739 |
return text + 'pre, #slip, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + |
742 |
return text + 'pre, #slip, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + |
740 |
'#receipt, #receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6,\n' + |
743 |
'#receipt, #receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6,\n' + |
741 |
'table, th, td, th:last-child, td:last-child {\n' + |
744 |
'table, th, td, th:last-child, td:last-child {\n' + |