Externalize login template.
This commit is contained in:
parent
5a1f2a9f30
commit
0d65f5318a
@ -109,21 +109,7 @@ angular.module('accountant', [
|
||||
|
||||
$ngBootbox.customDialog({
|
||||
title: 'Authentification requise',
|
||||
message: '<form class=\'form-horizontal\'>' +
|
||||
' <div class=\'form-group\'>' +
|
||||
' <label for=\'email\' class=\'col-sm-4 control-label\'>Adresse email</label>' +
|
||||
' <div class=\'col-sm-8\'>' +
|
||||
' <input type=\'text\' class=\'form-control\' id=\'email\' ng-model=\'email\' placeholder=\'Nom d\\\'utilisateur\'>' +
|
||||
' </div>' +
|
||||
' </div>' +
|
||||
' <div class=\'form-group\'>' +
|
||||
' <label for=\'password\' class=\'col-sm-4 control-label\'>Mot de passe</label>' +
|
||||
' <div class=\'col-sm-8\'>' +
|
||||
' <input type=\'password\' class=\'form-control\' id=\'password\' ng-model=\'password\' placeholder=\'Mot de passe\'>' +
|
||||
' </div>' +
|
||||
' </div>' +
|
||||
' </div>' +
|
||||
'</form>',
|
||||
templateUrl: 'views/login.tmpl.html',
|
||||
buttons: {
|
||||
login: {
|
||||
label: 'Login',
|
||||
|
17
accountant/frontend/static/views/login.tmpl.html
Normal file
17
accountant/frontend/static/views/login.tmpl.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!-- vim: set tw=80 ts=2 sw=2 sts=2: -->
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="email" class="col-sm-4 control-label">Adresse email</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control" id="email" ng-model="email"
|
||||
placeholder="Nom d'utilisateur">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="col-sm-4 control-label">Mot de passe</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="password" class="form-control" id="password" ng-model="password" placeholder="Mot de passe">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user