forked from rDrama/rDrama
1
0
Fork 0
master
kek7198 2021-12-31 16:07:35 -06:00
parent a4790f3766
commit e33cb09bbf
1 changed files with 21 additions and 14 deletions

View File

@ -32,22 +32,27 @@
{% block content %}
<div class="col-span-full my-4 space-y-6">
<h5>Vote Info</h5>
<form action="/admin/alt_votes" method="get" class="p-5 flex flex-col rounded-md bg-gray-300 dark:bg-gray-700 shadow-inset-t-white-10 border border-gray-400 dark:border-gray-900">
<label class="label">
Usernames
</label>
<div class="w-full flex space-x-2 items-center">
<input id="link-input" type="text" class="form-input" name="u1" value="{{u1.username if u1 else ''}}" placeholder="User #1" required>
<input id="link-input" type="text" class="form-input" name="u2" value="{{u2.username if u2 else ''}}" placeholder="User #2" oninput="document.getElementById('analysis-btn').disabled=false" required>
<input id="analysis-btn" type="submit" value="Analyze" class="btn btn-primary">
</div>
</form>
<div class="p-5 flex flex-col rounded-md bg-gray-300 dark:bg-gray-700 shadow-inset-t-white-10 border border-gray-400 dark:border-gray-900">
<h2 class="font-bold text-lg font-heading leading-normal mb-0 capitalize">
Vote Info
</h2>
<form action="/admin/alt_votes" method="get">
<label class="label">
Usernames
</label>
<div class="w-full flex space-x-2 items-center">
<input id="link-input" type="text" class="form-input" name="u1" value="{{u1.username if u1 else ''}}" placeholder="User #1" required>
<input id="link-input" type="text" class="form-input" name="u2" value="{{u2.username if u2 else ''}}" placeholder="User #2" oninput="document.getElementById('analysis-btn').disabled=false" required>
<input id="analysis-btn" type="submit" value="Analyze" class="btn btn-primary">
</div>
</form>
</div>
{% if u1 and u2 %}
<div class="p-5 flex flex-col rounded-md bg-gray-300 dark:bg-gray-700 shadow-inset-t-white-10 border border-gray-400 dark:border-gray-900">
<h2>Analysis</h2>
<h2 class="font-bold text-lg font-heading leading-normal mb-0 capitalize">
Analysis
</h2>
<table class="w-full table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>
@ -86,7 +91,9 @@
</div>
<div class="p-5 flex flex-col rounded-md bg-gray-300 dark:bg-gray-700 shadow-inset-t-white-10 border border-gray-400 dark:border-gray-900">
<h2>Link Accounts</h2>
<h2 class="font-bold text-lg font-heading leading-normal mb-0 capitalize">
Link Acocunts
</h2>
{% if u2 in u1.alts %}
<p>Accounts are known alts of eachother.</p>
{% else %}