The link button to add a new application member to an app that did not have any ("empty state") was not wired up. This: - Moves the two steps of the new member modal into macros so that they can be reused with different button/link types - Wires the "invite a new team member" button on the application team page - Makes a minor CSS tweak so that icons nested under `.empty-state` in the modal aren't enormous
16 lines
551 B
HTML
16 lines
551 B
HTML
{% from "components/multi_step_modal_form.html" import MultiStepModalForm %}
|
|
|
|
{% import "fragments/applications/new_member_modal_content.html" as member_steps %}
|
|
|
|
{{ MultiStepModalForm(
|
|
name='add-app-mem',
|
|
form=new_member_form,
|
|
form_action=url_for("applications.create_member", application_id=application.id),
|
|
steps=[
|
|
member_steps.MemberStepOne(new_member_form),
|
|
member_steps.MemberStepTwo(new_member_form, application)
|
|
],
|
|
button_text=("portfolios.admin.add_new_member" | translate),
|
|
button_icon="plus",
|
|
) }}
|