2015-07-20 00:09:47 -07:00
<!-- Modal developer mode -->
< div class = "modal fade" id = "developerModeChangeModal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
2016-02-04 19:22:29 -08:00
< h4 class = "modal-title" ng-hide = "config.developerMode" > Enable CLI Mode< / h4 >
< h4 class = "modal-title" ng-show = "config.developerMode" > Disable CLI Mode< / h4 >
2015-07-20 00:09:47 -07:00
< / div >
< div class = "modal-body" >
< form name = "developerModeChangeForm" class = "form-signin" role = "form" novalidate ng-submit = "doChangeDeveloperMode(developerModeChangeForm)" autocomplete = "off" >
< fieldset >
2016-01-21 15:17:49 +01:00
< div class = "form-group" ng-class = "{ 'has-error': (!developerModeChangeForm.password.$dirty && developerModeChange.error.password) || (developerModeChangeForm.password.$dirty && developerModeChangeForm.password.$invalid) }" >
2015-07-20 00:09:47 -07:00
< label class = "control-label" for = "inputDeveloperModeChangePassword" > Give your password to verify that you are performing that action< / label >
< div class = "control-label" ng-show = "(!developerModeChangeForm.password.$dirty && developerModeChange.error.password) || (developerModeChangeForm.password.$dirty && developerModeChangeForm.password.$invalid)" >
2016-01-21 15:17:49 +01:00
< small ng-show = " developerModeChangeForm.password.$dirty && developerModeChangeForm.password.$invalid" > A password is required< / small >
< small ng-show = "!developerModeChangeForm.password.$dirty && developerModeChange.error.password" > Wrong password< / small >
2015-07-20 00:09:47 -07:00
< / div >
2016-01-21 15:17:49 +01:00
< input type = "password" class = "form-control" ng-model = "developerModeChange.password" id = "inputDeveloperModeChangePassword" name = "password" required autofocus >
2015-07-20 00:09:47 -07:00
< / div >
< input class = "ng-hide" type = "submit" ng-disabled = "developerModeChangeForm.$invalid" / >
< / 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-danger" ng-hide = "config.developerMode" ng-click = "doChangeDeveloperMode(developerModeChangeForm)" ng-disabled = "developerModeChangeForm.$invalid || developerModeChange.busy" > < i class = "fa fa-spinner fa-pulse" ng-show = "developerModeChange.busy" > < / i > Enable< / button >
< button type = "button" class = "btn btn-success" ng-show = "config.developerMode" ng-click = "doChangeDeveloperMode(developerModeChangeForm)" ng-disabled = "developerModeChangeForm.$invalid || developerModeChange.busy" > < i class = "fa fa-spinner fa-pulse" ng-show = "developerModeChange.busy" > < / i > Disable< / button >
< / div >
< / div >
< / div >
< / div >
<!-- Modal change avatar -->
< div class = "modal fade" id = "avatarChangeModal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h4 class = "modal-title" > Change your Cloudron Avatar< / h4 >
< / div >
< div class = "modal-body settings-avatar-selector" >
2016-01-20 16:55:41 +01:00
< img id = "previewAvatar" width = "128" height = "128" ng-src = "{{avatarChange.avatar.data || avatarChange.avatar.url || client.avatar}}" / >
2015-07-20 00:09:47 -07:00
< input type = "file" id = "avatarFileInput" style = "display: none" accept = "image/png" / >
< br / >
< br / >
< div class = "grid" >
< div class = "item" ng-repeat = "avatar in avatarChange.availableAvatars" style = "background-image: url('{{avatar.data || avatar.url}}');" ng-click = "setPreviewAvatar(avatar)" > < / div >
< div class = "item add" ng-click = "showCustomAvatarSelector()" > < / div >
< / div >
< / 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 = "doChangeAvatar()" ng-disabled = "avatarChange.busy" > < i class = "fa fa-spinner fa-pulse" ng-show = "avatarChange.busy" > < / i > Change< / button >
< / div >
< / div >
< / div >
< / div >
<!-- Modal backup -->
< div class = "modal fade" id = "createBackupModal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h4 class = "modal-title" > Create a new Backup< / h4 >
< / div >
< div class = "modal-body" >
Do you really want to create a new backup?
< / 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 = "doCreateBackup()" ng-disabled = "createBackup.busy" > < i class = "fa fa-spinner fa-pulse" ng-show = "developerModeChange.busy" > < / i > Confirm< / button >
< / div >
< / div >
< / div >
< / div >
2015-08-12 13:48:55 +02:00
< br / >
< div style = "max-width: 600px; margin: 0 auto;" >
< div class = "text-left" >
< h1 > Settings< / h1 >
< / div >
< / div >
2015-11-04 16:41:33 -08:00
< div style = "max-width: 600px; margin: 0 auto;" ng-show = "user.admin" >
< div class = "text-left" >
< h3 > About< / h3 >
< / div >
< / div >
< div class = "card" style = "margin-bottom: 15px;" ng-show = "user.admin" >
< div class = "row" >
< div class = "col-xs-4" style = "min-width: 150px;" >
2016-01-20 16:55:41 +01:00
< div class = "settings-avatar" ng-click = "showChangeAvatar()" style = "background-image: url('{{ client.avatar }}');" >
2015-11-04 16:41:33 -08:00
< div class = "overlay" > < / div >
< / div >
< / div >
< div class = "col-xs-8" >
< table width = "100%" >
< tr >
< td class = "text-muted" style = "vertical-align: top;" > Model< / td >
< td class = "text-right" style = "vertical-align: top; white-space: nowrap;" > {{ config.size }} - {{ config.region }}< / td >
< / tr >
< tr >
< td class = "text-muted" style = "vertical-align: top;" > Version< / td >
< td class = "text-right" style = "vertical-align: top; white-space: nowrap;" > {{ config.version }}< / td >
< / tr >
< / table >
< / div >
< / div >
< / div >
2015-07-20 00:09:47 -07:00
< div style = "max-width: 600px; margin: 0 auto;" ng-show = "user.admin" >
< div class = "text-left" >
< h3 > Backups< / h3 >
< / div >
< / div >
< div class = "card" style = "margin-bottom: 15px;" ng-show = "user.admin" >
< div class = "row" >
< div class = "col-xs-6" >
< span class = "text-muted" > Last Backup< / span >
< / div >
< div class = "col-xs-6 text-right" >
< span ng-show = "lastBackup" > {{ lastBackup.creationTime | prettyDate }}< / span >
< span ng-hide = "lastBackup" > No backups have been created yet< / span >
< / div >
< / div >
<!-- If a backup is blocked (not triggered), the UI does not give feedback currently. This button is only available in dev at the moment! -->
< div class = "row" ng-show = "config.isDev" >
< br / >
< div class = "col-xs-9" >
< div ng-show = "createBackup.busy" class = "progress progress-striped active animateMe" >
< div class = "progress-bar progress-bar-success" role = "progressbar" style = "width: {{ createBackup.percent }}%" > Backup in progress< / div >
< / div >
< / div >
< div class = "col-xs-3 text-right" >
< button class = "btn btn-outline btn-xs btn-primary" ng-click = "showCreateBackup()" ng-disabled = "createBackup.busy" > Create Backup< / button >
< / div >
< / div >
< / div >
< div style = "max-width: 600px; margin: 0 auto;" ng-show = "user.admin" >
< div class = "text-left" >
2016-02-04 23:13:29 -08:00
< h3 > CLI< / h3 >
2015-07-20 00:09:47 -07:00
< / div >
< / div >
< div class = "card" style = "margin-bottom: 15px;" ng-show = "user.admin" >
< div class = "row" >
< div class = "col-xs-12" >
2016-02-04 23:13:29 -08:00
Enabling this will allow the < a href = "https://cloudron.io/references/cli.html" target = "_blank" > CLI tool< / a > to control this Cloudron. The CLI tool can be used to install, configure, inspect and backup applications.
2015-07-20 00:09:47 -07:00
< br / >
< br / >
2016-02-04 23:13:29 -08:00
If you are a developer, please see the < a href = "{{ config.webServerOrigin }}/documentation.html" target = "_blank" > docs< / a > .
2015-07-20 00:09:47 -07:00
< / div >
< / div >
< br / >
< div class = "row" >
< div class = "col-xs-6" >
Status
< / div >
< div class = "col-xs-6 text-right" >
< a href = "" class = "text-danger" ng-show = "config.developerMode" ng-click = "showChangeDeveloperMode()" > Enabled< / a >
< a href = "" ng-hide = "config.developerMode" ng-click = "showChangeDeveloperMode()" > Disabled< / a >
< / div >
< / div >
< / div >
2016-01-16 16:47:50 +01:00
< br / >
< br / >