Style the "Resend Invitation" button
This commit is contained in:
parent
d57b96cf05
commit
5f241cf154
@ -171,3 +171,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.inline-form {
|
||||
display: inline-block;
|
||||
}
|
||||
|
@ -70,18 +70,9 @@
|
||||
<h2 class="officer__title">{{ ("task_orders.invitations." + officer_type + ".title") | translate }}</h2>
|
||||
<p class="officer__description">{{ ("task_orders.invitations." + officer_type + ".description") | translate }}</p>
|
||||
|
||||
{% set prefix = { "contracting_officer": "ko", "contracting_officer_representative": "cor", "security_officer": "so" }[officer_type] %}
|
||||
|
||||
<form method='POST' action="{{ url_for("portfolios.resend_invite", portfolio_id=portfolio.id, task_order_id=task_order.id) }}">
|
||||
{{ form.csrf_token }}
|
||||
<input name="invite_type" value="{{ prefix }}_invite" type="hidden" />
|
||||
<button>
|
||||
Resend
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<edit-officer-form v-bind:has-errors='{{ ((form.errors|length) > 0)|tojson }}' v-bind:has-changes='{{ form.has_changes() | tojson }}' inline-template>
|
||||
<div>
|
||||
{% set prefix = { "contracting_officer": "ko", "contracting_officer_representative": "cor", "security_officer": "so" }[officer_type] %}
|
||||
{% set first_name = task_order[prefix + "_first_name"] %}
|
||||
{% set last_name = task_order[prefix + "_last_name"] %}
|
||||
{% set email = task_order[prefix + "_email"] %}
|
||||
@ -89,7 +80,6 @@
|
||||
{% set dod_id = task_order[prefix + "_dod_id"] %}
|
||||
{% set invited = False %}
|
||||
|
||||
|
||||
{% if task_order[officer_type] %}
|
||||
{% set invited = True %}
|
||||
<div class="officer__info">
|
||||
@ -106,7 +96,16 @@
|
||||
</div>
|
||||
<div class="officer__actions">
|
||||
{{ Link("Update", "edit", onClick="edit") }}
|
||||
{{ Link("Resend Invitation", "avatar") }}
|
||||
|
||||
<form method='POST' action="{{ url_for("portfolios.resend_invite", portfolio_id=portfolio.id, task_order_id=task_order.id) }}" class="inline-form">
|
||||
{{ form.csrf_token }}
|
||||
<input name="invite_type" value="{{ prefix }}_invite" type="hidden" />
|
||||
<button class="icon-link">
|
||||
{{ Icon('avatar') }}
|
||||
Resend Invitation
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{{ Link("Remove", "trash", classes="remove") }}
|
||||
</div>
|
||||
{% elif first_name and last_name %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user