|
29 | 29 | {if isset($edit)}
|
30 | 30 | <input type="hidden" value="{$objFeaturePrice->id|escape:'html':'UTF-8'}" name="id_feature_price" />
|
31 | 31 | {/if}
|
32 |
| - <div class="form-group"> |
33 |
| - <label class="col-sm-3 control-label required" for="feature_price_name" > |
34 |
| - {l s='Room Type :' mod='hotelreservationsystem'} |
35 |
| - </label> |
36 |
| - <div class="col-sm-3"> |
37 |
| - <input autocomplete="off" type="text" id="room_type_name" name="room_type_name" class="form-control" placeholder= "{l s='Enter room type name' mod='hotelreservationsystem'}" value="{if isset($productName)}{$productName}{/if}"/> |
38 |
| - <input type="hidden" id="room_type_id" name="room_type_id" class="form-control" value="{if isset($objFeaturePrice->id_product)}{$objFeaturePrice->id_product}{else}0{/if}"/> |
39 |
| - <div class="dropdown"> |
40 |
| - <ul class="room_type_search_results_ul"></ul> |
41 |
| - </div> |
42 |
| - <p class="error-block" style="display:none; color: #CD5D5D;">{l s='No match found for this search. Please try with an existing name.' mod='hotelreservationsystem'}</p> |
43 |
| - </div> |
44 |
| - <div class="help-block"> |
45 |
| - **{l s='Enter room type name and select the room for which you are going to create this advanced price rule.' mod='hotelreservationsystem'} |
46 |
| - </div> |
47 |
| - </div> |
| 32 | + |
48 | 33 | <div class="form-group">
|
49 | 34 | <label class="col-sm-3 control-label required" for="feature_price_name" >
|
50 | 35 | {l s='Advanced Price Rule Name :' mod='hotelreservationsystem'}
|
|
72 | 57 | {/if}
|
73 | 58 | </div>
|
74 | 59 |
|
| 60 | + <div class="form-group room-type-name"> |
| 61 | + <label class="col-sm-3 control-label required" for="feature_price_name" > |
| 62 | + {l s='Room Type :' mod='hotelreservationsystem'} |
| 63 | + </label> |
| 64 | + <div class="col-sm-3"> |
| 65 | + <input autocomplete="off" type="text" id="room_type_name" name="room_type_name" class="form-control" placeholder= "{l s='Enter room type name' mod='hotelreservationsystem'}" value="{if isset($productName)}{$productName}{/if}"/> |
| 66 | + <input type="hidden" id="room_type_id" name="room_type_id" class="form-control" value="{if isset($objFeaturePrice->id_product)}{$objFeaturePrice->id_product}{else}0{/if}"/> |
| 67 | + <div class="dropdown"> |
| 68 | + <ul class="room_type_search_results_ul"></ul> |
| 69 | + </div> |
| 70 | + <p class="error-block" style="display:none; color: #CD5D5D;">{l s='No match found for this search. Please try with an existing name.' mod='hotelreservationsystem'}</p> |
| 71 | + <div class="help-block"> |
| 72 | + {l s='Enter room type name and select the room for which you are going to create this advanced price rule.' mod='hotelreservationsystem'} |
| 73 | + </div> |
| 74 | + </div> |
| 75 | + |
| 76 | + </div> |
| 77 | + |
75 | 78 | <div class="form-group">
|
76 | 79 | <label for="date_selection_type" class="control-label col-lg-3">
|
77 | 80 | {l s='Date Selection type :' mod='hotelreservationsystem'}
|
|
113 | 116 | <input type="text" id="feature_plan_date_to" name="date_to" class="form-control datepicker-input" value="{if isset($objFeaturePrice->date_to)}{$objFeaturePrice->date_to|date_format:'%d-%m-%Y'}{else}{$date_to|date_format:'%d-%m-%Y'}{/if}" readonly/>
|
114 | 117 | </div>
|
115 | 118 | </div>
|
116 |
| - <div class="form-group special_days_content" {if isset($objFeaturePrice->date_selection_type) && $objFeaturePrice->date_selection_type == HotelRoomTypeFeaturePricing::DATE_SELECTION_TYPE_SPECIFIC}style="display:none;"{/if}> |
| 119 | + |
| 120 | + <div class="form-group special_days_content" {if isset($objFeaturePrice->date_selection_type) && $objFeaturePrice->date_selection_type == HotelRoomTypeFeaturePricing::DATE_SELECTION_TYPE_SPECIFIC}style="display:none;"{/if}> |
117 | 121 | <label class="control-label col-lg-3">
|
118 |
| - <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="{l s='If you want to create this Advanced price rule only for some special days of the week of selected date range then you can select select days after checking this option. Otherwise rule will be created for whole selected date range.' mod='hotelreservationsystem'}"> |
119 |
| - {l s='For Special Days' mod='hotelreservationsystem'} |
| 122 | + <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="" data-original-title="{l s='Enable this option to restrict this rule to specific week days (for example, weekends) of the selected date range. If disabled, rule will be applicable to all week days.' mod='hotelreservationsystem'}"> |
| 123 | + {l s='Restrict to Week Days' mod='hotelreservationsystem'} |
120 | 124 | </span>
|
121 | 125 | </label>
|
122 |
| - <div class="col-sm-2"> |
123 |
| - <p class="checkbox"> |
124 |
| - <label> |
125 |
| - <input class="is_special_days_exists pull-left" type="checkbox" name="is_special_days_exists" |
126 |
| - {if (isset($smarty.post.is_special_days_exists) && $smarty.post.is_special_days_exists) |
127 |
| - || (isset($objFeaturePrice->is_special_days_exists) && $objFeaturePrice->is_special_days_exists)} |
128 |
| - checked="checked" |
129 |
| - {/if}/> |
130 |
| - {l s='Check to select special days' mod='hotelreservationsystem'} |
131 |
| - </label> |
132 |
| - </p> |
| 126 | + <div class="col-lg-9 "> |
| 127 | + <span class="switch prestashop-switch fixed-width-lg"> |
| 128 | + <input type="radio" {if isset($smarty.post.is_special_days_exists) && $smarty.post.is_special_days_exists == 1}checked="checked"{elseif isset($edit) && $objFeaturePrice->is_special_days_exists == 1}checked="checked"{/if} value="1" id="is_special_days_exists_on" name="is_special_days_exists"> |
| 129 | + <label for="is_special_days_exists_on">{l s='Yes' mod='hotelreservationsystem'}</label> |
| 130 | + <input {if isset($edit) && $objFeaturePrice->is_special_days_exists == 0} checked="checked" {elseif !isset($smarty.post.is_special_days_exists) && !isset($edit)}checked="checked"{/if} type="radio" value="0" id="is_special_days_exists_off" name="is_special_days_exists"> |
| 131 | + <label for="is_special_days_exists_off">{l s='No' mod='hotelreservationsystem'}</label> |
| 132 | + <a class="slide-button btn"></a> |
| 133 | + </span> |
133 | 134 | </div>
|
134 |
| - <div class="col-sm-7 week_days" |
135 |
| - {if (isset($smarty.post.is_special_days_exists) && $smarty.post.is_special_days_exists) || (isset($objFeaturePrice->is_special_days_exists) && $objFeaturePrice->is_special_days_exists)} |
136 |
| - style="display:block;" |
137 |
| - {/if}> |
138 |
| - <div class="col-sm-1"> |
| 135 | + </div> |
| 136 | + |
| 137 | + <div class="form-group week_days" {if (isset($smarty.post.is_special_days_exists) && $smarty.post.is_special_days_exists) || (isset($objFeaturePrice->is_special_days_exists) && $objFeaturePrice->is_special_days_exists)}style="display:block;"{/if}> |
| 138 | + <label for="Price Impact Way" class="control-label col-lg-3"> |
| 139 | + {l s='Select Week Days' mod='hotelreservationsystem'} |
| 140 | + </label> |
| 141 | + <div class="col-lg-3 checkboxes-wrap"> |
| 142 | + <div class="day-wrap"> |
139 | 143 | <input type="checkbox" name="special_days[]" value="mon"
|
140 | 144 | {if (isset($smarty.post.special_days) && in_array('mon', $smarty.post.special_days))
|
141 | 145 | || (isset($special_days) && $special_days && in_array('mon', $special_days))}
|
142 | 146 | checked="checked"
|
143 | 147 | {/if}/>
|
144 | 148 | <p>{l s='Mon' mod='hotelreservationsystem'}</p>
|
145 | 149 | </div>
|
146 |
| - <div class="col-sm-1"> |
| 150 | + <div class="day-wrap"> |
147 | 151 | <input type="checkbox" name="special_days[]" value="tue"
|
148 | 152 | {if (isset($smarty.post.special_days) && in_array('tue', $smarty.post.special_days))
|
149 | 153 | || (isset($special_days) && $special_days && in_array('tue', $special_days))}
|
150 | 154 | checked="checked"
|
151 | 155 | {/if}/>
|
152 | 156 | <p>{l s='Tue' mod='hotelreservationsystem'}</p>
|
153 | 157 | </div>
|
154 |
| - <div class="col-sm-1"> |
| 158 | + <div class="day-wrap"> |
155 | 159 | <input type="checkbox" name="special_days[]" value="wed"
|
156 | 160 | {if (isset($smarty.post.special_days) && in_array('wed', $smarty.post.special_days))
|
157 | 161 | || (isset($special_days) && $special_days && in_array('wed', $special_days))}
|
158 | 162 | checked="checked"
|
159 | 163 | {/if}/>
|
160 | 164 | <p>{l s='Wed' mod='hotelreservationsystem'}</p>
|
161 | 165 | </div>
|
162 |
| - <div class="col-sm-1"> |
| 166 | + <div class="day-wrap"> |
163 | 167 | <input type="checkbox" name="special_days[]" value="thu"
|
164 | 168 | {if (isset($smarty.post.special_days) && in_array('thu', $smarty.post.special_days))
|
165 | 169 | || (isset($special_days) && $special_days && in_array('thu', $special_days))}
|
166 | 170 | checked="checked"
|
167 | 171 | {/if}/>
|
168 | 172 | <p>{l s='Thu' mod='hotelreservationsystem'}</p>
|
169 | 173 | </div>
|
170 |
| - <div class="col-sm-1"> |
| 174 | + <div class="day-wrap"> |
171 | 175 | <input type="checkbox" name="special_days[]" value="fri"
|
172 | 176 | {if (isset($smarty.post.special_days) && in_array('fri', $smarty.post.special_days))
|
173 | 177 | || (isset($special_days) && $special_days && in_array('fri', $special_days))}
|
174 | 178 | checked="checked"
|
175 | 179 | {/if}/>
|
176 | 180 | <p>{l s='Fri' mod='hotelreservationsystem'}</p>
|
177 | 181 | </div>
|
178 |
| - <div class="col-sm-1"> |
| 182 | + <div class="day-wrap"> |
179 | 183 | <input type="checkbox" name="special_days[]" value="sat"
|
180 | 184 | {if (isset($smarty.post.special_days) && in_array('sat', $smarty.post.special_days))
|
181 | 185 | || (isset($special_days) && $special_days && in_array('sat', $special_days))}
|
182 | 186 | checked="checked"
|
183 | 187 | {/if}/>
|
184 | 188 | <p>{l s='Sat' mod='hotelreservationsystem'}</p>
|
185 | 189 | </div>
|
186 |
| - <div class="col-sm-1"> |
| 190 | + <div class="day-wrap"> |
187 | 191 | <input type="checkbox" name="special_days[]" value="sun"
|
188 | 192 | {if (isset($smarty.post.special_days) && in_array('sun', $smarty.post.special_days))
|
189 | 193 | || (isset($special_days) && $special_days && in_array('sun', $special_days))}
|
|
0 commit comments