improve affiliation endorsement button

- design as button instead of link
- disable unless role and department are set
This commit is contained in:
Tim Alby 2018-08-27 11:32:24 +02:00
parent 7863561bff
commit e19882455a

View file

@ -57,9 +57,9 @@ form.row(
show-role-and-department="true"
)
.affiliation-change-actions.small
a(
href
button.btn.btn-sm.btn-success(
ng-click="saveAffiliationChange(userEmail);"
ng-disabled="!(affiliationToChange.role && affiliationToChange.department)"
) #{translate("save_or_cancel-save")}
|  #{translate("save_or_cancel-or" )} 
a(