0d294103e9
* organize offers * revert changes to go.mod and go.sum * change OfferStatus enums back to original * revert modified auto-gen files * don't render empty row if offers is empty * change return val of ListAll to Offers * fix build * add method to check for empty offer when rendering template * fix typo * fix lint and typos * lean out IsEmpty * dont use named return vals * better clarify offer statuses * change back order of setting offer.Status * lint * satellite/marketingweb: allow disabling rewards (#2392) * implement handler for stop offer endpoint * use proper text and fix data-target for free-credit stop modal
30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
<!-- Copyright (C) 2019 Storj Labs, Inc.
|
|
See LICENSE for copying information. -->
|
|
|
|
{{define "stopReferralOffer"}}
|
|
<div class="modal fade stop-referral-offer-modal mt-5" tabindex="-1" role="dialog" aria-labelledby="confirm" aria-hidden="true">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
<div class="row d-flex justify-content-between">
|
|
<img class="mt-3 ml-5" src="/static/img/warning.png" height="30" width="30"/>
|
|
<p class="mt-3">Replace
|
|
<strong>{{.ReferralOffers.Active.Name}}</strong> with
|
|
<strong>{{.ReferralOffers.Default.Name}}</strong> ?
|
|
</p>
|
|
<div class="mt-2 mb-2 d-flex">
|
|
<a href="/">
|
|
<button class="btn btn-outline-secondary mr-1">
|
|
Cancel
|
|
</button>
|
|
</a>
|
|
<form method="POST" action="/stop/{{.ReferralOffers.Active.ID}}">
|
|
<button class="btn btn-primary mr-4" type="submit">
|
|
Yes
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}} |