2016-12-15 03:33:47 +00:00
< rd-header >
< rd-header-title title = "Settings" >
2017-06-01 08:14:55 +00:00
< i id = "loadingViewSpinner" class = "fa fa-cog fa-spin" style = "margin-left: 5px;" > < / i >
2016-12-15 03:33:47 +00:00
< / rd-header-title >
< rd-header-content > Settings< / rd-header-content >
< / rd-header >
< div class = "row" >
2017-06-01 08:14:55 +00:00
< div class = "col-sm-12" >
2016-12-15 03:33:47 +00:00
< rd-widget >
2017-06-01 08:14:55 +00:00
< rd-widget-header icon = "fa-cogs" title = "Application settings" > < / rd-widget-header >
2016-12-15 03:33:47 +00:00
< rd-widget-body >
2017-06-01 08:14:55 +00:00
< form class = "form-horizontal" >
<!-- logo -->
< div class = "col-sm-12 form-section-title" >
Logo
< / div >
2016-12-15 03:33:47 +00:00
< div class = "form-group" >
2017-06-01 08:14:55 +00:00
< div class = "col-sm-12" >
< label for = "toggle_logo" class = "control-label text-left" >
Use custom logo
< / label >
< label class = "switch" style = "margin-left: 20px;" >
< input type = "checkbox" name = "toggle_logo" ng-model = "formValues.customLogo" > < i > < / i >
< / label >
< / div >
< / div >
< div ng-if = "formValues.customLogo" >
< div class = "form-group" >
< span class = "col-sm-12 text-muted small" >
You can specify the URL to your logo here. For an optimal display, logo dimensions should be 155px by 55px.
< / span >
< / div >
< div class = "form-group" >
< label for = "logo_url" class = "col-sm-1 control-label text-left" >
URL
< / label >
< div class = "col-sm-11" >
< input type = "text" class = "form-control" ng-model = "settings.LogoURL" id = "logo_url" placeholder = "https://mycompany.com/logo.png" >
2016-12-15 03:33:47 +00:00
< / div >
< / div >
< / div >
2017-06-01 08:14:55 +00:00
<!-- !logo -->
<!-- app - templates -->
< div class = "col-sm-12 form-section-title" >
App Templates
< / div >
< div class = "form-group" >
2017-05-23 18:56:10 +00:00
< div class = "col-sm-12" >
2017-06-01 08:14:55 +00:00
< label for = "toggle_templates" class = "control-label text-left" >
Use custom templates
< / label >
< label class = "switch" style = "margin-left: 20px;" >
< input type = "checkbox" name = "toggle_templates" ng-model = "formValues.customTemplates" > < i > < / i >
< / label >
2017-05-23 18:56:10 +00:00
< / div >
2016-12-15 03:33:47 +00:00
< / div >
2017-06-01 08:14:55 +00:00
< div ng-if = "formValues.customTemplates" >
< div class = "form-group" >
< span class = "col-sm-12 text-muted small" >
You can specify the URL to your own template definitions file here. See < a href = "https://portainer.readthedocs.io/en/stable/templates.html" target = "_blank" > Portainer documentation< / a > for more details.
< / span >
< / div >
< div class = "form-group" >
< label for = "templates_url" class = "col-sm-1 control-label text-left" >
URL
< / label >
< div class = "col-sm-11" >
< input type = "text" class = "form-control" ng-model = "settings.TemplatesURL" id = "templates_url" placeholder = "https://myserver.mydomain/templates.json" >
2016-12-15 03:33:47 +00:00
< / div >
< / div >
< / div >
2017-05-23 18:56:10 +00:00
< div class = "form-group" >
< div class = "col-sm-12" >
2017-06-01 08:14:55 +00:00
< label for = "toggle_external_contrib" class = "control-label text-left" >
Hide external contributions
< portainer-tooltip position = "bottom" message = "When enabled, external contributions such as LinuxServer.io will not be displayed in the sidebar." > < / portainer-tooltip >
< / label >
< label class = "switch" style = "margin-left: 20px;" >
< input type = "checkbox" name = "toggle_external_contrib" ng-model = "formValues.externalContributions" > < i > < / i >
< / label >
2017-05-23 18:56:10 +00:00
< / div >
< / div >
2017-06-01 08:14:55 +00:00
<!-- !app - templates -->
<!-- actions -->
2016-12-15 03:33:47 +00:00
< div class = "form-group" >
2017-06-01 08:14:55 +00:00
< div class = "col-sm-12" >
< button type = "button" class = "btn btn-primary btn-sm" ng-click = "saveApplicationSettings()" > Save< / button >
< i id = "updateSettingsSpinner" class = "fa fa-cog fa-spin" style = "margin-left: 5px; display: none;" > < / i >
<!-- <span class="text - danger" ng - if="state.formValidationError" style="margin - left: 5px;">{{ state.formValidationError }}</span> -->
< / div >
< / div >
<!-- !actions -->
< / form >
< / rd-widget-body >
< / rd-widget >
< / div >
< / div >
< div class = "row" >
< div class = "col-sm-12" >
< rd-widget >
2017-06-01 08:30:22 +00:00
< rd-widget-header icon = "fa-tags" title = "Hidden containers" > < / rd-widget-header >
2017-06-01 08:14:55 +00:00
< rd-widget-body >
< form class = "form-horizontal" >
< div class = "form-group" >
< span class = "col-sm-12 text-muted small" >
You can hide containers with specific labels from Portainer UI. You need to specify the label name and value.
< / span >
< / div >
< div class = "form-group" >
< label for = "header_name" class = "col-sm-1 control-label text-left" > Name< / label >
< div class = "col-sm-11 col-md-4" >
< input type = "text" class = "form-control" id = "header_name" ng-model = "formValues.labelName" placeholder = "e.g. com.example.foo" >
< / div >
< label for = "header_value" class = "col-sm-1 margin-sm-top control-label text-left" > Value< / label >
< div class = "col-sm-11 col-md-4 margin-sm-top" >
< input type = "text" class = "form-control" id = "header_value" ng-model = "formValues.labelValue" placeholder = "e.g. bar" >
< / div >
< div class = "col-sm-12 col-md-2 margin-sm-top" >
2017-06-01 08:30:22 +00:00
< button type = "button" class = "btn btn-primary btn-sm" ng-click = "addFilteredContainerLabel()" ng-disabled = "!formValues.labelValue || !formValues.labelName" > < i class = "fa fa-plus space-right" aria-hidden = "true" > < / i > Add filter< / button >
2016-12-15 03:33:47 +00:00
< / div >
< / div >
< div class = "form-group" >
2017-06-01 08:14:55 +00:00
< div class = "col-sm-12 table-responsive" >
< table class = "table table-hover" >
< thead >
< tr >
< th > Name< / th >
< th > Value< / th >
< th > < / th >
< / tr >
< / thead >
< tbody >
< tr ng-repeat = "label in settings.BlackListedLabels" >
< td > {{ label.name }}< / td >
< td > {{ label.value }}< / td >
< td > < button type = "button" class = "btn btn-danger btn-xs" ng-click = "removeFilteredContainerLabel($index)" > < i class = "fa fa-trash space-right" aria-hidden = "true" > < / i > Remove< / button > < / td >
< / tr >
< tr ng-if = "settings.BlackListedLabels.length === 0" >
2017-06-01 08:30:22 +00:00
< td colspan = "2" class = "text-center text-muted" > No filter available.< / td >
2017-06-01 08:14:55 +00:00
< / tr >
< tr ng-if = "!settings.BlackListedLabels" >
< td colspan = "2" class = "text-center text-muted" > Loading...< / td >
< / tr >
< / tbody >
< / table >
2016-12-15 03:33:47 +00:00
< / div >
< / div >
2017-06-01 08:14:55 +00:00
<!-- !filtered - labels -->
2016-12-15 03:33:47 +00:00
< / form >
< / rd-widget-body >
< / rd-widget >
< / div >
< / div >