Przeglądaj źródła

improve affiliation endorsement button

- design as button instead of link
- disable unless role and department are set
Tim Alby 8 lat temu
rodzic
commit
e19882455a

+ 2 - 2
services/web/app/views/user/settings/user-affiliations.pug

@@ -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(