jhipster-sample-app/src/main/webapp/scripts/app/entities/label/label-dialog.html

43 lines
2.0 KiB
HTML

<form name="editForm" role="form" novalidate ng-submit="save()" show-validation>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"
ng-click="clear()">&times;</button>
<h4 class="modal-title" id="myLabelLabel" translate="sampleApplicationApp.label.home.createOrEditLabel">Create or edit a Label</h4>
</div>
<div class="modal-body">
<jh-alert-error></jh-alert-error>
<div class="form-group">
<label for="id" translate="global.field.id">ID</label>
<input type="text" class="form-control" id="id" name="id"
ng-model="label.id" readonly />
</div>
<div class="form-group">
<label translate="sampleApplicationApp.label.label" for="field_label">Label</label>
<input type="text" class="form-control" name="label" id="field_label"
ng-model="label.label"
required ng-minlength="3" />
<div ng-show="editForm.label.$invalid">
<p class="help-block"
ng-show="editForm.label.$error.required" translate="entity.validation.required">
This field is required.
</p>
<p class="help-block"
ng-show="editForm.label.$error.minlength" translate="entity.validation.minlength" translate-value-min="3">
This field is required to be at least 3 characters.
</p>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" ng-click="clear()">
<span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span translate="entity.action.cancel">Cancel</span>
</button>
<button type="submit" ng-disabled="editForm.$invalid || isSaving" class="btn btn-primary">
<span class="glyphicon glyphicon-save"></span>&nbsp;<span translate="entity.action.save">Save</span>
</button>
</div>
</form>