storj/web/marketing/pages/partner-offers-modal.html

46 lines
2.6 KiB
HTML
Raw Normal View History

<!-- Copyright (C) 2019 Storj Labs, Inc.
See LICENSE for copying information. -->
{{define "partnerOffersModal"}}
<div class="modal fade p-5" id="partner-offers-modal-{{.Name}}" tabindex="-1" role="dialog" aria-labelledby="partner-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="partner-offers-modal-lbl">Create Partner Offer</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<form action="/create/partner-offer" method="POST" enctype="application/x-www-form-urlencoded">
<div class="form-row">
<div class="form-group col-md-4">
<label for="Name">Partner</label>
<input type="text" class="form-control" name="Name" id="Name" value="{{.Name}}" readonly>
</div>
<div class="form-group col-md-4">
<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-4">
<label for="InviteeCreditDurationDays">Credit Duration</label>
<input type="number" class="form-control" id="InviteeCreditDurationDays" name="InviteeCreditDurationDays" placeholder="14" 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 class="form-group">
<input type="date" class="invisible form-control" id="ExpiresAt" name="ExpiresAt" value="2119-07-31">
</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}}