1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-29 18:19:44 +02:00
This commit is contained in:
Harvey Kandola 2017-11-29 11:20:04 +00:00
parent fbb6f3485d
commit 7188324714
3 changed files with 34 additions and 35 deletions

View file

@ -10,12 +10,10 @@
// https://documize.com // https://documize.com
import { inject as service } from '@ember/service'; import { inject as service } from '@ember/service';
import Controller from '@ember/controller'; import Controller from '@ember/controller';
import NotifierMixin from "../../mixins/notifier";
import Encoding from "../../utils/encoding"; import Encoding from "../../utils/encoding";
export default Controller.extend(NotifierMixin, { export default Controller.extend({
ajax: service(), ajax: service(),
actions: { actions: {

View file

@ -36,6 +36,11 @@ export default Route.extend({
}, },
activate() { activate() {
$('body').addClass('background-color-theme-light');
document.title = "Documize Setup"; document.title = "Documize Setup";
},
deactivate() {
$('body').removeClass('background-color-theme-light');
} }
}); });

View file

@ -1,36 +1,32 @@
<div class="col-lg-9 col-md-9 col-sm-9"> <div class="col-lg-9 col-md-9 col-sm-9">
<form {{action "save" on="submit"}}> <h1>Let's setup Documize</h1>
<div class="form-bordered"> <h3>Database: {{model.dbname}}</h3>
<div class="form-header"> <form class="my-5" {{action "save" on="submit"}}>
<div class="title">Let's setup Documize</div> <div class="form-group">
<div class="tip">Database: <b>{{model.dbname}}</b></div> <label>Team</label>
</div> {{focus-input id="siteTitle" type="text" value=model.title class=(if hasEmptyTitleError 'form-control error' 'form-control')}}
<div class="input-control input-transparent"> <small class="form-text text-muted">What's your tribe called?</small>
<label>Team</label>
<div class="tip">What's your tribe called?</div>
{{focus-input id="siteTitle" type="text" value=model.title class=(if hasEmptyTitleError 'error')}}
</div>
<div class="input-control input-transparent">
<label>Firstname</label>
<div class="tip">What do people call you?</div>
{{input id="adminFirstname" type="text" value=model.firstname class=(if hasEmptyFirstnameError 'error')}}
</div>
<div class="input-control input-transparent">
<label>Lastname</label>
<div class="tip">How the government refers to you</div>
{{input id="adminLastname" type="text" value=model.lastname class=(if hasEmptyLastnameError 'error')}}
</div>
<div class="input-control input-transparent">
<label>Email</label>
<div class="tip">No spam. Ever!</div>
{{input id="adminEmail" type="email" value=model.email class=(if hasEmptyEmailError 'error')}}
</div>
<div class="input-control input-transparent">
<label>Password</label>
<div class="tip">Something you can remember without writing it down.</div>
{{input id="adminPassword" type="text" value=model.password class=(if hasEmptyPasswordError 'error')}}
</div>
<button type="submit" class="regular-button button-green" {{action 'save'}}>Setup</button>
</div> </div>
<div class="form-group">
<label for="adminFirstname">Firstname</label>
{{input id="adminFirstname" type="text" value=model.firstname class=(if hasEmptyFirstnameError 'form-control error' 'form-control')}}
<small class="form-text text-muted">What do people call you?</small>
</div>
<div class="form-group">
<label for="adminLastname">Lastname</label>
{{input id="adminLastname" type="text" value=model.lastname class=(if hasEmptyLastnameError 'form-control error' 'form-control')}}
<small class="form-text text-muted">How the government refers to you</small>
</div>
<div class="form-group">
<label for="adminEmail">Email</label>
{{input id="adminEmail" type="email" value=model.email class=(if hasEmptyEmailError 'form-control error' 'form-control')}}
<small class="form-text text-muted">No spam. Ever.</small>
</div>
<div class="form-group">
<label for="adminPassword">Password</label>
{{input id="adminPassword" type="password" value=model.password class=(if hasEmptyPasswordError 'form-control error' 'form-control')}}
<small class="form-text text-muted">Something you can remember without writing it down</small>
</div>
<button type="submit" class="btn bt-success mt-5" {{action 'save'}}>Setup</button>
</form> </form>
</div> </div>