2015-08-31 08:56:26 +02:00
|
|
|
{extends 'admin/admin_page.tpl'}
|
|
|
|
|
|
|
|
{block 'main'}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<form action="" method="POST">
|
|
|
|
|
|
|
|
{if $error}
|
|
|
|
<div id="result" class="alert alert-danger">{$error}</div>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>{__('Installation', 'General')}</legend>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="appName" class="input-group-addon">{__('Generic', 'ASTERISK')} {__('Installation', 'AppName')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="text" class="form-control" id="appName" name="appName" value="{$fields['appName']}" autofocus required>
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="appMail" class="input-group-addon">{__('Generic', 'ASTERISK')} {__('Installation', 'AppMail')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="email" class="form-control" id="appMail" name="appMail" value="{$fields['appMail']}" required>
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="responseMail" class="input-group-addon">{__('Installation', 'ResponseMail')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="email" class="form-control" id="responseMail" name="responseMail" value="{$fields['responseMail']}">
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="defaultLanguage" class="input-group-addon">{__('Generic', 'ASTERISK')} {__('Installation', 'DefaultLanguage')}</label>
|
2015-09-07 12:24:55 +02:00
|
|
|
<select type="email" class="form-control" id="defaultLanguage" name="defaultLanguage" required>
|
2015-09-07 16:34:24 +02:00
|
|
|
{foreach $langs as $lang=>$label}
|
|
|
|
<option value="{$lang}" {if $lang==$fields['defaultLanguage']}selected{/if}>{$label}</option>
|
|
|
|
{/foreach}
|
2015-08-31 08:56:26 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="cleanUrl" class="input-group-addon">{__('Installation', 'CleanUrl')}</label>
|
|
|
|
|
|
|
|
<div class="form-control">
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="checkbox" id="cleanUrl" name="cleanUrl" {($fields['cleanUrl']) ? 'checked' : ''}>
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend>{__('Installation', 'Database')}</legend>
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="dbConnectionString" class="input-group-addon">{__('Generic', 'ASTERISK')} {__('Installation', 'DbConnectionString')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="text" class="form-control" id="dbConnectionString" name="dbConnectionString" value="{$fields['dbConnectionString']}" required>
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="dbUser" class="input-group-addon">{__('Generic', 'ASTERISK')} {__('Installation', 'DbUser')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="text" class="form-control" id="dbUser" name="dbUser" value="{$fields['dbUser']}" required>
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="dbPassword" class="input-group-addon">{__('Installation', 'DbPassword')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="password" class="form-control" id="dbPassword" name="dbPassword" value="{$fields['dbPassword']}">
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="dbPrefix" class="input-group-addon">{__('Installation', 'DbPrefix')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="text" class="form-control" id="dbPrefix" name="dbPrefix" value="{$fields['dbPrefix']}">
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="input-group">
|
|
|
|
<label for="migrationTable" class="input-group-addon">{__('Generic', 'ASTERISK')} {__('Installation', 'MigrationTable')}</label>
|
2015-09-07 16:34:24 +02:00
|
|
|
<input type="text" class="form-control" id="migrationTable" name="migrationTable" value="{$fields['migrationTable']}" required>
|
2015-08-31 08:56:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<div class="text-center form-group">
|
|
|
|
<button type="submit" class="btn btn-primary">{__('Installation', 'Install')}</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/block}
|