mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Beautify postinstall (WIP)
This commit is contained in:
parent
8356416da8
commit
e092b9beff
3 changed files with 135 additions and 0 deletions
15
views/postinstall/postinstall_1.ms
Normal file
15
views/postinstall/postinstall_1.ms
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
<h2>{{t 'postinstall_intro_1'}}</h2>
|
||||
<p class="lead">
|
||||
{{t 'postinstall_intro_2'}}
|
||||
<br />
|
||||
{{t 'postinstall_intro_3'}}
|
||||
</p>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="pull-left">
|
||||
<a href="#/postinstall/domain" class="btn btn-lg btn-primary slide">
|
||||
{{t 'begin'}}
|
||||
</a>
|
||||
</div>
|
81
views/postinstall/postinstall_2.ms
Normal file
81
views/postinstall/postinstall_2.ms
Normal file
|
@ -0,0 +1,81 @@
|
|||
<h2>{{t 'domain'}}</h2>
|
||||
<p class="lead">
|
||||
{{t 'postinstall_domain'}}
|
||||
</p>
|
||||
<br />
|
||||
<div class="panel-group" id="accordion">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
|
||||
{{t 'domain_add_panel_with_domain'}}
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapseOne" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<small>{{t 'domain_add_dns_doc'}}</small>
|
||||
<div class="br"></div>
|
||||
<div class="form-group">
|
||||
<strong class="col-sm-3 control-label">{{t 'domain_name'}}</strong>
|
||||
<div class="col-sm-9">
|
||||
<div class="input-group">
|
||||
<label for="domain" class="input-group-addon">
|
||||
<span class="fa-fw fa-cloud"></span><span class="sr-only">{{t 'domain'}}</span>
|
||||
</label>
|
||||
<input type="text" id="domain" name="domain" class="form-control" placeholder="{{t 'myserver_org'}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
|
||||
{{t 'domain_add_panel_without_domain'}}
|
||||
</a>
|
||||
</h4>
|
||||
</div>
|
||||
<div id="collapseTwo" class="panel-collapse collapse">
|
||||
<div class="panel-body">
|
||||
<small>{{t 'domain_add_dyndns_doc'}}</small>
|
||||
<div class="br"></div>
|
||||
<div class="form-group">
|
||||
<strong class="col-sm-3 control-label">{{t 'domain_name'}}</strong>
|
||||
<div class="clearfix visible-xs"></div>
|
||||
<div class="col-sm-4 col-xs-6">
|
||||
<div class="input-group">
|
||||
<label for="ddomain" class="input-group-addon">
|
||||
<span class="fa-fw fa-cloud"></span><span class="sr-only">{{t 'domain'}}</span>
|
||||
</label>
|
||||
<input type="text" id="ddomain" name="ddomain" class="form-control" placeholder="{{t 'myserver'}}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 col-xs-6">
|
||||
<select class="form-control" name="ddomain-ext">
|
||||
{{#ddomains}}
|
||||
<option>{{.}}</option>
|
||||
{{/ddomains}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div class="pull-left">
|
||||
<a href="#/postinstall" class="btn btn-default btn-lg slide back">
|
||||
<span class="fa-chevron-left"></span> {{t 'previous'}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<a href="#/postinstall/password" class="btn btn-default btn-lg slide savedomain">
|
||||
{{t 'next'}} <span class="fa-chevron-right"></span>
|
||||
</a>
|
||||
</div>
|
39
views/postinstall/postinstall_3.ms
Normal file
39
views/postinstall/postinstall_3.ms
Normal file
|
@ -0,0 +1,39 @@
|
|||
<form action="#/postinstall" method="POST" class="form-horizontal">
|
||||
|
||||
<h2>{{t 'password'}}</h2>
|
||||
<p class="lead">
|
||||
{{t 'postinstall_password'}}
|
||||
</p>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-4 control-label">{{t 'administration_password'}}</label>
|
||||
<div class="col-sm-8">
|
||||
<input required type="password" id="password" name="password" class="form-control" placeholder="••••••">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="confirmation" class="col-sm-4 control-label">{{t 'password_confirmation'}}</label>
|
||||
<div class="col-sm-8">
|
||||
<input required type="password" id="confirmation" name="confirmation" class="form-control" placeholder="••••••">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input name="domain" type="hidden" value="{{ domain }}">
|
||||
|
||||
<div class="pull-left">
|
||||
<a href="#/postinstall/domain" class="btn btn-default btn-lg slide back">
|
||||
<span class="fa-chevron-left"></span> {{t 'previous'}}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<input type="submit" class="btn btn-default btn-lg btn-primary" value="{{t 'Go !'}}">
|
||||
</div>
|
||||
|
||||
</form>
|
Loading…
Reference in a new issue