Skip to content

Commit

Permalink
Merge pull request #4302 from gitcoinco/grant_fee
Browse files Browse the repository at this point in the history
cleanup grant/fund
  • Loading branch information
SaptakS authored Apr 29, 2019
2 parents a61e561 + 53c902a commit c363039
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions app/grants/templates/grants/fund.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2 class="font-title-lg my-4">{% trans "Fund Grant" %}</h2>
{% include 'grants/banner.html' %}

<div class="col-12 offset-md-2 col-md-10 offset-lg-3 col-lg-6 mt-5 font-subheader mx-0 mx-md-auto row">
<p class="col-12 font-weight-semibold my-4">
<p class="col-12 font-weight-semibold my-4 text-center">
{{ grant.admin_profile }} {% trans "is accepting contributions in "%}
{% if grant_has_no_token %}
{% trans "any token." %}
Expand All @@ -67,16 +67,17 @@ <h2 class="font-title-lg my-4">{% trans "Fund Grant" %}</h2>
<div id="grants_form" class="col-12">
<form method="POST" id="js-fundGrant">
{% csrf_token %}
<div class="row">
<div class="row mx-0">
<div class="col-12">

<div class="form__group-horizontal">
<label class="form__label" id="amount_label">{% trans "Amount Per Period" %}</label>
<div class="row">
<div class="col-8">
<div class="col-6 col-sm-8">
<label class="form__label" id="amount_label">{% trans "Amount Per Period" %}</label>
<input type="number" min="0.001" id="amount" name="amount_per_period" class="form__input" value="5" required />
</div>
<div class="col-4">
<div class="col-6 col-sm-4">
<label class="form__label" id="token_label">{% trans "Token" %}</label>
{% if grant_has_no_token %}
<div class="form__select2">
<select class='js-select2' name='denomination' id='js-token'> </select>
Expand All @@ -89,25 +90,32 @@ <h2 class="font-title-lg my-4">{% trans "Fund Grant" %}</h2>
</div>

<div class="form__group-horizontal contribution_type">
<label class="form__label">{% trans "Contribution Type" %}</label>
<div class="row">
<div class="col-12 font-body">
<div class="col-12 col-sm-8 font-body">
<label class="form__label">{% trans "Contribution Type" %}</label>
<select name="recurring_or_not" id="recurring_or_not" class="js-select2" style="width: 100%">
<option value="once">{% trans "One Time" %}</option>
<option value="recurring" selected="selected">{% trans "Recurring" %}</option>
</select>
</div>

<div class="col-12 col-sm-4 font-body num_recurring">
<label class="form__label">
{% trans "Number of Contribution Periods" %}
</label>
<input id="period" type="number" min="1" step="1" name="num_periods" class="form__input" value="12" required />
</div>
</div>
</div>


<div class="form__group-horizontal frequency">
<label class="form__label">{% trans "Payment Period" %}</label>
<div class="row">
<div class="col-8">
<div class="col-6 col-sm-8 font-body">
<input type="number" min=0 step="1" id="frequency_count" name="frequency" class="form__input" value='30' required />
</div>
<div class="col-4 font-body">
<div class="col-6 col-sm-4 font-body">
<select name="frequency_unit" id="frequency_unit" class="js-select2" style="width: 100%">
{% if user.is_staff %}
<option value="minutes" selected="selected">{% trans "minutes" %}</option>
Expand All @@ -120,17 +128,6 @@ <h2 class="font-title-lg my-4">{% trans "Fund Grant" %}</h2>
</div>
</div>

<div class="form__group-horizontal num_recurring">
<div class="row">
<div class="col-12">
<label class="form__label">
{% trans "Number of Contribution Periods" %}
</label>
<input id="period" type="number" min="1" step="1" name="num_periods" class="form__input" value="12" required />
</div>
</div>
</div>

<div id="gas-section" class="form__group-horizontal">
<div class="row">
<div class="col-12">
Expand Down Expand Up @@ -248,5 +245,10 @@ <h5>Thanks for Contributing!</h5>
<script src="{% static "v2/js/ipfs-api.js" %}"></script>
<script src="{% static "v2/js/ipfs.js" %}"></script>
<script src="{% static "v2/js/bootstrap.min.js" %}"></script>
<script>
let bootstrapTooltip = $.fn.tooltip.noConflict()
let bootstrapModal = $.fn.modal.noConflict()
$.fn.bootstrapModal = bootstrapModal
</script>
<script src="{% static "v2/js/waiting_room_entertainment.js" %}"></script>
</html>

0 comments on commit c363039

Please sign in to comment.