Rename func and put error below the control label

This commit is contained in:
Girish Ramakrishnan
2019-09-24 00:04:31 -07:00
parent 44f62eac9a
commit 7946f5ee81
4 changed files with 6 additions and 5 deletions

View File

@@ -18,7 +18,8 @@
<form role="form" name="appInstallForm" ng-submit="appInstall.submit()" autocomplete="off">
<div class="has-error text-center" ng-show="appInstall.error.other" ng-bind-html="appInstall.error.other"></div>
<div class="form-group" ng-class="{ 'has-error': (appInstallForm.location.$dirty && appInstallForm.location.$invalid) || (!appInstallForm.location.$dirty && appInstall.error.location) }">
<label class="control-label" for="appInstallLocationInput">Location {{ appInstall.error.location }} </label>
<label class="control-label" for="appInstallLocationInput">Location</label>
<div ng-show="appInstall.error.location"><small>{{ appInstall.error.location }}</small></div>
<div class="input-group form-inline">
<input type="text" class="form-control" ng-model="appInstall.location" id="appInstallLocationInput" name="location" placeholder="Leave empty to use bare domain" autofocus>
<div class="input-group-btn">