|
25 | 25 | */ |
26 | 26 | ?> |
27 | 27 | <div class="page-title"> |
28 | | - <h1><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Returns') ?></h1> |
| 28 | + <h1><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Orders and Returns') ?></h1> |
29 | 29 | </div> |
30 | | -<div class="block-content"> |
31 | | - <form id="oar_widget_orders_and_returns_form" action="<?php echo $this->getActionUrl() ?>" method="post" class="search-form" name="guest_post"> |
32 | | - <ul class="form-alt"> |
33 | | - <li style="clear:both;"> |
34 | | - <div class="input-box" style="float:left;width:150px;"> |
35 | | - <label for="oar_order_id" class="required"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Order ID') ?> <em>*</em></label> |
36 | | - </div> |
37 | | - <div class="input-box" style="float:left;width:305px;"> |
38 | | - <input type="text" class="input-text required-entry" id="oar_order_id" name="oar_order_id" style="width:300px;"/> |
39 | | - </div> |
40 | | - </li> |
41 | | - <li style="clear:both;"> |
42 | | - <div class="input-box"> |
43 | | - <?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Enter the billing last name and email/ZIP as in the order billing address') ?>. |
| 30 | +<form id="oar_widget_orders_and_returns_form" action="<?php echo $this->getActionUrl() ?>" method="post" class="search-form" name="guest_post"> |
| 31 | + <div class="fieldset"> |
| 32 | + <h2 class="legend"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Order Information') ?></h2> |
| 33 | + <ul class="form-list"> |
| 34 | + <li class="fields"> |
| 35 | + <div class="field"> |
| 36 | + <label for="oar_order_id" class="required"><em>*</em><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Order ID') ?></label> |
| 37 | + <div class="input-box"> |
| 38 | + <input type="text" class="input-text required-entry" id="oar_order_id" name="oar_order_id" /> |
| 39 | + </div> |
44 | 40 | </div> |
45 | | - </li> |
46 | | - <li style="clear:both;"> |
47 | | - <div class="input-box" style="float:left;width:150px;"> |
48 | | - <label for="oar_billing_lastname" class="required"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Billing Last Name') ?> <em>*</em></label> |
49 | | - </div> |
50 | | - <div class="input-box" style="float:left;width:305px;"> |
51 | | - <input type="text" class="input-text required-entry" id="oar_billing_lastname" name="oar_billing_lastname" style="width:300px;"/> |
52 | | - </div> |
53 | | - </li> |
54 | | - <li style="clear:both;"> |
55 | | - <div class="input-box" style="float:left;width:150px;"> |
56 | | - <label class="required"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Find Order By:') ?></label> |
57 | | - </div> |
58 | | - <div class="input-box" style="float:left;width:305px;"> |
59 | | - <select name="oar_type" id="quick_search_type_id" class="select guest-select" title="" onchange="showIdentifyBlock(this.value);"> |
60 | | - <option value="email"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Email Address'); ?></option> |
61 | | - <option value="zip"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('ZIP Code'); ?></option> |
62 | | - </select> |
63 | | - </div> |
64 | | - </li> |
65 | | - <li id="oar-email" style="clear:both;"> |
66 | | - <div class="input-box" style="float:left;width:150px;"> |
67 | | - <label for="oar_email" class="required"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Email Address') ?> <em>*</em></label> |
68 | | - </div> |
69 | | - <div class="input-box" style="float:left;width:305px;"> |
70 | | - <input type="text" class="input-text validate-email required-entry" id="oar_email" name="oar_email" style="width:300px;"/> |
71 | | - </div> |
72 | | - </li> |
73 | | - <li id="oar-zip" style="display:none;clear:both;"> |
74 | | - <div class="input-box" style="float:left;width:150px;"> |
75 | | - <label for="oar_zip" class="required"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Billing ZIP Code') ?> <em>*</em></label> |
76 | | - </div> |
77 | | - <div class="input-box" style="float:left;width:305px;"> |
78 | | - <input type="text" class="input-text required-entry" id="oar_zip" name="oar_zip" style="width:300px;"/> |
79 | | - </div> |
80 | | - </li> |
81 | | - <li style="clear:both;"> |
82 | | - <div class="input-box" style="float:left;text-align:right;width:455px"> |
83 | | - <button type="submit" title="Continue" class="button"><span><span><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Continue') ?></span></span></button> |
84 | | - </div> |
85 | | - </li> |
| 41 | + <div class="field"> |
| 42 | + <label for="oar_billing_lastname" class="required"><em>*</em><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Billing Last Name') ?></label> |
| 43 | + <div class="input-box"> |
| 44 | + <input type="text" class="input-text required-entry" id="oar_billing_lastname" name="oar_billing_lastname" /> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + </li> |
| 48 | + <li class="fields"> |
| 49 | + <div class="field"> |
| 50 | + <label for="quick_search_type_id" class="required"><em>*</em><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Find Order By:') ?></label> |
| 51 | + <div class="input-box"> |
| 52 | + <select name="oar_type" id="quick_search_type_id" class="select" onchange="showIdentifyBlock(this.value);"> |
| 53 | + <option value="email"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Email Address'); ?></option> |
| 54 | + <option value="zip"><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('ZIP Code'); ?></option> |
| 55 | + </select> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + <div id="oar-email" class="field"> |
| 59 | + <label for="oar_email" class="required"><em>*</em><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Email Address') ?></label> |
| 60 | + <div class="input-box"> |
| 61 | + <input type="text" class="input-text validate-email required-entry" id="oar_email" name="oar_email"/> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + <div id="oar-zip" class="field"> |
| 65 | + <label for="oar_zip" class="required"><em>*</em><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Billing ZIP Code') ?></label> |
| 66 | + <div class="input-box"> |
| 67 | + <input type="text" class="input-text required-entry" id="oar_zip" name="oar_zip"/> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + </li> |
86 | 71 | </ul> |
87 | | - </form> |
88 | | -</div> |
| 72 | + </div> |
| 73 | + <div class="buttons-set form-buttons"> |
| 74 | + <button type="submit" title="<?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Continue') ?>" class="button"><span><span><?php echo Mage::helper('Mage_Sales_Helper_Data')->__('Continue') ?></span></span></button> |
| 75 | + </div> |
| 76 | +</form> |
89 | 77 | <script type="text/javascript"> |
90 | 78 | //<![CDATA[ |
91 | | - if ($('quick_search_type_id').value == 'zip') { |
92 | | - $('oar-zip').show(); |
93 | | - $('oar-email').hide(); |
94 | | - } else { |
95 | | - $('oar-zip').hide(); |
96 | | - $('oar-email').show(); |
97 | | - } |
| 79 | + var dataForm = new VarienForm('oar_widget_orders_and_returns_form', true); |
98 | 80 |
|
99 | | - var dataForm = new VarienForm('oar_widget_orders_and_returns_form', true); |
100 | | - |
101 | | - function showIdentifyBlock(id) |
102 | | - { |
103 | | - if (id == 'zip') { |
104 | | - $('oar-zip').show(); |
105 | | - $('oar-email').hide(); |
106 | | - } else if (id == 'email') { |
107 | | - $('oar-zip').hide(); |
108 | | - $('oar-email').show(); |
109 | | - } |
110 | | - return false; |
111 | | - } |
| 81 | + function showIdentifyBlock(id) |
| 82 | + { |
| 83 | + if (id == 'zip') { |
| 84 | + $('oar-zip').show(); |
| 85 | + $('oar-email').hide(); |
| 86 | + } else { |
| 87 | + $('oar-zip').hide(); |
| 88 | + $('oar-email').show(); |
| 89 | + } |
| 90 | + return false; |
| 91 | + } |
| 92 | + showIdentifyBlock($('quick_search_type_id').value); |
112 | 93 | //]]> |
113 | 94 | </script> |
0 commit comments