summaryrefslogtreecommitdiff
path: root/httemplate/edit/msg_template.html
blob: 986629cd75a7d33072ddb759edc37ee20f39fb3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<% include( 'elements/edit.html',  
              'name_singular' => 'template',
              'table'         => 'msg_template',
              'viewall_dir'   => 'browse',
              'fields' => [ 'msgname',
                            'subject',
                            { field=>'body', type=>'htmlarea', width=>763 },
                          ],
              'labels' => { 'msgnum'  => 'Template',
                            'msgname' => 'Template name',
                            'subject' => 'Message subject',
                            'body'    => 'Message template',
                          },
          )
%>
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Edit templates')
  ||     $FS::CurrentUser::CurrentUser->access_right('Edit global templates')
  ||     $FS::CurrentUser::CurrentUser->access_right('Configuration');

</%init>