modal-prompt.html
767 Bytes
<div class="modal-header">
<h4 ng-bind="options.titulo"></h4>
</div>
<div class="modal-body">
<input
type="text"
class="form-control"
ng-model="options.value"
ng-show="!options.textarea"
ng-readonly="options.readonly"
ng-keypress="aceptar($event.keyCode)">
<textarea
rows="5"
class="form-control text-uppercase"
ng-model="options.value"
ng-show="options.textarea"
ng-readonly="options.readonly"
ng-keypress="aceptar($event.keyCode)"></textarea>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="aceptar(13)" foca-focus="true">Aceptar</button>
<button class="btn btn-default" ng-click="cancelar()">Cancelar</button>
</div>