forked from MarseyWorld/MarseyWorld
fdfd
parent
6438e43045
commit
040cb54322
|
@ -11,27 +11,16 @@
|
|||
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
|
||||
<div class="card-columns awards-wrapper">
|
||||
{% for award in v.user_awards %}
|
||||
<div>
|
||||
<label class="card" onclick="document.getElementById('desc-{{award.kind}}').classList.toggle('d-none');document.getElementById('giveaward').disabled=false">
|
||||
<i class="{{award.icon}} {{award.color}}"></i><br />
|
||||
<span class="d-block pt-2" style="font-weight: bold; font-size: 14px;">{{award.title}}</span>
|
||||
<span class="text-muted">{{award.owned}} owned</span>
|
||||
</label>
|
||||
</div>
|
||||
<div id="desc-{{award.kind}}" class="d-none">
|
||||
<div class="award-desc p-3">
|
||||
<i style="font-size: 35px;"></i>
|
||||
<div style="margin-left: 15px;">
|
||||
<strong>{{award.title}} Award</strong><br />
|
||||
<span class="text-muted">{{award.description}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<label for="note" class="pt-4">Note (optional):</label>
|
||||
<textarea id="note" name="note" class="form-control" placeholder="Note to include in award notification"></textarea>
|
||||
</div>
|
||||
<label class="card" onclick="document.getElementById('desc-{{award.kind}}').classList.toggle('d-none');document.getElementById('giveaward').disabled=false">
|
||||
<i class="{{award.icon}} {{award.color}}"></i><br />
|
||||
<span class="d-block pt-2" style="font-weight: bold; font-size: 14px;">{{award.title}}</span>
|
||||
<span class="text-muted">{{award.owned}} owned</span>
|
||||
</label>
|
||||
<input name="{{award.kind}}" hidden>
|
||||
<input id="giveaward" class="btn btn-primary" type="submit" value="Give Award" disabled>
|
||||
{% endfor %}
|
||||
<label for="note" class="pt-4">Note (optional):</label>
|
||||
<textarea id="note" name="note" class="form-control" placeholder="Note to include in award notification"></textarea>
|
||||
<input id="giveaward" class="btn btn-primary" type="submit" value="Give Award" disabled>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue