Add location and domain selector to repair dialog
This commit is contained in:
@@ -111,9 +111,28 @@
|
||||
<h4 class="modal-title">Repair {{ app.fqdn }}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>The app task {{ app.error.task.installationState }} {{ app.error.crashed ? 'crashed' : '' }}{{ app.error.stopped ? 'stopped' : '' }} . Repair will attempt to retry.</p>
|
||||
<div ng-show="repair.optionalDomains.length">
|
||||
<p ng-repeat="alternateDomain in repair.optionalDomains">
|
||||
<p>The app task <b>{{ app.error.task | installationStateLabel:user }}</b> failed. Repair will attempt to retry.</p>
|
||||
<p class="text-danger">{{ app.error.message }}</p>
|
||||
<div class="form-group" ng-show="repair.location && repair.domain">
|
||||
<label class="control-label">Location</label>
|
||||
<div class="input-group form-inline">
|
||||
<input type="text" class="form-control" ng-model="repair.location" name="location" placeholder="{{ 'Leave empty to use bare domain' }}" autofocus>
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||
<span>{{ (!repair.location ? '' : (repair.domain.config.hyphenatedSubdomains ? '-' : '.')) + repair.domain.domain }}</span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right" role="menu">
|
||||
<li ng-repeat="domain in domains">
|
||||
<a href="" ng-click="repair.domain = domain">{{ domain.domain }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-show="repair.alternateDomains.length">
|
||||
<p ng-repeat="alternateDomain in repair.alternateDomains">
|
||||
<label class="control-label"><input type="checkbox" ng-model="alternateDomain.enabled"> {{ alternateDomain.subdomain }}.{{ alternateDomain.domain }}</label>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user