mail: add banner ui

part of cloudron/box#341
This commit is contained in:
Girish Ramakrishnan
2020-08-24 10:16:11 -07:00
parent ae24c1d968
commit 566f0f7783
3 changed files with 84 additions and 11 deletions

View File

@@ -608,6 +608,44 @@
</div>
</div>
</div>
<div class="card card-large">
<h4>Signature</h4>
<p>The text here will be attached to all emails going out from this domain.</p>
<div class="row" ng-hide="config.features.emailPremium">
<div class="col-md-12">
This feature is only available in the paid plans. <a href="" class="pull-right" ng-click="openSubscriptionSetup()">Setup Subscription Now</a>
</div>
</div>
<div class="row" ng-show="config.features.emailPremium">
<div class="col-md-12">
<form role="form" name="bannerForm" ng-submit="banner.submit()" autocomplete="off">
<fieldset>
<div class="form-group">
<label class="control-label" style="width: 100%">Text format</label>
<textarea ng-model="banner.text" class="form-control" rows="4"></textarea>
</div>
<div class="form-group">
<label class="control-label" style="width: 100%">HTML format (Optional)</label>
<textarea ng-model="banner.html" class="form-control" rows="4"></textarea>
</div>
<input class="ng-hide" type="submit" ng-disabled="banner.$invalid || banner.busy"/>
</fieldset>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
<button class="btn btn-outline btn-primary pull-right" ng-click="banner.submit()" ng-disabled="banner.$invalid || banner.busy">
<i class="fa fa-circle-notch fa-spin" ng-show="banner.busy"></i> Save
</button>
</div>
</div>
</div>
</uib-tab>
<uib-tab index="3" heading="Status">