Fix display of error message in mailbox add
This commit is contained in:
@@ -52,10 +52,10 @@
|
||||
<div class="modal-body">
|
||||
<form name="mailboxadd_form" role="form" ng-submit="mailboxes.add.submit()" autocomplete="off">
|
||||
<input type="password" style="display: none;">
|
||||
<div class="form-group" ng-class="{ 'has-error': mailboxes.add.error.statusCode === 409 }">
|
||||
<div class="form-group" ng-class="{ 'has-error': mailboxes.add.error }">
|
||||
<label class="control-label">Name</label>
|
||||
<div class="control-label" ng-show="mailboxes.add.error.statusCode === 409">
|
||||
<small>A mailbox, alias or mailing list with this name already exists</small>
|
||||
<div class="control-label" ng-show="mailboxes.add.error">
|
||||
<small>{{ mailboxes.add.error.message }}</small>
|
||||
</div>
|
||||
<div class="input-group form-inline" style="margin-top: 10px;">
|
||||
<input type="text" class="form-control" ng-model="mailboxes.add.name" placeholder="Name" required autofocus autocomplete="off"/>
|
||||
|
||||
Reference in New Issue
Block a user