Added new hook in the configuration.tpl to add new cols in the rooms configuration table

This commit is contained in:
vishalsingh.qlo325
2025-04-22 12:16:21 +05:30
parent 0b5a617753
commit 9fc3ab77c0

View File

@@ -63,6 +63,7 @@
</span>
</label>
</th>
{hook h='displayAddColumnInRoomList'}
<th class="col-sm-1 center">
{l s='--'}
</th>
@@ -99,6 +100,7 @@
</a>
<input type="hidden" class="form-control disable_dates_json" name="{$var_name_room_info|cat:'[disable_dates_json]'}" {if $room_info['id_status'] == $rm_status['STATUS_TEMPORARY_INACTIVE']['id']}value="{$room_info['disable_dates_json']|escape:'html':'UTF-8'}"{/if}>
</td>
{hook h='displayAddRowInRoomList' item=$key id_room=$room_info['id']}
<td class="col-sm-1 center">
{if isset($room_info['id'])}
{if $room_info['booked_dates']}
@@ -139,6 +141,7 @@
</a>
<input type="hidden" class="form-control disable_dates_json" name="{$var_name_room_info|cat:'[disable_dates_json]'}" value="">
</td>
{hook h='displayAddRowInRoomList' item=$k}
<td class="center col-sm-1">
{if $k == 1}
<a href="#" class="remove-rooms-button btn btn-default"><i class="icon-trash"></i></a>
@@ -417,6 +420,7 @@
html += '</a>';
html += '<input type="hidden" class="form-control disable_dates_json" name="'+prefix+'[disable_dates_json]">';
html += '</td>';
html += '' + '{hook h='displayAddRowInRoomList'}';
html += '<td class="center col-sm-1">';
html += '<a href="#" class="remove-rooms-button btn btn-default"><i class="icon-trash"></i></a>';
html += '</td>';
@@ -1319,4 +1323,4 @@
}
});
</script>
</script>