73 lines
3.9 KiB
HTML
73 lines
3.9 KiB
HTML
<div class="row">
|
|
<div class="col-md-12 general-block-decorator">
|
|
|
|
<div class="row">
|
|
<div class="col-md-12 title title-without-tabs">
|
|
{intl d='beds24.bo.default' l="Configuration Beds 24"}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-container">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
{form name="beds24.form.configuration"}
|
|
<form action="{url path="/admin/beds24/configure"}" method="post">
|
|
{include
|
|
file = "includes/inner-form-toolbar.html"
|
|
hide_submit_buttons = false
|
|
|
|
page_url = {url path="/admin/module/Beds24"}
|
|
close_url = {url path="/admin/modules"}
|
|
}
|
|
|
|
{form_hidden_fields}
|
|
|
|
{if $form_error}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="alert alert-danger">{$form_error_message}</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">{render_form_field field="api_key" value=$api_key}</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="title title-without-tabs">{intl d='beds24.bo.default' l='Properties API Access keys'}</div>
|
|
<p>{intl d='beds24.bo.default' l='Please enter here the API access key for each of your properties. You\'ll find these keys in your Beds24 account SETTINGS >> PROPERTIES >> LINK >> API Access > propKey'}</p>
|
|
</div>
|
|
{if $properties}
|
|
{foreach $properties as $property}
|
|
<div class="col-md-6">{render_form_field field="prop_key_`$property.id`" value=$property.key}</div>
|
|
{/foreach}
|
|
{else}
|
|
<div class="col-md-12">
|
|
<div class="alert alert-warning">{intl d='beds24.bo.default' l='Enter the Beds24 API Key and validate the form to get property list'}</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="title title-without-tabs">{intl d='beds24.bo.default' l='Notification URL'}</div>
|
|
<div class="alert alert-info">
|
|
{intl d='beds24.bo.default' l='In your Beds 24 back-office, please go to Settings > Properties > Link and set the "Notify URL" field to the following value : <strong>%url</strong>' url={url path='/beds24/notify'}}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="title title-without-tabs">{intl d='beds24.bo.default' l='Request Cache'}</div>
|
|
<p>Requests to Beds24 are cached to minimize traffice and prevent throttling from Beds24 system.</p>
|
|
<p><a href="{url path="/admin/beds24/clear-cache"}" class="btn btn-primary">Clear request cache</a></p>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{/form}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|