summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorivan <ivan>2010-07-12 13:18:06 +0000
committerivan <ivan>2010-07-12 13:18:06 +0000
commite491946343abd5b7dddfd19f20a44ceb767bd37b (patch)
tree35c35868b03a44d307b1ebb48524fe4c305d68d4 /httemplate/elements
parent8b22dbf7882a1dddaeed78849261cd11a4b409ba (diff)
message templates, RT#8896
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/menu.html3
-rw-r--r--httemplate/elements/tr-htmlarea.html25
2 files changed, 28 insertions, 0 deletions
diff --git a/httemplate/elements/menu.html b/httemplate/elements/menu.html
index a68a5754d..427caca20 100644
--- a/httemplate/elements/menu.html
+++ b/httemplate/elements/menu.html
@@ -416,6 +416,9 @@ tie my %config_phone, 'Tie::IxHash',
;
tie my %config_misc, 'Tie::IxHash';
+$config_misc{'Message templates'} = [ $fsurl.'browse/msg_template.html', 'Templates for customer notices' ]
+ if $curuser->access_right('Edit templates')
+ || $curuser->access_right('Edit global templates');
$config_misc{'Advertising sources'} = [ $fsurl.'browse/part_referral.html', 'Where a customer heard about your service. Tracked for informational purposes' ]
if $curuser->access_right('Edit advertising sources')
|| $curuser->access_right('Edit global advertising sources');
diff --git a/httemplate/elements/tr-htmlarea.html b/httemplate/elements/tr-htmlarea.html
new file mode 100644
index 000000000..1a4e25080
--- /dev/null
+++ b/httemplate/elements/tr-htmlarea.html
@@ -0,0 +1,25 @@
+<% include('tr-td-label.html', @_ ) %>
+
+ <TD <% $cell_style %>>
+
+ <% include('htmlarea.html', @_ ) %>
+
+ </TD>
+
+</TR>
+
+<%init>
+
+my %opt = @_;
+
+my $onchange = $opt{'onchange'}
+ ? 'onChange="'. $opt{'onchange'}. '(this)"'
+ : '';
+
+#my $rows = $opt{'rows'} ? 'ROWS="'.$opt{'rows'}.'"' : '';
+#my $cols = $opt{'cols'} ? 'COLS="'.$opt{'cols'}.'"' : '';
+
+my $cell_style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
+#my $curr_value = $opt{'curr_value'};
+
+</%init>