Improve app location settings

This commit is contained in:
Johannes Zellner
2019-09-12 17:08:45 +02:00
parent fd73b28d66
commit 96bb293c1f
2 changed files with 20 additions and 6 deletions

View File

@@ -106,13 +106,16 @@
<div id="location"><h3>Location</h3></div>
<div class="card">
<div class="task-active-overlay" ng-show="app.installationState === 'pending_location_change'">
<h1><i class="fa fa-circle-notch fa-spin"></i></h1>
</div>
<div class="row">
<div class="col-md-12">
<fieldset>
<form role="form" name="locationForm" ng-submit="location.submit()" autocomplete="off">
<div class="has-error text-center" ng-show="location.error.other">{{ location.error.other }}</div>
<div class="form-group" ng-class="{ 'has-error': (locationForm.location.$dirty && locationForm.location.$invalid) || (!locationForm.location.$dirty && location.error.location) }">
<label class="control-label" for="locationLocationInput">Location {{ location.error.location }} </label>
<label class="control-label" for="locationLocationInput">Domain {{ location.error.location }} </label>
<div class="input-group form-inline">
<input type="text" class="form-control" ng-model="location.location" id="locationLocationInput" name="location" placeholder="{{ 'Leave empty to use bare domain' }}" autofocus>
@@ -190,11 +193,7 @@
</div>
</div>
<div class="row">
<div class="col-md-6">
<span class="text-success text-bold" ng-show="location.success">Saved</span>
</div>
<div class="col-md-6 text-right">
<div class="col-md-12 text-right">
<button class="btn btn-outline btn-primary pull-right" ng-click="location.submit()" ng-disabled="location.$invalid || location.busy"><i class="fa fa-circle-notch fa-spin" ng-show="location.busy"></i> Save</button>
</div>
</div>