2014-09-25 09:18:17 -04:00
|
|
|
section.settings-group(ng-controller='PacProfileCtrl')
|
2014-09-20 11:49:04 -04:00
|
|
|
h3 {{'options_group_pacUrl' | tr}}
|
2014-09-25 09:18:17 -04:00
|
|
|
.width-limit(input-group-clear type='text' model='profile.pacUrl'
|
|
|
|
ng-pattern='referenced ? urlRegex : urlWithFile' controller='pacUrlCtrl.ctrl')
|
2014-09-20 11:49:04 -04:00
|
|
|
p.help-block {{'options_pacUrlHelp' | tr}}
|
2014-09-25 09:18:17 -04:00
|
|
|
.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}}
|
2014-09-20 11:49:04 -04:00
|
|
|
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}}
|
2014-12-22 05:21:35 -05:00
|
|
|
textarea.monospace.form-control.width-limit(ng-model='profile.pacScript' rows=20
|
2014-09-20 11:49:04 -04:00
|
|
|
ng-disabled='!!profile.pacUrl')
|