Skip to content

Commit

Permalink
Disable the download button
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Feb 20, 2024
1 parent 7bdc41c commit 0616af5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions backend/templates/v1/ngo/donations-view.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@



<div id="donation-table" class="col-xs-12 col-md-8 col-md-offset-2">
<p>Mai jos găsești o listă cu toate persoanele care au completat formularul de redirecționare:</p>

{% for key, value in donors.items() %}

{% if value or key == current_year %}
Expand All @@ -23,8 +23,10 @@
Organizația ta nu a primit niciun formular semnat digital încă, prin urmare nu poți descărca formularele.
</div>
{% endif %}
<button id="download-button" class="btn" type="submit"
{% if not has_signed_form or not can_donate %}disabled{% endif %}>
<button id="download-button" class="btn" type="submit"
{% if not has_signed_form or not can_donate %}disabled{% endif %}
disabled
>
Descarcă formularele
</button>
</form>
Expand Down Expand Up @@ -85,10 +87,10 @@
<td>{{ loop.length - loop.index + 1 }}</td>
<td>{{ donation.first_name + " " + donation.last_name }}</td>
<td>{{ donation.city }}, <span class="text-muted">{{ donation.county }}</span></td>

{% if donation.anonymous != True %}
<td>{{ donation.email if donation.email }}</td>
<td>{{ donation.tel if donation.tel }}</td>
<td>{{ donation.tel if donation.tel }}</td>
{% else %}
<td colspan="2" class="text-center text-muted">
Aceasta persoana a ales <br>
Expand All @@ -111,4 +113,4 @@
{% endif %}
{% endfor %}

</div>
</div>

0 comments on commit 0616af5

Please sign in to comment.