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