changed role to datalist because im fed up of not being able to fix it. Datalist are not styled but its not that bad

This commit is contained in:
Henry Oswald 2014-07-18 13:20:35 +01:00
parent 4862587745
commit 175882dc67

View file

@ -142,6 +142,7 @@ script(type="text/ng-template", id="userProfileModalTemplate")
h3 Your Profile h3 Your Profile
.modal-body .modal-body
form(enctype='multipart/form-data', method='post') form(enctype='multipart/form-data', method='post')
.form-group .form-group
label(for="first_name") First Name label(for="first_name") First Name
input.form-control( input.form-control(
@ -152,6 +153,7 @@ script(type="text/ng-template", id="userProfileModalTemplate")
placeholder="First Name", placeholder="First Name",
select-when="formVisable" select-when="formVisable"
) )
.form-group .form-group
label(for="last_name") Last Name label(for="last_name") Last Name
input.form-control( input.form-control(
@ -161,6 +163,7 @@ script(type="text/ng-template", id="userProfileModalTemplate")
ng-blur="sendUpdate()", ng-blur="sendUpdate()",
placeholder='Last Name' placeholder='Last Name'
) )
.form-group#institution_auto_complete .form-group#institution_auto_complete
label(for="institution") Institution label(for="institution") Institution
autocomplete( autocomplete(
@ -172,15 +175,13 @@ script(type="text/ng-template", id="userProfileModalTemplate")
attr-placeholder="Institution", attr-placeholder="Institution",
attr-inputclass="form-control" attr-inputclass="form-control"
) )
.form-group .form-group
label(for="role") Role label(for="role") Role
input.form-control( input(type='text', name='role', ng-model="userInfoForm.role", placeholder='Role', ng-blur="sendUpdate()", list="_roles").form-control
type='text', datalist#_roles
name='role', option(ng-repeat='role in roles') {{role}}
ng-model="userInfoForm.role",
placeholder='Role',
ng-blur="sendUpdate()",
typeahead="role for role in roles | filter:$viewValue"
)
.modal-footer .modal-footer
button.btn.btn-info(ng-click="done()") Done button.btn.btn-info(ng-click="done()") Done