profile_pac.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div ng-controller="PacProfileCtrl">
  2. <p ng-show="pacProfilesUnsupported" class="alert alert-danger width-limit"><span class="glyphicon glyphicon-remove"></span> {{'options_pac_profile_unsupported_moz' | tr}}
  3. </p>
  4. <section class="settings-group">
  5. <h3>{{'options_group_pacUrl' | tr}}</h3>
  6. <div input-group-clear="input-group-clear" type="text" model="profile.pacUrl" ng-pattern="referenced ? urlRegex : urlWithFile" controller="pacUrlCtrl.ctrl" class="width-limit"></div>
  7. <p class="help-block">{{'options_pacUrlHelp' | tr}}</p>
  8. <div ng-show="pacUrlIsFile &amp;&amp; !referenced" class="has-warning">
  9. <p class="help-block"><span class="glyphicon glyphicon-warning-sign"></span> {{'options_pacUrlFile' | tr}}</p>
  10. </div>
  11. <div ng-show="isFileUrl(pacUrlCtrl.ctrl.$viewValue) &amp;&amp; referenced" class="has-error">
  12. <p class="help-block"><span class="glyphicon glyphicon-remove-sign"></span> {{'options_pacUrlFile' | tr}}</p>
  13. <p class="help-block">{{'options_pacUrlFileDisabled' | tr}}</p>
  14. </div>
  15. <p ng-show="profile.pacUrl &amp;&amp; !pacUrlIsFile">
  16. <button ng-click="updateProfile(profile.name)" ladda="updatingProfile[profile.name]" data-spinner-color="#000000" ng-class="profile.pacUrl &amp;&amp; !profile.lastUpdate ? &quot;btn-primary&quot; : &quot;btn-default&quot;" class="btn"><span class="glyphicon glyphicon-download-alt"></span> {{'options_downloadProfileNow' | tr}}</button>
  17. </p>
  18. </section>
  19. <section class="settings-group">
  20. <h3>{{'options_group_pacScript' | tr}}
  21. <button ng-class="profile.auth[&quot;all&quot;] ? &quot;btn-success&quot; : &quot;btn-default&quot;" type="button" role="button" ng-click="editProxyAuth()" title="{{&quot;options_proxy_auth&quot; | tr}}" class="btn btn-xs proxy-auth-toggle"><span class="glyphicon glyphicon-lock"></span></button>
  22. </h3>
  23. <div ng-show="profile.auth[&quot;all&quot;]" class="alert alert-warning width-limit">
  24. <p>{{'options_proxy_authAllWarningPac' | tr}}</p>
  25. <p ng-show="!!profile.pacUrl">{{'options_proxy_authAllWarningPacUrl' | tr}}</p>
  26. <p ng-show="!profile.pacUrl">{{'options_proxy_authAllWarningPacScript' | tr}}</p>
  27. <p ng-show="!!referenced"><span class="glyphicon glyphicon-warning-sign"></span> {{'options_proxy_authReferencedWarning' | tr}}</p>
  28. </div>
  29. <div ng-hide="pacUrlIsFile">
  30. <p ng-show="profile.pacUrl &amp;&amp; profile.lastUpdate" class="alert alert-success width-limit">{{'options_pacScriptLastUpdate' | tr:[(profile.lastUpdate | date:'medium')]}}</p>
  31. <p ng-show="profile.pacUrl &amp;&amp; !profile.lastUpdate" class="alert alert-danger width-limit">{{'options_pacScriptObsolete' | tr}}</p>
  32. <textarea ng-model="profile.pacScript" rows="20" ng-disabled="pacUrlCtrl.ctrl.$invalid || !!profile.pacUrl" class="monospace form-control width-limit"></textarea>
  33. </div>
  34. </section>
  35. </div>