2020-03-18 21:31:51 -07:00
|
|
|
<!-- Modal change avatar -->
|
|
|
|
|
<div class="modal fade" id="avatarChangeModal" tabindex="-1" role="dialog">
|
|
|
|
|
<div class="modal-dialog">
|
2024-04-26 14:10:12 +02:00
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h4 class="modal-title">{{ 'branding.changeLogo.title' | tr }}</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body branding-avatar-selector">
|
|
|
|
|
<img id="previewAvatar" width="128" height="128" ng-src="{{ avatarChange.avatarUrl() }}"/>
|
|
|
|
|
<input type="file" id="avatarFileInput" style="display: none" accept="image/*"/>
|
2020-03-18 21:31:51 -07:00
|
|
|
|
2024-04-26 14:10:12 +02:00
|
|
|
<br/>
|
|
|
|
|
<br/>
|
2020-03-18 21:31:51 -07:00
|
|
|
|
2024-04-26 14:10:12 +02:00
|
|
|
<div class="grid">
|
|
|
|
|
<div class="item" ng-repeat="avatar in avatarChange.availableAvatars" style="background-image: url('{{avatar.data || avatar.url}}');" ng-click="avatarChange.setPreviewAvatar(avatar)"></div>
|
|
|
|
|
<div class="item add" ng-click="avatarChange.showCustomAvatarSelector()"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'main.dialog.cancel' | tr }}</button>
|
|
|
|
|
<button type="button" class="btn btn-success" ng-click="avatarChange.setAvatar()"> {{ 'main.dialog.save' | tr }}</button>
|
2020-03-18 21:31:51 -07:00
|
|
|
</div>
|
2024-04-26 14:10:12 +02:00
|
|
|
</div>
|
2020-03-18 21:31:51 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-03-18 17:53:50 -07:00
|
|
|
<div class="content">
|
|
|
|
|
|
|
|
|
|
<div class="text-left">
|
2020-10-28 16:17:14 +01:00
|
|
|
<h1>{{ 'branding.title' | tr }}</h1>
|
2020-03-18 17:53:50 -07:00
|
|
|
</div>
|
|
|
|
|
|
2020-03-18 21:31:51 -07:00
|
|
|
<div class="card" style="margin-bottom: 15px;">
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
2020-03-19 19:38:14 -07:00
|
|
|
<div class="col-md-12">
|
|
|
|
|
<form role="form" name="aboutForm" ng-submit="about.submit()" autocomplete="off">
|
|
|
|
|
<fieldset>
|
2021-07-08 12:01:12 -07:00
|
|
|
<div class="form-group" ng-class="{ 'has-error': about.error.cloudronName }">
|
2020-11-05 12:46:24 +01:00
|
|
|
<label class="control-label">{{ 'branding.cloudronName' | tr }}</label>
|
2020-03-19 19:38:14 -07:00
|
|
|
<div class="control-label" ng-show="about.error.cloudronName">{{about.error.cloudronName}}</div>
|
2021-07-08 12:01:12 -07:00
|
|
|
<input type="text" class="form-control" id="inputCloudronName" name="name" ng-model="about.cloudronName" ng-minlength="1" maxlength="64" required>
|
2020-03-19 19:38:14 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div>
|
2020-11-05 12:46:24 +01:00
|
|
|
<label class="control-label">{{ 'branding.logo' | tr }}</label>
|
2020-03-19 19:38:14 -07:00
|
|
|
</div>
|
2020-03-25 08:53:27 -07:00
|
|
|
<div class="branding-avatar" ng-click="avatarChange.showChangeAvatar()">
|
2020-03-19 19:38:14 -07:00
|
|
|
<img ng-src="{{ about.avatarUrl() }}"/>
|
2024-04-05 17:37:58 +02:00
|
|
|
<i class="picture-edit-indicator fa fa-pencil-alt"></i>
|
2020-03-19 19:38:14 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-03-18 21:31:51 -07:00
|
|
|
|
2024-04-05 12:31:07 +02:00
|
|
|
<div class="form-group">
|
|
|
|
|
<div>
|
2024-06-25 16:25:52 +02:00
|
|
|
<label class="control-label">{{ 'branding.backgroundImage' | tr }}</label>
|
|
|
|
|
<div class="branding-background" ng-click="background.selectNew()">
|
2024-04-05 17:15:31 +02:00
|
|
|
<img ng-src="{{ background.url() }}" onerror="this.src = '/img/background-image-placeholder.svg'"/>
|
2024-04-05 17:37:58 +02:00
|
|
|
<i class="picture-edit-indicator fa fa-pencil-alt"></i>
|
2024-04-05 12:31:07 +02:00
|
|
|
</div>
|
2024-06-25 16:25:52 +02:00
|
|
|
<a href="" ng-show="!background.cleared" ng-click="background.clear()">{{ 'branding.clearBackgroundImage' | tr }}</a>
|
2024-04-05 16:26:59 +02:00
|
|
|
<input type="file" id="backgroundFileInput" style="display: none" accept="image/*"/>
|
2024-04-05 12:31:07 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-03-19 19:38:14 -07:00
|
|
|
<input class="ng-hide" type="submit" ng-disabled="(!about.avatar && !aboutForm.$dirty) || aboutForm.$invalid || about.busy"/>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</form>
|
2020-03-18 17:53:50 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-03-19 19:38:14 -07:00
|
|
|
<div class="row">
|
2020-03-18 17:53:50 -07:00
|
|
|
<div class="col-md-12 text-right">
|
2024-04-05 12:31:07 +02:00
|
|
|
<button class="btn btn-outline btn-primary pull-right" ng-click="about.submit()" ng-disabled="false && (!about.avatar && !aboutForm.$dirty) || aboutForm.$invalid || about.busy"><i class="fa fa-circle-notch fa-spin" ng-show="about.busy"></i> {{ 'main.dialog.save' | tr }}</button>
|
2020-03-18 17:53:50 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2020-03-19 23:24:22 -07:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="text-left">
|
2020-11-05 12:46:24 +01:00
|
|
|
<h3>{{ 'branding.footer.title' | tr }}</h3>
|
2020-03-19 23:24:22 -07:00
|
|
|
</div>
|
|
|
|
|
|
2022-05-26 14:13:13 -07:00
|
|
|
<div class="card">
|
2020-03-19 23:24:22 -07:00
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
2020-06-17 13:15:52 +02:00
|
|
|
<form role="form" name="footerForm" autocomplete="off">
|
2020-12-03 21:57:41 -08:00
|
|
|
<p>{{ 'branding.footer.description' | tr }} <sup><a ng-href="https://docs.cloudron.io/branding/#footer" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup></p>
|
2020-06-17 13:15:52 +02:00
|
|
|
<textarea name="footer" class="form-control" ng-model="footer.content" ng-disabled="footer.busy"></textarea>
|
|
|
|
|
</form>
|
2020-03-19 23:24:22 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<br/>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12 text-right">
|
2020-11-23 16:27:51 +01:00
|
|
|
<button class="btn btn-outline btn-primary pull-right" ng-click="footer.submit()" ng-disabled="!footerForm.$dirty || footerForm.$invalid || footer.busy"><i class="fa fa-circle-notch fa-spin" ng-show="footer.busy"></i> {{ 'main.dialog.save' | tr }}</button>
|
2020-03-19 23:24:22 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-06-17 13:15:52 +02:00
|
|
|
</div>
|
2020-03-19 23:24:22 -07:00
|
|
|
</div>
|