e8605d312e
* fix String converison * add method * rename to USD * fix types * fix parsing of forms * fix tests * fix header * use larger type * use int64 * rename func * move currency to separate package * convert types, renames * fix usercredits * remove unnecessary conversion * fix comment and named params
61 lines
3.8 KiB
HTML
61 lines
3.8 KiB
HTML
<!-- Copyright (C) 2019 Storj Labs, Inc.
|
|
See LICENSE for copying information. -->
|
|
|
|
{{define "referralOffersModal"}}
|
|
<div class="modal fade p-5" id="referral-offers-modal" tabindex="-1" role="dialog" aria-labelledby="ref-offers-modal-lbl" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="ref-offers-modal-lbl">Create Referral Credit</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form action="/create/referral-offer" method="POST" enctype="application/x-www-form-urlencoded">
|
|
<div class="form-row">
|
|
<div class="form-group col-md-4">
|
|
<label for="Name">Offer Name</label>
|
|
<input type="text" class="form-control" name="Name" id="Name" placeholder="May Referral" required>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="Description">Description</label>
|
|
<input type="text" class="form-control" name="Description" id="Description" placeholder="Our test with $50 for May" required>
|
|
</div>
|
|
<div class="form-group col-md-4">
|
|
<label for="ExpiresAt">Credit Exp Date</label>
|
|
<input type="date" class="form-control" id="ExpiresAt" name="ExpiresAt" placeholder="06/01/19" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group col-md-2">
|
|
<label for="InviteeCredit">Give Credit</label>
|
|
<input type="number" class="form-control" name="InviteeCredit" id="InviteeCredit" placeholder="$50" required>
|
|
</div>
|
|
<div class="form-group col-md-2">
|
|
<label for="InviteeCreditDurationDays">Give Credit Exp.</label>
|
|
<input type="number" class="form-control" name="InviteeCreditDurationDays" id="InviteeCreditDurationDays" min="1" placeholder="14 days" required>
|
|
</div>
|
|
<div class="form-group col-md-2">
|
|
<label for="AwardCredit">Award Credit</label>
|
|
<input type="number" class="form-control" name="AwardCredit" id="AwardCredit" placeholder="$50" min="1" required>
|
|
</div>
|
|
<div class="form-group col-md-3">
|
|
<label for="AwardCreditDurationDays">Award Credit Exp.</label>
|
|
<input type="number" class="form-control" name="AwardCreditDurationDays" id="AwardCreditDurationDays" placeholder="12 months" min="1" required>
|
|
</div>
|
|
<div class="form-group col-md-3">
|
|
<label for="RedeemableCap">Redeemable Capacity</label>
|
|
<input type="number" class="form-control" name="RedeemableCap" id="RedeemableCap" min="1" placeholder="150 users" required>
|
|
</div>
|
|
</div>
|
|
<div class="m-1 text-left">
|
|
<button type="submit" class="btn btn-primary">Create Offer</button>
|
|
<a class="ml-3" href="/">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}} |