diff options
author | ivan <ivan> | 2009-01-05 00:26:54 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-01-05 00:26:54 +0000 |
commit | 125fb1a284ae96b46fe433c418aafa87862c4382 (patch) | |
tree | cb9485c9cfd7e685bc63ea40fe214f80c18407b1 /httemplate/misc/copy-rate_detail.html | |
parent | c23d6e1673dbec98fe9d778ee55962d2cbd145d5 (diff) |
add rate copying, RT#4431
Diffstat (limited to 'httemplate/misc/copy-rate_detail.html')
-rw-r--r-- | httemplate/misc/copy-rate_detail.html | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/httemplate/misc/copy-rate_detail.html b/httemplate/misc/copy-rate_detail.html new file mode 100644 index 000000000..3d328ce59 --- /dev/null +++ b/httemplate/misc/copy-rate_detail.html @@ -0,0 +1,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> |