Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/enhancement/gh-3458-contracting-…
Browse files Browse the repository at this point in the history
…doc-section' into test
  • Loading branch information
frjo committed Jul 13, 2023
2 parents ddb94d7 + 4a1255d commit 2d90b52
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,11 @@ <h5> {% trans "Are you sure you want to submit contracting documents?" %}</h5>
</div>
{% if contract_uploaded %}
<div class="docs-block__row-inner">
<a class="docs-block__icon-link" href="{% url 'apply:projects:contract' pk=project.pk file_pk=contract.pk %}" target="_blank">
<a class="font-bold flex items-center w-auto text-left bg-white text-light-blue mr-0 mb-1 p-2.5 border-solid border border-light-blue focus:text-light-blue hover:bg-light-blue hover:text-white" href="{% url 'apply:projects:contract' pk=project.pk file_pk=contract.pk %}" target="_blank">
<svg class="icon icon--project-eye"><use xlink:href="#eye"></use></svg>
{% trans "View" %}
</a>
</div>
{% if contract.updated_at %}
<ul class="mt-0 w-full pl-9">
<li class="docs-block__document">
<div class="docs-block__row-inner">
</div>
<div class="docs-block__row-inner">
<i>{{ contract.updated_at }}</i>
</div>
</li>
</ul>
{% endif %}
{% if not is_contract_approved %}
<ul class="mt-0 w-full pl-9">
<li class="docs-block__document">
Expand All @@ -74,7 +63,7 @@ <h5> {% trans "Are you sure you want to submit contracting documents?" %}</h5>
<div class="docs-block__row-inner">
<a class="docs-block__icon-link" href="#communications" target="_blank">
<svg class="icon icon--info-circle"><use xlink:href="#info-circle-fill"></use></svg>
<span>{% trans "Need corrections/amendments to contract?" %}</span>
<span>{% trans "Corrections/amendments?" %}</span>
</a>
</div>
</li>
Expand All @@ -85,11 +74,11 @@ <h5> {% trans "Are you sure you want to submit contracting documents?" %}</h5>
{% show_contract_upload_row object user as show_contract_row %}
{% if show_contract_row %}
{% contract_reuploaded_by_applicant object as contract_reuploaded %}
<ul class="docs-block__document-list">
<ul class="mt-2 w-full pl-9">
<li class="docs-block__document">
<div class="docs-block__row-inner">
<svg class="icon docs-block__icon {% if contract_uploaded %}is-complete{% endif %}"><use xlink:href="#tick"></use></svg>
<p class="docs-block__title">{% trans "Signed contract by Contracting team " %}
<p class="docs-block__title">
{% if not contract.uploaded_by_contractor_at %}{% trans "Pending signed contract by " %}{% else %}{% trans "Signed contract by " %}{% endif %}{% if user == object.user %}{{ ORG_SHORT_NAME }}{% else %}{% trans "Contracting team " %} {% endif %}
<i>{% if contract.uploaded_by_contractor_at %}({{ contract.uploaded_by_contractor_at }}){% endif %}</i></p>
</div>
{% if can_upload_contract and user.is_contracting %}
Expand All @@ -108,8 +97,7 @@ <h5> {% trans "Are you sure you want to submit contracting documents?" %}</h5>

<li class="docs-block__document">
<div class="docs-block__row-inner">
<svg class="icon docs-block__icon {% if contract_reuploaded %}is-complete{% endif %}"><use xlink:href="#tick"></use></svg>
<p class="docs-block__title">{% trans "Countersigned contract by Applicant/Contractor " %}
<p class="docs-block__title">{% if not contract.uploaded_by_applicant_at %}{% trans "Pending countersigned contract by " %}{% else %}{% trans "Countersigned contract by " %}{% endif %}{% if user == object.user %}{% trans "you " %} {% else %}{% trans "Vendor " %}{% endif %}
<i>{% if contract.uploaded_by_applicant_at %}({{ contract.uploaded_by_applicant_at }}){% endif %}</i></p>
</div>
{% if can_upload_contract and user.is_applicant %}
Expand Down Expand Up @@ -147,7 +135,13 @@ <h5> {% trans "Are you sure you want to submit contracting documents?" %}</h5>
{% for document_category in all_contract_document_categories %}
<li class="docs-block__document">
<div class="docs-block__document-inner">
<p class="docs-block__document-info">{{ document_category.name }}
<p class="docs-block__document-info">
{% if document_category in remaining_contract_document_categories %}
{% trans "Pending " %}
{{ document_category.name|lower }}
{% else %}
{{ document_category.name }}
{% endif %}
{% if document_category.required %}<span class="text-red-700">*</span>{% endif %}
{% if document_category.template %}
<a class="pl-2 font-bold underline decoration-dashed" href="{% url 'apply:projects:category_template' pk=object.pk type='contract_document' category_pk=document_category.pk %}" target="_blank">{% trans "View template" %}</a>
Expand Down
4 changes: 4 additions & 0 deletions hypha/static_src/src/sass/apply/components/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@
height: 1em;
margin-right: 2px;
stroke: $color--light-blue;

a:hover & {
stroke: $color--white;
}
}

&--caret-down {
Expand Down

0 comments on commit 2d90b52

Please sign in to comment.