transformation project deletion section
[sgn.git] / mason / order / order_details.mas
blob2765692f26d3bddd360199516fcc2cc3b9839388
1 <%args>
3 $order_id
4 $order_from
5 $create_date
6 $item_list
7 $order_to
8 $order_status
9 $comments
10 $order_properties => undef
11 $order_values => undef
12 $ordering_type => undef
13 $check_vendor_role =>undef
15 </%args>
18 <& /util/import_javascript.mas, classes => [ 'jquery', 'jquery.dataTables'] &>
19 <& /util/import_css.mas, paths => ['/documents/inc/datatables/jquery.dataTables.css'] &>
21 <& /page/page_title.mas, title => "Details for Order Number: $order_id" &>
23 <&| /page/info_section.mas, title=>"Details",  collapsible => 1, collapsed=>0 &>
25     <div class="panel panel-default">
26         <div class="panel-body">
27             <div class="row">
28                 <div class="col-sm-6">
29                     <table class="table table-bordered table-hover">
30                         <tr><td><b>Ordered by</b></td><td><% $order_from %></td></tr>
31                         <tr><td><b>Submitted Date</b></td><td><% $create_date %></td></tr>
32                         <tr><td><b>Items</b></td><td><% $item_list %></td></tr>
33                         <tr><td><b>Sent Order to</b></td><td><% $order_to %></td></tr>
34                         <tr><td><b>Status</b><td><% $order_status %></td></tr>
35                         <tr><td><b>Comments</b></td><td><% $comments %></td></tr>
36                     </table>
37                 </div>
38             </div>
39             <td><a href="/order/stocks/view"><p>Go to Manage Order Page</p></a></td>
40         </div>
41     </div>
42 % if ($ordering_type eq 'single_step' && $order_status ne 'completed') {
43     <button class="btn btn-sm btn-primary" style="margin:3px" id="re_order_link">Re-Order</button>
45 % if ($ordering_type eq 'single_step' && $order_status eq 'completed') {
46     <button class="btn btn-sm btn-primary" style="margin:3px" id="re_order_link">Re-Order</button><button class="btn btn-sm btn-primary" style="margin:3px" id="requester_re_open_link">Re-Open</button>
48 %if ($ordering_type ne 'single_step' && $order_status eq 'completed') {
49     <button class="btn btn-sm btn-primary" style="margin:3px" id="re_open_link">Re-Open</button>
52 </&>
54 % if ($check_vendor_role == 1) {
55     <&| /page/info_section.mas, title => 'Tracking Order Progress', collapsible=>1, collapsed=>0 &>
56         <div class = "well well-sm">
57             <div class = "panel panel-default">
58                 <div class = "panel-body">
59                     <!--
60                     <button id="download_item_file_button" class="btn btn-primary">Download Item File</button>
61                     <button id="download_ontology_file_button" class="btn btn-primary">Download Data Collection Ontologies</button>
62                     -->
63                     <button id="generate_item_barcode_button" class="btn btn-primary">Generate Item Barcode</button>
64                 </div>
65             </div>
66         </div>
67     </&>
68 % }
70 <& /order/re_order_dialog.mas, order_properties => $order_properties, order_values => $order_values&>
71 <& /order/re_open_dialog.mas, order_id => $order_id, order_to => $order_to &>
72 <& /order/create_item_file_dialog.mas, order_id => $order_id &>
73 <& /order/create_ontology_file_dialog.mas &>
74 <& /order/generate_identifier_barcode_dialog.mas, identifier => "", order_id=> "$order_id" &>