2019-07-12 14:52:00 +01:00
|
|
|
<!-- Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
See LICENSE for copying information. -->
|
|
|
|
|
|
|
|
{{define "partnerOffers"}}
|
2019-07-25 23:06:23 +01:00
|
|
|
|
|
|
|
<div class="row mt-4 mb-4 d-flex justify-content-between pr-4 modal-btn">
|
|
|
|
<h3 class="mt-4">{{.Name}} Offers</h3>
|
|
|
|
<button type="button" class="btn btn-primary mt-4" data-toggle="modal" data-target="#partner-offers-modal-{{.Name}}">+ Create Partner Offer</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "partnerOffersModal" .}}
|
|
|
|
|
|
|
|
<div class="offers-table mt-2 mb-5 container">
|
2019-07-12 14:52:00 +01:00
|
|
|
<div class="row header-row">
|
|
|
|
<div class="col col-heading">Name</div>
|
2019-07-31 17:01:18 +01:00
|
|
|
<div class="col col-heading">Give Credit</div>
|
2019-07-25 23:06:23 +01:00
|
|
|
<div class="col col-heading">Duration</div>
|
2019-07-12 14:52:00 +01:00
|
|
|
<div class="col col-heading">Status</div>
|
|
|
|
<div class="col col-heading">Link</div>
|
|
|
|
</div><hr>
|
|
|
|
<div class="row offer-heading ">
|
|
|
|
<p class="offer-type">Current Offer</p>
|
|
|
|
</div>
|
2019-07-25 23:06:23 +01:00
|
|
|
{{$currentOffer := .PartnerOffers.Active}}
|
|
|
|
{{if not $currentOffer.IsEmpty}}
|
2019-07-12 14:52:00 +01:00
|
|
|
<div class="row data-row">
|
2019-07-25 23:06:23 +01:00
|
|
|
<div class="col-2">{{$currentOffer.Name}}</div>
|
2019-07-31 17:01:18 +01:00
|
|
|
<div class="col-2">${{$currentOffer.InviteeCredit}}</div>
|
2019-07-25 23:06:23 +01:00
|
|
|
<div class="col-3">{{$currentOffer.InviteeCreditDurationDays}}</div>
|
|
|
|
<div class="col-2 col-offset-1 stop-offer">
|
|
|
|
<span data-toggle="modal" data-target=".stop-partner-offer-modal-{{.Name}}">
|
|
|
|
<strong>Live ·</strong>
|
|
|
|
</span>
|
|
|
|
</div>
|
2019-07-31 17:01:18 +01:00
|
|
|
<div class="col-3">
|
2019-08-30 23:43:53 +01:00
|
|
|
{{range ReferralLink $currentOffer.Name}}
|
2019-07-31 17:01:18 +01:00
|
|
|
<span class="d-block">{{.}}</span>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2019-07-12 14:52:00 +01:00
|
|
|
</div><hr>
|
2019-07-25 23:06:23 +01:00
|
|
|
{{end}}
|
|
|
|
{{template "stopPartnerOffer" .}}
|
2019-07-12 14:52:00 +01:00
|
|
|
<div class="row offer-heading ">
|
2019-07-25 23:06:23 +01:00
|
|
|
<p class="offer-type">Discontinued Offers</p>
|
2019-07-12 14:52:00 +01:00
|
|
|
</div>
|
2019-07-25 23:06:23 +01:00
|
|
|
{{range .PartnerOffers.Done}}
|
2019-07-12 14:52:00 +01:00
|
|
|
<div class="row data-row">
|
2019-07-25 23:06:23 +01:00
|
|
|
<div class="col-2">{{.Name}}</div>
|
|
|
|
<div class="col-2">${{.InviteeCredit}}</div>
|
|
|
|
<div class="col-3">{{.InviteeCreditDurationDays}}</div>
|
|
|
|
<div class="col-2 col-offset-1">off</div>
|
2019-07-31 17:01:18 +01:00
|
|
|
<div class="col-3"></div>
|
2019-07-12 14:52:00 +01:00
|
|
|
</div><hr>
|
2019-07-25 23:06:23 +01:00
|
|
|
{{end}}
|
2019-07-12 14:52:00 +01:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-07-25 23:06:23 +01:00
|
|
|
|