rDrama/files/templates/award_modal.html

46 lines
3.0 KiB
HTML
Raw Normal View History

2022-03-31 16:28:53 +00:00
<script src="/assets/js/award_modal.js?v=246"></script>
2021-10-15 14:08:27 +00:00
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
2022-01-31 23:55:11 +00:00
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered awardmodal my-5" role="document">
2022-02-01 05:43:49 +00:00
<div class="modal-content">
2021-10-15 14:08:27 +00:00
<div class="modal-header">
2021-12-14 22:48:37 +00:00
<h5 class="modal-title">Give Award</h5>
2022-02-01 02:20:25 +00:00
<button class="close" data-bs-dismiss="modal" aria-label="Close">
2021-10-15 14:08:27 +00:00
<span aria-hidden="true"><i class="far fa-times"></i></span>
</button>
</div>
2022-02-01 05:52:02 +00:00
<div id="awardModalBody" class="modal-body mb-3">
2021-12-14 22:48:37 +00:00
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
2022-03-19 16:19:02 +00:00
<input type="hidden" name="formkey", value="{{v.formkey}}">
2021-12-14 22:48:37 +00:00
<div class="card-columns award-columns awards-wrapper">
2021-10-15 14:08:27 +00:00
{% for award in v.user_awards %}
2022-02-18 14:23:14 +00:00
<a role="button" id="{{award.kind}}" class="card" onclick="pick('{{award.kind}}', {{award.price}} <= {{v.procoins}}, {{award.price}} <= {{v.coins}})">
2021-12-04 20:45:38 +00:00
<i class="{{award.icon}} {{award.color}}"></i>
2021-12-14 22:48:37 +00:00
<div class="pt-2" style="font-weight: bold; font-size: 14px; color:#E1E1E1">{{award.title}}</div>
2022-01-17 20:29:06 +00:00
<div class="text-muted"><span id="{{award.kind}}-owned">{{award.owned}}</span> owned</div>
2021-12-14 22:48:37 +00:00
</a>
2021-10-15 14:08:27 +00:00
{% endfor %}
</div>
2021-12-14 22:48:37 +00:00
<label id="notelabel" for="note" class="pt-4">Note (optional):</label>
2021-12-28 12:41:26 +00:00
<input autocomplete="off" id="kind" name="kind" value="" hidden>
<textarea autocomplete="off" id="note" maxlength="200" name="note" class="form-control" placeholder="Note to include in award notification..."></textarea>
2022-01-30 13:48:41 +00:00
<input autocomplete="off" id="giveaward" class="awardbtn btn btn-primary mt-3" style="float:right" type="submit" value="Give Award" disabled>
<button id="buy1" class="awardbtn btn btn-primary mt-3 mx-3" type="button" disabled style="float:right" onclick="buy(true)">Buy with marseybux</button>
<button id="buy2" class="awardbtn btn btn-primary mt-3" type="button" disabled style="float:right" onclick="buy()">Buy with coins</button>
2021-12-14 22:48:37 +00:00
<pre>
</pre>
2021-10-15 14:08:27 +00:00
</form>
</div>
</div>
</div>
2022-01-17 20:29:06 +00:00
<div class="toast" id="toast-post-success2" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role="alert" aria-live="assertive" aria-atomic="true" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
<div class="toast-body bg-success text-center text-white">
<i class="fas fa-comment-alt-smile mr-2"></i><span id="toast-post-success-text2">Action successful!</span>
</div>
</div>
<div class="toast" id="toast-post-error2" style="position: fixed; bottom: 1.5rem; margin: 0 auto; left: 0; right: 0; width: 275px; z-index: 1000" role="alert" aria-live="assertive" aria-atomic="true" data-bs-animation="true" data-bs-autohide="true" data-bs-delay="5000">
<div class="toast-body bg-danger text-center text-white">
<i class="fas fa-exclamation-circle mr-2"></i><span id="toast-post-error-text2">Error, please try again later.</span>
</div>
</div>
2022-02-22 10:09:34 +00:00
</div>