ZeroOmega/omega-web/src/partials/profile_pac.jade

19 lines
1.1 KiB
Plaintext
Raw Normal View History

section.settings-group(ng-controller='PacProfileCtrl')
2014-09-20 11:49:04 -04:00
h3 {{'options_group_pacUrl' | tr}}
.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}}
.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}}
textarea.monospace.form-control.width-limit(ng-model='profile.pacScript' rows=20
2014-09-20 11:49:04 -04:00
ng-disabled='!!profile.pacUrl')