|
|
@@ -1,18 +1,24 @@
|
|
|
-section.settings-group(ng-controller='PacProfileCtrl')
|
|
|
- h3 {{'options_group_pacUrl' | tr}}
|
|
|
- .width-limit(input-group-clear type='text' model='profile.pacUrl'
|
|
|
- ng-pattern='referenced ? urlRegex : urlWithFile' controller='pacUrlCtrl.ctrl')
|
|
|
- p.help-block {{'options_pacUrlHelp' | tr}}
|
|
|
- .has-warning(ng-show='isFileUrl(profile.pacUrl) && !referenced')
|
|
|
- p.help-block #[span.glyphicon.glyphicon-warning-sign] {{'options_pacUrlFile' | tr}}
|
|
|
- .has-error(ng-show='isFileUrl(pacUrlCtrl.ctrl.$viewValue) && referenced')
|
|
|
- p.help-block #[span.glyphicon.glyphicon-remove-sign] {{'options_pacUrlFile' | tr}}
|
|
|
- p.help-block {{'options_pacUrlFileDisabled' | tr}}
|
|
|
-section.settings-group
|
|
|
- h3 {{'options_group_pacScript' | tr}}
|
|
|
- p
|
|
|
- button.btn.btn-default(ng-disabled='!profile.pacUrl' ng-click='updateProfile(profile.name)'
|
|
|
- ladda='updatingProfile[profile.name]' data-spinner-color="#000000")
|
|
|
- | #[span.glyphicon.glyphicon-download-alt] {{'options_downloadProfileNow' | tr}}
|
|
|
- textarea.monospace.form-control.width-limit(ng-model='profile.pacScript' rows=20
|
|
|
- ng-disabled='!!profile.pacUrl')
|
|
|
+div(ng-controller='PacProfileCtrl')
|
|
|
+ section.settings-group
|
|
|
+ h3 {{'options_group_pacUrl' | tr}}
|
|
|
+ .width-limit(input-group-clear type='text' model='profile.pacUrl'
|
|
|
+ ng-pattern='referenced ? urlRegex : urlWithFile' controller='pacUrlCtrl.ctrl')
|
|
|
+ p.help-block {{'options_pacUrlHelp' | tr}}
|
|
|
+ .has-warning(ng-show='pacUrlIsFile && !referenced')
|
|
|
+ p.help-block #[span.glyphicon.glyphicon-warning-sign] {{'options_pacUrlFile' | tr}}
|
|
|
+ .has-error(ng-show='isFileUrl(pacUrlCtrl.ctrl.$viewValue) && referenced')
|
|
|
+ p.help-block #[span.glyphicon.glyphicon-remove-sign] {{'options_pacUrlFile' | tr}}
|
|
|
+ p.help-block {{'options_pacUrlFileDisabled' | tr}}
|
|
|
+ p(ng-show='profile.pacUrl && !pacUrlIsFile')
|
|
|
+ button.btn(ng-click='updateProfile(profile.name)'
|
|
|
+ ladda='updatingProfile[profile.name]' data-spinner-color="#000000"
|
|
|
+ ng-class='profile.pacUrl && !profile.lastUpdate ? "btn-primary" : "btn-default"')
|
|
|
+ | #[span.glyphicon.glyphicon-download-alt] {{'options_downloadProfileNow' | tr}}
|
|
|
+ section.settings-group(ng-hide='pacUrlIsFile')
|
|
|
+ h3 {{'options_group_pacScript' | tr}}
|
|
|
+ p.alert.alert-success.width-limit(ng-show='profile.pacUrl && profile.lastUpdate')
|
|
|
+ | {{'options_pacScriptLastUpdate' | tr:[(profile.lastUpdate | date:'medium')]}}
|
|
|
+ p.alert.alert-danger.width-limit(ng-show='profile.pacUrl && !profile.lastUpdate')
|
|
|
+ | {{'options_pacScriptObsolete' | tr}}
|
|
|
+ textarea.monospace.form-control.width-limit(ng-model='profile.pacScript' rows=20
|
|
|
+ ng-disabled='pacUrlCtrl.ctrl.$invalid || !!profile.pacUrl')
|