rename_profile.html 1.8 KB

123456789101112131415161718192021222324
  1. <form ng-submit="renameProfile.$valid &amp;&amp; $close(newName)" name="renameProfile">
  2. <div class="modal-header">
  3. <button type="button" ng-click="$dismiss()" class="close"><span aria-hidden="true">×</span><span class="sr-only">{{'dialog_close' | tr}}</span></button>
  4. <h4 class="modal-title">{{'options_modalHeader_renameProfile' | tr}}</h4>
  5. </div>
  6. <div class="modal-body">
  7. <div ng-class="{&quot;has-error&quot;: !renameProfile.profileNewName.$valid}" class="form-group">
  8. <label for="profile-new-name">{{'options_renameProfileName' | tr}}</label>
  9. <input id="profile-new-name" type="text" name="profileNewName" required="required" ng-model="newName" ui-validate="validateProfileName" ng-init="newName = fromName" class="form-control"/>
  10. <div ng-show="renameProfile.profileNewName.$error.required" class="help-block">{{'options_profileNameEmpty' | tr}}</div>
  11. <div ng-show="renameProfile.profileNewName.$error.reserved" class="help-block">{{'options_profileNameReserved' | tr}}</div>
  12. <div ng-show="!renameProfile.profileNewName.$error.reserved &amp;&amp; renameProfile.profileNewName.$error.conflict" class="help-block">{{'options_profileNameConflict' | tr}}</div>
  13. <div ng-show="renameProfile.profileNewName.$valid &amp;&amp; newName &amp;&amp; isProfileNameHidden(newName)" 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. </div>
  19. <div class="modal-footer">
  20. <button type="button" ng-click="$dismiss()" class="btn btn-default">{{'dialog_cancel' | tr}}</button>
  21. <button type="submit" ng-disabled="!renameProfile.$valid" class="btn btn-primary">{{'options_renameProfile' | tr}}</button>
  22. </div>
  23. </form>