RT# 32234 Use eye icon for link-replace_element_text widget
[freeside.git] / httemplate / misc / did_order_confirm.html
1 <% include('/elements/header-popup.html', 'Confirm Bulk DID Order' ) %>
2
3 <% include('/elements/error.html') %>
4
5 <FORM NAME="did_order_confirm" ACTION="<% popurl(1) %>did_order_confirmed.html" METHOD=POST>
6 <INPUT TYPE="hidden" NAME="ordernum" VALUE="<% $ordernum %>">
7 <INPUT TYPE="hidden" NAME="action" VALUE="confirm">
8 <TABLE>
9     <TR>    
10         <TD>Order #</TD>
11         <TD><% $ordernum %></TD>
12     </TR>
13     <% include( '/elements/tr-input-text.html', 
14             'field' => 'vendor_order_id',
15                     'label' => 'Vendor Order #',
16             'value' => $did_order->vendor_order_id,
17            )
18     %>
19     <% include( '/elements/tr-input-date-field.html', {
20                     'name' => 'confirmed',
21                     'label' => 'Order Confirmed',
22                     'value' => $did_order->confirmed,
23            })
24     %>
25     <TR>
26         <TD COLSPAN="2"><INPUT TYPE="SUBMIT" value="Confirm"></TD>
27     </TR>
28 </TABLE>
29
30 <%init>
31
32 die "access denied"
33   unless $FS::CurrentUser::CurrentUser->access_right('Import');
34
35 $cgi->param('ordernum') =~ /^(\d+)$/ or die 'illegal ordernum';
36 my $ordernum = $1;
37 my $did_order = qsearchs( {
38   'table'     => 'did_order',
39   'hashref'   => { 'ordernum' => $ordernum },
40 } );
41 die "No order $ordernum" unless $did_order;
42
43 </%init>