|
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 663-668
Link Here
|
| 663 |
</div> <!-- /.panel-collapse --> |
669 |
</div> <!-- /.panel-collapse --> |
| 664 |
</div> <!-- /.panel.panel-default --> |
670 |
</div> <!-- /.panel.panel-default --> |
| 665 |
[% END # /FOR mtt %] |
671 |
[% END # /FOR mtt %] |
|
|
672 |
|
| 673 |
<div class="panel panel-default"> |
| 674 |
<div class="panel-heading" role="tab" id="format_[% lang | html %]Heading"> |
| 675 |
<h3 class="panel-title"> |
| 676 |
<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 %]"> |
| 677 |
<span>Format</span> |
| 678 |
</a> |
| 679 |
</h3> |
| 680 |
</div> <!-- /.panel-heading --> |
| 681 |
<div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading"> |
| 682 |
<div class="panel-body"> |
| 683 |
<fieldset class="rows"> |
| 684 |
<div class="dialog message">These format settings apply when a notice is printed.</div> |
| 685 |
<div class="col-md-12"> |
| 686 |
<ol> |
| 687 |
<li id="css-helpers"> |
| 688 |
<label>Insert selectors to apply styles to: </label> |
| 689 |
<a class="css-helper" id="headings">Headings</a> |
| 690 |
<a class="css-helper" id="tables">Tables</a> |
| 691 |
<a class="css-helper" id="text">All text</a> |
| 692 |
</li> |
| 693 |
<li> |
| 694 |
<label for="style">Style (CSS): </label> |
| 695 |
<textarea id="style" name="style" rows="15" cols="80">[% letters.$lang.params.style | $raw %]</textarea> |
| 696 |
</li> |
| 697 |
<li> |
| 698 |
<label for="format_all">Apply format settings to all notices:</label> |
| 699 |
<input type="checkbox" name="format_all" id="format_all" value="1" /> |
| 700 |
<span class="hint">Existing format settings will be overwritten.</span> |
| 701 |
</li> |
| 702 |
</ol> |
| 703 |
</div> |
| 704 |
</fieldset> <!-- /.rows.mtt --> |
| 705 |
</div> <!-- /.panel-body --> |
| 706 |
</div> <!-- /.panel-collapse --> |
| 707 |
</div> <!-- /.panel.panel-default --> |
| 708 |
|
| 666 |
</div> <!-- /.panel-group#lang_lang --> |
709 |
</div> <!-- /.panel-group#lang_lang --> |
| 667 |
[% END %] |
710 |
[% END %] |
| 668 |
|
711 |
|
|
Lines 682-687
Link Here
|
| 682 |
var new_lettercode = '[% new_lettercode | html %]'; |
725 |
var new_lettercode = '[% new_lettercode | html %]'; |
| 683 |
var new_branchcode = '[% new_branchcode | html %]'; |
726 |
var new_branchcode = '[% new_branchcode | html %]'; |
| 684 |
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(){ |
| 729 |
$("#headings").click(function(){ |
| 730 |
$("#style").val(function(i, text) { |
| 731 |
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 |
'// insert CSS here\n' + |
| 734 |
'}'; |
| 735 |
}); |
| 736 |
}); |
| 737 |
$("#tables").click(function(){ |
| 738 |
$("#style").val(function(i, text) { |
| 739 |
return text + '\nbody, table, th, td, th:last-child, td:last-child {\n' + |
| 740 |
'// insert CSS here\n' + |
| 741 |
'}'; |
| 742 |
}); |
| 743 |
}); |
| 744 |
$("#text").click(function(){ |
| 745 |
$("#style").val(function(i, text) { |
| 746 |
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' + |
| 748 |
'table, th, td, th:last-child, td:last-child {\n' + |
| 749 |
'// insert CSS here\n' + |
| 750 |
'}'; |
| 751 |
}); |
| 752 |
}); |
| 753 |
}); |
| 685 |
</script> |
754 |
</script> |
| 686 |
[% Asset.js("js/letter.js") | $raw %] |
755 |
[% Asset.js("js/letter.js") | $raw %] |
| 687 |
[% END %] |
756 |
[% END %] |