79 lines
4.1 KiB
HTML
79 lines
4.1 KiB
HTML
<!DOCTYPE html>
|
|
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
|
|
<head>
|
|
{$pageName="install"}
|
|
{include="includes"}
|
|
</head>
|
|
<body>
|
|
<div id="install" class="page-install">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3">
|
|
<form method="post" action="{$base_path}/install" name="installform" id="installform" class="card">
|
|
<div class="card-title">Welcome to your Shaarli</div>
|
|
<div class="card-body">
|
|
<p>{'It looks like it\'s the first time you run Shaarli. Please configure it.'|t}</p>
|
|
<div class="form-entry">
|
|
<label for="setlogin">{'Username'|t}</label>
|
|
<input type="text" name="setlogin" id="setlogin" class="autofocus"/>
|
|
</div>
|
|
<div class="form-entry">
|
|
<label for="setpassword">{'Password'|t}</label>
|
|
<input type="password" id="setpassword" name="setpassword"/>
|
|
</div>
|
|
<div class="form-entry">
|
|
<label for="continent">{'Timezone'|t}</label>
|
|
<div class="row">
|
|
<div class="col-sm-6" id="timezone-continent">
|
|
<select name="continent" id="continent">
|
|
{loop="$continents"}
|
|
{if="$key !== 'selected'"}
|
|
<option value="{$value}" {if="$continents.selected === $value"}selected{/if}>
|
|
{$value}
|
|
</option>
|
|
{/if}
|
|
{/loop}
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-6" id="timezone-city">
|
|
<select name="city" id="city">
|
|
{loop="$cities"}
|
|
{if="$key !== 'selected'"}
|
|
<option value="{$value.city}" {if="$cities.selected === $value.city"}selected{/if} data-continent="{$value.continent}">
|
|
{$value.city}
|
|
</option>
|
|
{/if}
|
|
{/loop}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-entry">
|
|
<label for="title">{'Shaarli title'|t}</label>
|
|
<input type="text" name="title" id="title" placeholder="{'My links'|t}"/>
|
|
</div>
|
|
<div class="form-entry">
|
|
<input type="checkbox" class="filled-in" name="updateCheck" id="updateCheck" checked="checked">
|
|
<label for="updateCheck">{'Notify me when a new release is ready'|t}</label>
|
|
</div>
|
|
<div class="form-entry">
|
|
<input type="checkbox" class="filled-in" name="enableApi" id="enableApi">
|
|
<label for="enableApi">{'Enable REST API'|t}</label>
|
|
<div class="sublabel">{'Allow third party software to use Shaarli such as mobile application'|t}</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<button type="submit" name="Save" class="button-raised button-primary pull-right">{'Install'|t}</button>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{include="server.requirements"}
|
|
</div>
|
|
{include="page.footer"}
|
|
</body>
|
|
</html>
|