Lines 49-54
Link Here
|
49 |
[% END %] |
49 |
[% END %] |
50 |
</head> |
50 |
</head> |
51 |
|
51 |
|
|
|
52 |
[% BLOCK translate_justification_types %] |
53 |
[% SWITCH type %] |
54 |
[% CASE 'L' %]<span>Left</span> |
55 |
[% CASE 'C' %]<span>Center</span> |
56 |
[% CASE 'R' %]<span>Right</span> |
57 |
[% END %] |
58 |
[% END %] |
59 |
|
52 |
<body id="tools_letter" class="tools"> |
60 |
<body id="tools_letter" class="tools"> |
53 |
[% WRAPPER 'header.inc' %] |
61 |
[% WRAPPER 'header.inc' %] |
54 |
[% INCLUDE 'letters-search.inc' %] |
62 |
[% INCLUDE 'letters-search.inc' %] |
Lines 648-653
Link Here
|
648 |
</div> <!-- /.panel-collapse --> |
656 |
</div> <!-- /.panel-collapse --> |
649 |
</div> <!-- /.panel.panel-default --> |
657 |
</div> <!-- /.panel.panel-default --> |
650 |
[% END # /FOR mtt %] |
658 |
[% END # /FOR mtt %] |
|
|
659 |
|
660 |
<div class="panel panel-default"> |
661 |
<div class="panel-heading" role="tab" id="format_[% lang | html %]Heading"> |
662 |
<h3 class="panel-title"> |
663 |
<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 %]"> |
664 |
<span>Print format</span> |
665 |
</a> |
666 |
</h3> |
667 |
</div> <!-- /.panel-heading --> |
668 |
<div id="format_[% lang | html %]" class="panel-collapse collapse" role="tabpanel" aria-labelledby="format_[% lang | html %]Heading"> |
669 |
<div class="panel-body"> |
670 |
<fieldset class="rows"> |
671 |
<input type="hidden" name="lang" value="[% lang | html %]" /> |
672 |
<div class="col-md-6"> |
673 |
<ol> |
674 |
<li> |
675 |
<label for="text_justify">Text justification: </label> |
676 |
<select name="text_justify" id="text_justify"> |
677 |
[% FOREACH text_justification_type IN text_justification_types %] |
678 |
[% IF ( text_justification_type.type == letter.text_justify ) %] |
679 |
<option value="[% text_justification_type.type | html %]" selected="selected">[% PROCESS translate_justification_types type=text_justification_type.type %]</option> |
680 |
[% ELSE %] |
681 |
<option value="[% text_justification_type.type | html %]">[% PROCESS translate_justification_types type=text_justification_type.type %]</option> |
682 |
[% END %] |
683 |
[% END %] |
684 |
</select> |
685 |
</li> |
686 |
<li> |
687 |
<label for="font">Font: </label> |
688 |
<select name="font" id="font"> |
689 |
[% FOREACH font_type IN font_types %] |
690 |
[% IF ( font_type.type == letter.font ) %] |
691 |
<option value="[% font_type.type | html %]" selected="selected">[% font_type.name | html %]</option> |
692 |
[% ELSE %] |
693 |
<option value="[% font_type.type | html %]">[% font_type.name | html %]</option> |
694 |
[% END %] |
695 |
[% END %] |
696 |
</select> |
697 |
</li> |
698 |
<li> |
699 |
<label for="font_size">Font size: </label> |
700 |
<input type="text" name="font_size" id="font_size" size="2" value="[% letter.font_size | html %]" /> |
701 |
</li> |
702 |
<li> |
703 |
<label for="units">Units:</label> |
704 |
<select id="units" name="units"> |
705 |
[% FOREACH unit IN units %] |
706 |
[% IF ( unit.type == letter.units ) %] |
707 |
<option value="[% unit.type | html %]" selected="selected"> |
708 |
[% ELSE %] |
709 |
<option value="[% unit.type | html %]"> |
710 |
[% END %] |
711 |
|
712 |
[% SWITCH unit.type %] |
713 |
[% CASE 'POINT' %] |
714 |
<span>PostScript points</span> |
715 |
[% CASE 'AGATE' %] |
716 |
<span>Agates</span> |
717 |
[% CASE 'INCH' %] |
718 |
<span>US Inches</span> |
719 |
[% CASE 'MM' %] |
720 |
<span>SI Millimeters</span> |
721 |
[% CASE 'CM' %] |
722 |
<span>SI Centimeters</span> |
723 |
[% END %] |
724 |
</option> |
725 |
[% END %] |
726 |
</select> |
727 |
</li> |
728 |
<li> |
729 |
<label for="page_height">Page height:</label> |
730 |
<input type="text" size="4" name="page_height" id="page_height" value="[% letter.page_height | html %]" /> |
731 |
</li> |
732 |
<li> |
733 |
<label for="page_width">Page width:</label> |
734 |
<input type="text" size="4" name="page_width" id="page_width" value="[% letter.page_width | html %]" /> |
735 |
</li> |
736 |
<li> |
737 |
<label for="notice_width">Notice width:</label> |
738 |
<input type="text" size="4" name="notice_width" id="notice_width" value="[% letter.notice_width | html %]" /> |
739 |
</li> |
740 |
<li> |
741 |
<label for="notice_height">Notice height:</label> |
742 |
<input type="text" size="4" name="notice_height" id="notice_height" value="[% letter.notice_height | html %]" /> |
743 |
</li> |
744 |
</ol> |
745 |
</div> |
746 |
<div class="col-md-6"> |
747 |
<ol> |
748 |
<li> |
749 |
<label for="top_margin">Top page margin:</label> |
750 |
<input type="text" size="4" name="top_margin" id="top_margin" value="[% letter.top_margin | html %]" /> |
751 |
</li> |
752 |
<li> |
753 |
<label for="left_margin">Left page margin:</label> |
754 |
<input type="text" size="4" name="left_margin" id="left_margin" value="[% letter.left_margin | html %]" /> |
755 |
</li> |
756 |
<li> |
757 |
<label for="top_text_margin">Top text margin:</label> |
758 |
<input type="text" size="4" name="top_text_margin" id="top_text_margin" value="[% letter.top_text_margin | html %]" /> |
759 |
</li> |
760 |
<li> |
761 |
<label for="left_text_margin">Left text margin:</label> |
762 |
<input type="text" size="4" name="left_text_margin" id="left_text_margin" value="[% letter.left_text_margin | html %]" /> |
763 |
</li> |
764 |
<li> |
765 |
<label for="cols">Number of columns:</label> |
766 |
<input type="text" size="4" name="cols" id="cols" value="[% letter.cols | html %]" /> |
767 |
</li> |
768 |
<li> |
769 |
<label for="rows">Number of rows:</label> |
770 |
<input type="text" size="4" name="rows" id="rows" value="[% letter.rows | html %]" /> |
771 |
</li> |
772 |
<li> |
773 |
<label for="col_gap">Gap between columns:</label> |
774 |
<input type="text" size="4" name="col_gap" id="col_gap" value="[% letter.col_gap | html %]" /> |
775 |
</li> |
776 |
<li> |
777 |
<label for="row_gap">Gap between rows:</label> |
778 |
<input type="text" size="4" name="row_gap" id="row_gap" value="[% letter.row_gap | html %]" /> |
779 |
</li> |
780 |
</ol> |
781 |
</div> |
782 |
</fieldset> <!-- /.rows.mtt --> |
783 |
</div> <!-- /.panel-body --> |
784 |
</div> <!-- /.panel-collapse --> |
785 |
</div> <!-- /.panel.panel-default --> |
786 |
|
651 |
</div> <!-- /.panel-group#lang_lang --> |
787 |
</div> <!-- /.panel-group#lang_lang --> |
652 |
[% END %] |
788 |
[% END %] |
653 |
|
789 |
|