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