fixed_auth_edit.html 2.2 KB

1234567891011121314151617181920212223242526272829
  1. <form ng-submit="authForm.$valid &amp;&amp; $close(auth)" name="authForm">
  2. <div class="modal-header">
  3. <button type="button" ng-click="$dismiss()" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
  4. <h4 class="modal-title">{{'options_modalHeader_proxyAuth' | tr}}</h4>
  5. </div>
  6. <div style="padding-bottom: 0;" class="modal-body">
  7. <div ng-show="!authSupported" class="form-group">
  8. <div class="alert alert-danger"><span class="glyphicon glyphicon-warning-sign"></span> {{"options_proxy_authNotSupported" | tr:[protocolDisp]}}
  9. </div>
  10. </div>
  11. <div class="form-group">
  12. <label class="sr-only">{{'options_proxyAuthUsername' | tr}}</label>
  13. <div input-group-clear="input-group-clear" type="text" model="auth.username" autofocus="autofocus" placeholder="{{&quot;options_proxyAuthUsername&quot; | tr}}"></div>
  14. </div>
  15. <div ng-class="{&quot;has-error&quot;: !authForm.password.$valid}" class="form-group">
  16. <label class="sr-only">{{'options_proxyAuthPassword' | tr}}</label>
  17. <div class="input-group">
  18. <input type="text" name="password" ng-model="auth.password" ng-attr-type="{{showPassword ? &quot;text&quot; : &quot;password&quot;}}" placeholder="{{&quot;options_proxyAuthPassword&quot; | tr}}" ng-show="!!auth.username" class="form-control"/>
  19. <input type="text" value="" placeholder="{{&quot;options_proxyAuthNone&quot; | tr}}" disabled="disabled" ng-show="!auth.username" class="form-control"/><span class="input-group-btn">
  20. <button type="button" ng-click="showPassword = !showPassword" title="{{(showPassword ? 'options_proxyAuthHidePassword' : 'options_proxyAuthShowPassword') | tr}}" ng-disabled="!auth.username" class="btn btn-default"><span ng-class="{&quot;glyphicon-eye-close&quot;: !showPassword, &quot;glyphicon-eye-open&quot;: !!showPassword}" class="glyphicon"></span></button></span>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="modal-footer">
  25. <button type="button" ng-click="$dismiss()" class="btn btn-default">{{'dialog_cancel' | tr}}</button>
  26. <button type="submit" ng-disabled="!authForm.$valid" class="btn btn-primary">{{'dialog_save' | tr}}</button>
  27. </div>
  28. </form>