profile_fixed.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div ng-controller="FixedProfileCtrl">
  2. <section class="settings-group settings-group-fixed-servers">
  3. <h3>{{'options_group_proxyServers' | tr}}</h3>
  4. <div class="table-responsive">
  5. <table class="fixed-servers table table-bordered table-striped width-limit-lg">
  6. <thead>
  7. <tr>
  8. <th>{{'options_proxy_scheme' | tr}}</th>
  9. <th>{{'options_proxy_protocol' | tr}}</th>
  10. <th>{{'options_proxy_server' | tr}}</th>
  11. <th>{{'options_proxy_port' | tr}}</th>
  12. <th></th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <tr ng-repeat="scheme in urlSchemes" ng-show="scheme == &quot;&quot; || showAdvanced">
  17. <td>{{schemeDisp[scheme] || ('options_scheme_default' | tr)}}</td>
  18. <td>
  19. <select ng-model="proxyEditors[scheme].scheme" ng-options="opt.value as opt.label for opt in optionsForScheme[scheme]" class="form-control"></select>
  20. </td>
  21. <td ng-if="proxyEditors[scheme].scheme">
  22. <input type="text" ng-model="proxyEditors[scheme].host" required="required" class="form-control"/>
  23. </td>
  24. <td ng-if="!proxyEditors[scheme].scheme">
  25. <input type="text" value="" placeholder="{{proxyEditors[&quot;&quot;].host}}" disabled="disabled" class="form-control"/>
  26. </td>
  27. <td ng-if="proxyEditors[scheme].scheme">
  28. <input type="number" min="1" ng-model="proxyEditors[scheme].port" required="required" class="form-control"/>
  29. </td>
  30. <td ng-if="!proxyEditors[scheme].scheme">
  31. <input type="number" value="" placeholder="{{proxyEditors[&quot;&quot;].port}}" disabled="disabled" class="form-control"/>
  32. </td>
  33. <td class="proxy-actions">
  34. <button ng-class="isProxyAuthActive(scheme) ? &quot;btn-success&quot; : &quot;btn-default&quot;" type="button" role="button" ng-click="editProxyAuth(scheme)" title="{{&quot;options_proxy_auth&quot; | tr}}" class="btn btn-xs proxy-auth-toggle"><span class="glyphicon glyphicon-lock"></span></button>
  35. </td>
  36. </tr>
  37. </tbody>
  38. <tbody ng-show="!showAdvanced">
  39. <tr class="fixed-show-advanced">
  40. <td colspan="7">
  41. <button ng-click="showAdvanced = true" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span> {{'options_proxy_expand' | tr}}</button>
  42. </td>
  43. </tr>
  44. </tbody>
  45. </table>
  46. </div>
  47. </section>
  48. <section class="settings-group">
  49. <h3>{{'options_group_bypassList' | tr}}</h3>
  50. <p class="help-block">{{'options_bypassListHelp' | tr}}</p>
  51. <p class="help-block"><a href="https://developer.chrome.com/extensions/proxy#bypass_list" target="_blank">{{'options_bypassListHelpLinkText' | tr}}</a></p>
  52. <textarea rows="10" ng-model="bypassList" ng-model-options="{updateOn:'blur'}" class="monospace form-control width-limit"></textarea>
  53. </section>
  54. </div>