dashboard: add UI to change background image

This commit is contained in:
Johannes Zellner
2024-04-05 16:26:59 +02:00
parent 2515b032d0
commit 544b8180b2
4 changed files with 50 additions and 20 deletions

View File

@@ -55,12 +55,13 @@
<div class="form-group">
<div>
<label class="control-label">{{ 'branding.background' | tr }}</label>
<div class="branding-background">
<input id="userBackgroundInput" type="checkbox" ng-model="background.enabled">
<label for="userBackgroundInput" class="control-label">Use background image</label>
<div class="branding-background" ng-show="background.enabled" ng-click="background.selectNew()">
<img ng-src="{{ background.url() }}"/>
<div class="overlay"></div>
</div>
<input type="file" id="backgroundFileInput" style="display: block" accept="image/*"/>
<input type="file" id="backgroundFileInput" style="display: none" accept="image/*"/>
</div>
</div>