2014-09-20 11:49:04 -04:00
|
|
|
|
form(ng-submit='newProfile.$valid && $close(profile)' name='newProfile')
|
|
|
|
|
.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 Close
|
|
|
|
|
h4.modal-title {{'options_modalHeader_newProfile' | tr}}
|
|
|
|
|
.modal-body
|
|
|
|
|
.form-group(ng-class='{"has-error": !newProfile.profileNewName.$valid}')
|
|
|
|
|
label(for='profile-new-name') {{'options_newProfileName' | tr}}
|
|
|
|
|
input#profile-new-name.form-control(type='text' name='profileNewName' required ng-model='profile.name'
|
|
|
|
|
ui-validate='{conflict: "notConflict($value)"}')
|
|
|
|
|
.help-block(ng-show='newProfile.profileNewName.$error.required') {{'options_profileNameEmpty' | tr}}
|
|
|
|
|
.help-block(ng-show='newProfile.profileNewName.$error.conflict') {{'options_profileNameConflict' | tr}}
|
|
|
|
|
label {{'options_profileType' | tr}}
|
|
|
|
|
.radio
|
|
|
|
|
label
|
|
|
|
|
input(type='radio' name='profile-new-type' value='FixedProfile' ng-model='profile.profileType' ng-init='profile.profileType = "FixedProfile"')
|
|
|
|
|
span.profile-type
|
|
|
|
|
span.glyphicon.glyphicon-globe
|
|
|
|
|
= ' '
|
|
|
|
|
span {{'options_profileTypeFixedProfile' | tr}}
|
|
|
|
|
.help-block {{'options_profileDescFixedProfile' | tr}}
|
|
|
|
|
.radio
|
|
|
|
|
label
|
|
|
|
|
input(type='radio', name='profile-new-type', value='SwitchProfile' ng-model='profile.profileType')
|
|
|
|
|
span.profile-type
|
|
|
|
|
span.glyphicon.glyphicon-retweet
|
|
|
|
|
= ' '
|
|
|
|
|
span {{'options_profileTypeSwitchProfile' | tr}}
|
|
|
|
|
.help-block {{'options_profileDescSwitchProfile' | tr}}
|
|
|
|
|
.radio
|
|
|
|
|
label
|
|
|
|
|
input(type='radio', name='profile-new-type', value='PacProfile' ng-model='profile.profileType')
|
|
|
|
|
span.profile-type
|
|
|
|
|
span.glyphicon.glyphicon-file
|
|
|
|
|
= ' '
|
|
|
|
|
span {{'options_profileTypePacProfile' | tr}}
|
|
|
|
|
.help-block {{'options_profileDescPacProfile' | tr}}
|
2014-10-04 07:18:07 -04:00
|
|
|
|
.help-block {{'options_profileDescMorePacProfile' | 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='!newProfile.$valid') {{'options_createProfile' | tr}}
|