-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from ojgarciab/Mejora_3
Implementado agregar usuarios
- Loading branch information
Showing
4 changed files
with
111 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<form novalidate name="AddNewForm" id="add-new-form" method="post" action=""> | ||
<h2><button class="btn btn-success" ng-disabled="AddNewForm.$invalid || isUnchanged(usuario)" id="add-new-btn" ng-click="agregar(usuario, usuario.id)"> | ||
<i class="glyphicon glyphicon-plus"></i></button> Agregar usuario</h2> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<input type="hidden" ng-model="usuario.id" value="{{usuario.id}}" /> | ||
<div class="form-group"> | ||
<label for="usuario">Usuario:</label> | ||
<input class="form-control" type="text" ng-model="usuario.usuario" value="{{usuario.usuario}}" required /> | ||
</div> | ||
<div class="form-group"> | ||
<label for="nombre">Nombre:</label> | ||
<input class="form-control" type="text" ng-model="usuario.nombre" value="{{usuario.nombre}}" required /> | ||
</div> | ||
<div class="form-group"> | ||
<label for="apellidos">Apellidos:</label> | ||
<input class="form-control" type="text" ng-model="usuario.apellidos" value="{{usuario.apellidos}}" required /> | ||
</div> | ||
<div style="float: right;"> | ||
<button class="btn btn-danger" ng-click="borrar(usuario)"><i class="glyphicon glyphicon-trash"></i> Borrar</button> | ||
<button class="btn btn-success" ng-disabled="AddNewForm.$invalid || isUnchanged(usuario)" id="add-new-btn" ng-click="agregar(usuario)"> | ||
<i class="glyphicon glyphicon-plus"></i> Agregar</button></div> | ||
<a href="#/" class="btn btn-default"><i class="glyphicon glyphicon-backward"></i> Cancelar</a> | ||
<button class="btn btn-info" ng-click="aleatorio()"><i class="glyphicon glyphicon-random"></i> Aleatorio</button> | ||
</div> | ||
</div> | ||
</form> |