storj/web/marketing/pages/partner-offers-modal.html
Yingrong Zhao 786828ea0a
satellite/console: bypass activation token logic for open source partner referral link (#2736)
* when there's partner id, we will not require an activation token for creating a new account

* create new token if user has a partner id on creation

* validate partner id first

* fix format

* remove unnecessary code

* display error message instead of reroute

* add more test

* add comments

* add comment
2019-08-14 11:27:22 -04:00

46 lines
2.6 KiB
HTML

<!-- 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}}