Debian 8 support for ng-selfservice
[freeside.git] / httemplate / misc / copy-rate_detail.html
1 <% include( '/elements/header.html', 'Copy rates between plans', menubar(
2        'View all rate plans' => "${p}browse/rate.cgi",
3    ))
4 %>
5
6 <% include('/elements/error.html') %>
7
8 <FORM ACTION="process/copy-rate_detail.html">
9
10 <% ntable('#cccccc') %>
11
12   <% include( '/elements/tr-justtitle.html', 'value' => 'Copy rates' ) %>
13
14   <% include( '/elements/tr-select-rate.html',
15                 'label'        => 'From rate plan',
16                 'element_name' => 'src_ratenum',
17             )
18   %>
19
20   <% include( '/elements/tr-select-rate.html',
21                 'label'        => 'To rate plan',
22                 'element_name' => 'dst_ratenum',
23             )
24   %>
25
26   <TR>
27     <TD COLSPAN=2>Copy country codes</TD>
28   </TR>
29
30   <TR>
31     <TD COLSPAN=2>
32
33       <% include( '/elements/checkboxes.html',
34                     'names_list' => [ FS::rate_prefix->all_countrycodes ],
35                     'element_name_prefix' => 'countrycode',
36                 )
37       %>
38     </TD>
39   </TR>
40
41   <TR>
42     <TD COLSPAN=2 ALIGN="center">
43       <INPUT TYPE="submit" VALUE="Copy rates">
44     </TD>
45   </TR>
46
47 </TABLE>
48
49 </FORM>
50
51 <% include('/elements/footer.html') %>
52
53 <%init>
54
55 die "access denied"
56   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
57
58 #should have some javascript that enables submit button only when both src & dst
59 #rates are chosen
60
61 </%init>