Lines 51-56
Link Here
|
51 |
.panel-group { |
51 |
.panel-group { |
52 |
margin-top: 3px; |
52 |
margin-top: 3px; |
53 |
} |
53 |
} |
|
|
54 |
.css-helper::after { |
55 |
content: " | "; |
56 |
} |
57 |
.css-helper:last-child::after { |
58 |
content: none; |
59 |
} |
54 |
</style> |
60 |
</style> |
55 |
[% END %] |
61 |
[% END %] |
56 |
</head> |
62 |
</head> |
Lines 657-662
Link Here
|
657 |
[% END %] |
663 |
[% END %] |
658 |
[% END # /collapse_item %] |
664 |
[% END # /collapse_item %] |
659 |
[% END # /FOR mtt %] |
665 |
[% END # /FOR mtt %] |
|
|
666 |
|
667 |
<div class="panel panel-default"> |
668 |
<div class="panel-heading" role="tab" id="format_[% lang | html %]Heading"> |
669 |
<h3 class="panel-title"> |
670 |
<a role="button" class="collapsed" data-toggle="collapse" data-parent="#group_[% lang | html %]" href="#format_[% lang | html %]" aria-expanded="false" aria-controls="format_[% lang | html %]"> |
671 |
<span>Format</span> |
672 |
</a> |
673 |
</h3> |
674 |
</div> <!-- /.panel-heading --> |
675 |
<div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading"> |
676 |
<div class="panel-body"> |
677 |
<fieldset class="rows"> |
678 |
<div class="dialog message">These format settings apply when a notice is printed.</div> |
679 |
<div class="col-md-12"> |
680 |
<ol> |
681 |
<li id="css-helpers"> |
682 |
<label>Insert selectors to apply styles to: </label> |
683 |
<a class="css-helper" id="headings">Headings</a> |
684 |
<a class="css-helper" id="tables">Tables</a> |
685 |
<a class="css-helper" id="text">All text</a> |
686 |
</li> |
687 |
<li> |
688 |
<label for="style">Style (CSS): </label> |
689 |
<textarea id="style" name="style" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea> |
690 |
</li> |
691 |
<li> |
692 |
<label for="format_all">Apply format settings to all notices:</label> |
693 |
<input type="checkbox" name="format_all" id="format_all" value="1" /> |
694 |
<span class="hint">Existing format settings will be overwritten.</span> |
695 |
</li> |
696 |
</ol> |
697 |
</div> |
698 |
</fieldset> <!-- /.rows.mtt --> |
699 |
</div> <!-- /.panel-body --> |
700 |
</div> <!-- /.panel-collapse --> |
701 |
</div> <!-- /.panel.panel-default --> |
660 |
[% END # /WRAPPER accordion %] |
702 |
[% END # /WRAPPER accordion %] |
661 |
[% END %] |
703 |
[% END %] |
662 |
|
704 |
|
Lines 676-681
Link Here
|
676 |
var new_lettercode = '[% new_lettercode | html %]'; |
718 |
var new_lettercode = '[% new_lettercode | html %]'; |
677 |
var new_branchcode = '[% new_branchcode | html %]'; |
719 |
var new_branchcode = '[% new_branchcode | html %]'; |
678 |
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(){ |
722 |
$("#headings").click(function(){ |
723 |
$("#style").val(function(i, text) { |
724 |
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 |
'// insert CSS here\n' + |
727 |
'}'; |
728 |
}); |
729 |
}); |
730 |
$("#tables").click(function(){ |
731 |
$("#style").val(function(i, text) { |
732 |
return text + '\nbody, table, th, td, th:last-child, td:last-child {\n' + |
733 |
'// insert CSS here\n' + |
734 |
'}'; |
735 |
}); |
736 |
}); |
737 |
$("#text").click(function(){ |
738 |
$("#style").val(function(i, text) { |
739 |
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' + |
741 |
'table, th, td, th:last-child, td:last-child {\n' + |
742 |
'// insert CSS here\n' + |
743 |
'}'; |
744 |
}); |
745 |
}); |
746 |
}); |
679 |
</script> |
747 |
</script> |
680 |
[% Asset.js("js/letter.js") | $raw %] |
748 |
[% Asset.js("js/letter.js") | $raw %] |
681 |
[% END %] |
749 |
[% END %] |