2014-09-20 11:49:04 -04:00
|
|
|
|
form(ng-submit='renameProfile.$valid && $close(newName)' name='renameProfile')
|
|
|
|
|
.modal-header
|
2014-09-25 10:46:23 -04:00
|
|
|
|
button.close(type='button' ng-click='$dismiss()')
|
2014-09-20 11:49:04 -04:00
|
|
|
|
span(aria-hidden='true') ×
|
|
|
|
|
span.sr-only {{'dialog_close' | tr}}
|
|
|
|
|
h4.modal-title {{'options_modalHeader_renameProfile' | tr}}
|
|
|
|
|
.modal-body
|
|
|
|
|
.form-group(ng-class='{"has-error": !renameProfile.profileNewName.$valid}')
|
|
|
|
|
label(for='profile-new-name') {{'options_renameProfileName' | tr}}
|
|
|
|
|
input#profile-new-name.form-control(type='text' name='profileNewName' required ng-model='newName'
|
2014-10-12 02:47:47 -04:00
|
|
|
|
ui-validate='validateProfileName' ng-init='newName = fromName')
|
2014-09-20 11:49:04 -04:00
|
|
|
|
.help-block(ng-show='renameProfile.profileNewName.$error.required') {{'options_profileNameEmpty' | tr}}
|
2014-10-12 02:47:47 -04:00
|
|
|
|
.help-block(ng-show='renameProfile.profileNewName.$error.reserved') {{'options_profileNameReserved' | tr}}
|
|
|
|
|
.help-block(ng-show='!renameProfile.profileNewName.$error.reserved && renameProfile.profileNewName.$error.conflict')
|
|
|
|
|
| {{'options_profileNameConflict' | tr}}
|
|
|
|
|
.help-block(ng-show='renameProfile.profileNewName.$valid && newName && isProfileNameHidden(newName)')
|
|
|
|
|
.text-info
|
|
|
|
|
span.glyphicon.glyphicon-info-sign
|
|
|
|
|
= ' '
|
|
|
|
|
| {{'options_profileNameHidden' | tr}}
|
2014-09-20 11:49:04 -04:00
|
|
|
|
.modal-footer
|
|
|
|
|
button.btn.btn-default(type='button' ng-click='$dismiss()') {{'dialog_cancel' | tr}}
|
|
|
|
|
button.btn.btn-primary(type='submit' ng-disabled='!renameProfile.$valid') {{'options_renameProfile' | tr}}
|