summaryrefslogtreecommitdiff
path: root/httemplate/misc/copy-rate_detail.html
blob: 3d328ce59049970c47ffcc502e0b0daea2b30cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<% include( '/elements/header.html', 'Copy rates between plans', menubar(
       'View all rate plans' => "${p}browse/rate.cgi",
   ))
%>

<% include('/elements/error.html') %>

<FORM ACTION="process/copy-rate_detail.html">

<% ntable('#cccccc') %>

  <% include( '/elements/tr-justtitle.html', 'value' => 'Copy rates' ) %>

  <% include( '/elements/tr-select-rate.html',
                'label'        => 'From rate plan',
                'element_name' => 'src_ratenum',
            )
  %>

  <% include( '/elements/tr-select-rate.html',
                'label'        => 'To rate plan',
                'element_name' => 'dst_ratenum',
            )
  %>

  <TR>
    <TD COLSPAN=2>Copy country codes</TD>
  </TR>

  <TR>
    <TD COLSPAN=2>

      <% include( '/elements/checkboxes.html',
                    'names_list' => [ FS::rate_prefix->all_countrycodes ],
                    'element_name_prefix' => 'countrycode',
                )
      %>
    </TD>
  </TR>

  <TR>
    <TD COLSPAN=2 ALIGN="center">
      <INPUT TYPE="submit" VALUE="Copy rates">
    </TD>
  </TR>

</TABLE>

</FORM>

<% include('/elements/footer.html') %>

<%init>

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

#should have some javascript that enables submit button only when both src & dst
#rates are chosen

</%init>