Check the condition and display the “No hotel available” message if no hotel is found
This commit is contained in:
committed by
azhar bhat
parent
4cb07af0c5
commit
59b724aaf5
@@ -137,12 +137,16 @@
|
||||
{l s='Select Hotel'}
|
||||
</label>
|
||||
<div class="col-sm-5">
|
||||
{if isset($htl_info) && $htl_info}
|
||||
<select name="id_hotel" id="hotel_place" class="form-control chosen">
|
||||
{foreach from=$htl_info item=htl_dtl}
|
||||
<option value="{$htl_dtl['id_hotel']}" >{$htl_dtl['hotel_name']}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<p class="help-block">{l s='Hotel once assigned cannot be reassigned'}</p>
|
||||
{else}
|
||||
<div class="control-label col-sm-3 text-danger">{l s='No hotel are available'}</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user