301 lines
12 KiB
HTML
301 lines
12 KiB
HTML
<!-- Modal update -->
|
|
<div class="modal fade" id="updateModal" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h4 class="modal-title">Cloudron Update to <b>{{config.update.box.version}}</b> </h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div ng-hide="installedApps | readyToUpdate">
|
|
<p>The apps below are blocking the update because they have pending actions:</p>
|
|
<ul>
|
|
<li ng-repeat="app in installedApps | inProgressApps">{{app.location}}</li>
|
|
</ul>
|
|
<span>Please wait for the above operations to finish.</span>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
|
|
<div ng-show="installedApps | readyToUpdate">
|
|
<p>Changes:</p>
|
|
<ul>
|
|
<li ng-repeat="change in config.update.box.changelog" ng-bind-html="change | markdown2html"></li>
|
|
</ul>
|
|
<br/>
|
|
<p ng-show="update.error.generic" class="text-danger">{{ update.error.generic }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<label class="checkbox-inline pull-left">
|
|
<input type="checkbox" ng-model="update.skipBackup"><b>Skip backup</b>
|
|
</label>
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
<button type="button" class="btn btn-success" ng-click="update.startUpdate()" ng-disabled="update.busy" ng-show="(installedApps | readyToUpdate)"><i class="fa fa-circle-notch fa-spin" ng-show="update.busy"></i> Update</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal registry config -->
|
|
<div class="modal fade" id="registryConfigModal" tabindex="-1" role="dialog">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">Private Registry Configuration</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form name="registryConfigForm" role="form" novalidate ng-submit="registryConfig.submit()" autocomplete="off">
|
|
<fieldset>
|
|
<p class="has-error text-center" ng-show="registryConfig.error">{{ registryConfig.error }}</p>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label" for="registryConfigServerAddress">Registry Server</label>
|
|
<input type="text" class="form-control" ng-model="registryConfig.serverAddress" id="registryConfigServerAddress" name="serveraddress" ng-disabled="registryConfig.busy" placeholder="docker.io" ng-required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label" for="registryConfigUsername">Username</label>
|
|
<input type="text" class="form-control" ng-model="registryConfig.username" id="registryConfigUsername" name="username" ng-disabled="registryConfig.busy" ng-required>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label" for="registryConfigEmail">Email (Optional)</label>
|
|
<input type="text" class="form-control" ng-model="registryConfig.email" id="registryConfigEmail" name="email" ng-disabled="registryConfig.busy">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="control-label" for="registryConfigPassword">Password/Token</label>
|
|
<input type="password" class="form-control" ng-model="registryConfig.password" id="registryConfigPassword" name="password" ng-disabled="registryConfig.busy" ng-required>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
<button type="button" class="btn btn-success" ng-click="registryConfig.submit()" ng-disabled="registryConfigForm.$invalid || registryConfig.busy"><i class="fa fa-circle-notch fa-spin" ng-show="registryConfig.busy"></i> Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<div class="text-left">
|
|
<h1>Settings</h1>
|
|
</div>
|
|
|
|
<div class="text-left" ng-show="user.isAtLeastOwner && !config.isDemo">
|
|
<h3>Cloudron.io Account</h3>
|
|
</div>
|
|
|
|
<div class="card" style="margin-bottom: 15px;" ng-show="user.isAtLeastOwner && !config.isDemo">
|
|
<div ng-show="subscriptionBusy">
|
|
<div class="row">
|
|
<div class="col-xs-12 text-center">
|
|
<h2><i class="fa fa-circle-notch fa-spin"></i></h2>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div ng-show="!subscriptionBusy">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
A Cloudron.io account is used to access the App Store and manage your subscription.
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="row" ng-show="!subscription">
|
|
<div class="col-xs-12 text-center">
|
|
<a class="btn btn-success" ng-href="/#/appstore">Setup Account</a>
|
|
</div>
|
|
</div>
|
|
<div class="row" ng-show="subscription">
|
|
<div class="col-xs-6">
|
|
<span class="text-muted">Account Email</span>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<a ng-href="{{ config.webServerOrigin + '/console.html#/userprofile?email=' + subscription.emailEncoded }}" target="_blank">{{ subscription.email }}</a>
|
|
</div>
|
|
</div>
|
|
<div class="row" ng-show="subscription">
|
|
<div class="col-xs-6">
|
|
<span class="text-muted">Cloudron ID</span>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<span>{{ subscription.cloudronId }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="row" ng-show="subscription">
|
|
<div class="col-xs-6">
|
|
<span class="text-muted">Subscription</span>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<span>{{ subscription.plan.name }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="row" ng-show="subscription">
|
|
<div class="col-xs-12 text-right">
|
|
<b class="text-danger" ng-show="subscription.cancel_at">Canceled and ends on {{ (subscription.cancel_at*1000) | prettyShortDate }}</b>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<div class="row" ng-show="subscription">
|
|
<div class="col-xs-12">
|
|
<a class="btn btn-success pull-right" ng-click="openSubscriptionSetup()">{{ subscription.plan.id === 'free' ? 'Setup' : (subscription.cancel_at ? 'Reactivate' : 'Change') }} Subscription</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-left">
|
|
<h3>Time Zone</h3>
|
|
</div>
|
|
|
|
<div class="card" style="margin-bottom: 15px;">
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<p>
|
|
The current timezone setting is <b>{{ timeZone.currentTimeZone.display }}</b>.<br/>
|
|
This setting is used for scheduling backup and update tasks.
|
|
</p>
|
|
<p class="text-danger" ng-show="timeZone.error"><br/>{{ timeZone.error }}</p>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<multiselect class="pull-right" ng-model="timeZone.timeZone" ng-disabled="timeZone.busy" options="tz.id for tz in timeZone.availableTimeZones" data-multiple="false" filter-after-rows="5" scroll-after-rows="10"></multiselect>
|
|
</div>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<span class="text-success text-bold" ng-show="timeZone.success && timeZone.timeZone === timeZone.currentTimeZone">Saved</span>
|
|
</div>
|
|
|
|
<div class="col-md-6 text-right">
|
|
<button class="btn btn-outline btn-primary pull-right" ng-click="timeZone.submit()" ng-disabled="timeZone.busy || timeZone.timeZone === timeZone.currentTimeZone"><i class="fa fa-circle-notch fa-spin" ng-show="timeZone.busy"></i> Save</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-left">
|
|
<h3>Updates</h3>
|
|
</div>
|
|
|
|
<div class="card" style="margin-bottom: 15px;">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<p>Configure the update schedule for apps</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="radio">
|
|
<label>
|
|
<input type="radio" name="scheduleRadio" ng-model="autoUpdate.pattern" value="00 30 1,3,5,23 * * *">
|
|
Every night
|
|
</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label>
|
|
<input type="radio" name="scheduleRadio" ng-model="autoUpdate.pattern" value="00 00 3,5 * * 3">
|
|
Wednesday night
|
|
</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label>
|
|
<input type="radio" name="scheduleRadio" ng-model="autoUpdate.pattern" value="00 00 1,3,5,23 * * 6">
|
|
Saturday night
|
|
</label>
|
|
</div>
|
|
<div class="radio">
|
|
<label>
|
|
<input type="radio" name="scheduleRadio" ng-model="autoUpdate.pattern" value="never">
|
|
No automatic updates
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<br/>
|
|
<div ng-if="update.busy" class="col-md-12" style="margin-bottom: 10px;">
|
|
<div class="progress progress-striped active animateMe">
|
|
<div class="progress-bar progress-bar-success" role="progressbar" style="width: {{ update.percent }}%"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-7">
|
|
<p ng-show="update.busy">{{ update.message }}</p>
|
|
<p ng-if="update.busy">
|
|
<div class="has-error" ng-show="update.errorMessage">
|
|
{{ update.errorMessage }}. <a ng-class="warning" ng-href="/logs.html?taskId={{update.taskId}}" target="_blank">Show Logs</a>
|
|
</div>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="col-md-5 text-right">
|
|
<button class="btn btn-outline btn-primary pull-right" ng-click="autoUpdate.submit()" ng-disabled="autoUpdate.pattern === autoUpdate.currentPattern">
|
|
<i class="fa fa-circle-notch fa-spin" ng-show="autoUpdate.busy"></i> Save
|
|
</button>
|
|
<button class="btn btn-default pull-right" ng-show="!config.update.box && !update.busy" ng-disabled="update.checking" ng-click="update.checkNow()">
|
|
<i class="fa fa-circle-notch fa-spin" ng-show="update.checking"></i> Check for Updates
|
|
</button>
|
|
<button class="btn btn-success pull-right" ng-show="config.update.box && !update.busy" ng-click="update.show()">Update Available</button>
|
|
<button class="btn btn-danger pull-right" ng-show="config.update.box && update.busy" ng-click="update.stopUpdate()">Stop Update</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-left">
|
|
<h3>Private Docker Registry</h3>
|
|
</div>
|
|
|
|
<div class="card" style="margin-bottom: 15px;">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
Cloudron can pull and install <a href="https://cloudron.io/documentation/custom-apps/tutorial/" target="_blank">custom apps</a> from
|
|
a private docker registry.
|
|
</div>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div class="row" ng-hide="config.features.privateDockerRegistry">
|
|
<div class="col-xs-12">
|
|
<b>This feature is only available in the business plan.</b>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" ng-show="config.features.privateDockerRegistry">
|
|
<div class="col-xs-6">
|
|
<span class="text-muted">Server address</span>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<span>{{ registryConfig.currentConfig.serverAddress || 'Not set' }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" ng-show="config.features.privateDockerRegistry">
|
|
<div class="col-xs-6">
|
|
<span class="text-muted">Username</span>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<span>{{ registryConfig.currentConfig.username || registryConfig.currentConfig.email || 'Not set' }}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div class="row" ng-show="config.features.privateDockerRegistry">
|
|
<div class="col-xs-12">
|
|
<button class="btn btn-primary pull-right" ng-click="registryConfig.show()">Configure Registry</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|