diff --git a/admin/themes/default/sass/controllers/_products.sass b/admin/themes/default/sass/controllers/_products.sass index ee8e97e75..492efa75b 100644 --- a/admin/themes/default/sass/controllers/_products.sass +++ b/admin/themes/default/sass/controllers/_products.sass @@ -1,5 +1,31 @@ #leave_bprice margin-left: 0px +.padding-top-20 + padding-top: 20px +.modal-subtitle + font-weight: 400 + color: #333333 + font-size: 13px + padding-bottom: 10px +.rooms-disable-dates-title + .rooms-disable-dates + thead + tr + background-color: #f1f1f1 + margin-top: 15px + padding-bottom: 5px + font-size: 13px + border-bottom: solid 1px #EAEDEF +.rooms_bulk_actions + .dropdown-menu + li > a:hover + cursor: pointer +#bulk-update-rooms-button[disabled] + &:hover + cursor: not-allowed + border-color: $btn-default-border +.add_disable_date_row_container + margin-top: 5px #deactiveDatesModal .fc-popover-body .fc-daygrid-event-harness @@ -114,4 +140,4 @@ padding: 15px border-radius: 6px .tooltip_action_block - min-width: unset \ No newline at end of file + min-width: unset diff --git a/admin/themes/default/sass/partials/_forms.sass b/admin/themes/default/sass/partials/_forms.sass index b18d679e3..02037f992 100644 --- a/admin/themes/default/sass/partials/_forms.sass +++ b/admin/themes/default/sass/partials/_forms.sass @@ -67,7 +67,7 @@ textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[ty @include box-shadow(none) &.btn-default[disabled] border-color: $gray-light - color: $gray-light + color: $main-color background-color: lighten($gray-light,35%) .dropdown-menu diff --git a/admin/themes/default/template/controllers/products/configuration.tpl b/admin/themes/default/template/controllers/products/configuration.tpl index 20e4e1775..0419331c0 100644 --- a/admin/themes/default/template/controllers/products/configuration.tpl +++ b/admin/themes/default/template/controllers/products/configuration.tpl @@ -28,6 +28,7 @@ + - {if isset($smarty.post.rooms_info) && is_array($smarty.post.rooms_info) && count($smarty.post.rooms_info)} + {if isset($smarty.post.rooms_info) && is_array($smarty.post.rooms_info) && count($smarty.post.rooms_info) && !isset($bulk_delete_rooms)} {assign var="rooms_info" value=$smarty.post.rooms_info} {elseif isset($htl_room_info) && is_array($htl_room_info) && count($htl_room_info)} {assign var="rooms_info" value=$htl_room_info} @@ -79,6 +80,9 @@ {foreach from=$rooms_info key=key item=room_info} {assign var="var_name_room_info" value="rooms_info[`$key`]"} + @@ -100,10 +104,15 @@ - {hook h='displayHotelRoomListTableRowColumn' index=$key id_room=$room_info['id']} + {* Since the data can also be used from post incase of errors, which will cause issues with the id index *} + {if isset($room_info['id'])} + {hook h='displayHotelRoomListTableRowColumn' index=$key id_room=$room_info['id']} + {else} + {hook h='displayHotelRoomListTableRowColumn' index=$key} + {/if} + @@ -156,6 +168,41 @@
+ + {if isset($room_info['id'])} - {if isset($room_info['booked_dates']) && $room_info['booked_dates']} + {if isset($room_info['booked_dates']) && json_decode($room_info['booked_dates'])} {/if} @@ -119,6 +128,9 @@ {for $k=0 to 1} {assign var="var_name_room_info" value="rooms_info[`$k`]"}
+ +
+
{/if} - - {*Disable Dates Model*}