Externalize login template.

This commit is contained in:
Alexis Lahouze 2016-03-27 23:06:00 +02:00
parent 5a1f2a9f30
commit 0d65f5318a
2 changed files with 18 additions and 15 deletions

View File

@ -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',

View 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>