Skip to content

Commit

Permalink
add crowdfunding alert
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Aug 6, 2019
1 parent 09dcaae commit 0839f56
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 23 deletions.
6 changes: 6 additions & 0 deletions app/dashboard/templates/bulk_payout_bounty.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ <h3>{% trans "Advanced Payout" %}</h3>
{% endfor %}

</div>
<div class="row btn-metamask mt-4 mx-1 py-3 br-2">
<i class="col-3 col-lg-2 fas fa-exclamation-triangle font-title-xl my-auto text-center"></i>
<p class="col-9 col-lg-10 pl-lg-0 font-body my-auto font-weight-semibold">
{% trans "To include crowdfunding as part of this payout, please use Basic Payout." %}
</p>
</div>
{% endif %}
</div>
<div class="w-100 mt-2 terms_container">
Expand Down
49 changes: 26 additions & 23 deletions app/dashboard/templates/payout_bounty.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,38 +49,41 @@
<div class="d-flex justify-content-center flex-column mt-5 w-100" id="primary_subform">
<div class="w-100 text-center">
<h3>{% trans "Payout Bounty" %}</h3>
<img src="{% static "v2/images/prime.png" %}">
</div>
{% include 'shared/network_status.html' %}
<div class="w-100">
<h4>{% trans "Option 1:" %}</h4>
</div>

<p class="font-title-lg text-center mt-4">{% trans "Option 1:" %}</p>
<div class="w-100 mt-2">
<a class="bounty_box {% if bounty.fulfillments.count == 0 %}disabled{% endif %}" href="{% if bounty.fulfillments.count > 0 %}{{ bounty.action_urls.accept }}{% else %}#{% endif %}">
<h5>{% trans "Basic Payout." %}</h5>
<span>
{% trans "Used to accept a bounty hunter's submission. You currently have " %}{{bounty.fulfillments.count}} {% trans "submission" %}{{bounty.fulfillments.count | pluralize}}.
{% if bounty.fulfillments.count == 0 %}
{% trans "This option is currently disabled because you have no submissions." %}
{% elif bounty.fulfillments.count == 1 %}
{% trans "Accept it using this option." %}
{% else %}
{% trans "Accept one of them using this option." %}
{% endif %}
</span>
<h5>{% trans "Basic Payout." %}</h5>
<span class="font-body">
{% trans "Used to accept a bounty hunter's submission. You currently have " %}{{bounty.fulfillments.count}} {% trans "submission" %}{{bounty.fulfillments.count | pluralize}}.
{% if bounty.fulfillments.count == 0 %}
{% trans "This option is currently disabled because you have no submissions." %}
{% elif bounty.fulfillments.count == 1 %}
{% trans "Accept it using this option." %}
{% else %}
{% trans "Accept one of them using this option." %}
{% endif %}
</span>
</a>
</div>
<div class="w-100">
<h4>{% trans "Option 2:" %}</h4>
</div>

<p class="font-title-lg text-center mt-4">{% trans "Option 2:" %}</p>
<div class="w-100 mt-2">
<a class="bounty_box" href="{{ bounty.action_urls.advanced_payout }}">
<h5>{% trans "Advanced Payout." %}</h5>
<span>
{% trans "Used to skip the 'submission' step; or when multiple parties need to be paid out." %}
</span>
<h5>{% trans "Advanced Payout." %}</h5>
<span class="font-body">
{% trans "Used to skip the 'submission' step; or when multiple parties need to be paid out." %}
</span>
</a>
<div class="row btn-metamask mt-4 mx-1 py-3 br-2">
<i class="col-3 col-lg-2 fas fa-exclamation-triangle font-title-xl my-auto text-center"></i>
<p class="col-9 col-lg-10 pl-lg-0 font-body my-auto font-weight-semibold">
{% trans "To include crowdfunding as part of this payout, please use Basic Payout." %}
</p>
</div>
</div>

</div>
</div>
</div>
Expand Down

0 comments on commit 0839f56

Please sign in to comment.