new_profile.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <form ng-submit="newProfile.$valid &amp;&amp; $close(profile)" name="newProfile">
  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_newProfile' | tr}}</h4>
  5. </div>
  6. <div class="modal-body">
  7. <div ng-class="{&quot;has-error&quot;: !newProfile.profileNewName.$valid}" class="form-group">
  8. <label for="profile-new-name">{{'options_newProfileName' | tr}}</label>
  9. <input id="profile-new-name" type="text" name="profileNewName" required="required" ng-model="profile.name" ui-validate="validateProfileName" autofocus="autofocus" class="form-control"/>
  10. <div ng-show="newProfile.profileNewName.$error.required" class="help-block">{{'options_profileNameEmpty' | tr}}</div>
  11. <div ng-show="newProfile.profileNewName.$error.reserved" class="help-block">{{'options_profileNameReserved' | tr}}</div>
  12. <div ng-show="!newProfile.profileNewName.$error.reserved &amp;&amp; newProfile.profileNewName.$error.conflict" class="help-block">{{'options_profileNameConflict' | tr}}</div>
  13. <div ng-show="newProfile.profileNewName.$valid &amp;&amp; profile.name &amp;&amp; isProfileNameHidden(profile.name)" class="help-block">
  14. <div class="text-info"><span class="glyphicon glyphicon-info-sign"></span> {{'options_profileNameHidden' | tr}}
  15. </div>
  16. </div>
  17. </div>
  18. <label>{{'options_profileType' | tr}}</label>
  19. <div class="radio">
  20. <label>
  21. <input type="radio" name="profile-new-type" value="FixedProfile" ng-model="profile.profileType" ng-init="profile.profileType = &quot;FixedProfile&quot;"/><span class="profile-type"><span ng-class="profileIcons[&quot;FixedProfile&quot;]" class="glyphicon"></span> <span>{{'options_profileTypeFixedProfile' | tr}}</span></span>
  22. <div class="help-block">{{'options_profileDescFixedProfile' | tr}}</div>
  23. </label>
  24. </div>
  25. <div class="radio">
  26. <label>
  27. <input type="radio" name="profile-new-type" value="SwitchProfile" ng-model="profile.profileType"/><span class="profile-type"><span ng-class="profileIcons[&quot;SwitchProfile&quot;]" class="glyphicon"></span> <span>{{'options_profileTypeSwitchProfile' | tr}}</span></span>
  28. <div class="help-block">{{'options_profileDescSwitchProfile' | tr}}</div>
  29. </label>
  30. </div>
  31. <div class="radio">
  32. <label>
  33. <input type="radio" name="profile-new-type" value="PacProfile" ng-model="profile.profileType" ng-disabled="pacProfilesUnsupported"/><span class="profile-type"><span ng-class="profileIcons[&quot;PacProfile&quot;]" class="glyphicon"></span> <span>{{'options_profileTypePacProfile' | tr}}</span></span>
  34. <div class="help-block">{{'options_profileDescPacProfile' | tr}}</div>
  35. <div ng-show="!pacProfilesUnsupported" class="help-block">{{'options_profileDescMorePacProfile' | tr}}</div>
  36. <div ng-show="pacProfilesUnsupported" class="has-error">
  37. <div class="help-block"><span class="glyphicon glyphicon-warning-sign"></span> {{'options_pac_profile_unsupported_moz' | tr}}
  38. </div>
  39. </div>
  40. </label>
  41. </div>
  42. <div class="radio">
  43. <label>
  44. <input type="radio" name="profile-new-type" value="VirtualProfile" ng-model="profile.profileType"/><span class="profile-type"><span ng-class="profileIcons[&quot;VirtualProfile&quot;]" class="glyphicon virtual-profile-icon"></span> <span>{{'options_profileTypeVirtualProfile' | tr}}</span></span>
  45. <div class="help-block">{{'options_profileDescVirtualProfile' | tr}}</div>
  46. </label>
  47. </div>
  48. </div>
  49. <div class="modal-footer">
  50. <button type="button" ng-click="$dismiss()" class="btn btn-default">{{'dialog_cancel' | tr}}</button>
  51. <button type="submit" ng-disabled="!newProfile.$valid" class="btn btn-primary">{{'options_createProfile' | tr}}</button>
  52. </div>
  53. </form>