2024-01-09 20:54:34 +00:00
|
|
|
{% extends "core/templates/index.jinja" %}
|
2023-08-27 18:18:56 +00:00
|
|
|
{% block content %}
|
2024-01-10 02:16:22 +00:00
|
|
|
<style type="text/css">
|
|
|
|
input::-webkit-outer-spin-button,
|
|
|
|
input::-webkit-inner-spin-button {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2023-09-01 21:21:02 +00:00
|
|
|
|
2024-01-10 02:16:22 +00:00
|
|
|
/* Firefox */
|
|
|
|
input[type=number] {
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
}
|
|
|
|
</style>
|
2024-01-09 20:54:34 +00:00
|
|
|
{% if sesh is defined and sesh["user_id"] > 0 %}
|
2023-08-27 18:40:09 +00:00
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<br>
|
2023-09-01 21:21:02 +00:00
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<h2> Profile </h2>
|
2023-09-08 21:55:18 +00:00
|
|
|
<h3>Version:
|
|
|
|
<select name="version" id="version" onChange="changeVersion(this)">
|
|
|
|
{% for ver in version_list %}
|
|
|
|
<option value={{loop.index0}} {{ "selected" if loop.index0==version else "" }} >{{ver}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</h3>
|
|
|
|
<hr>
|
2023-09-01 21:21:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
2023-09-08 21:55:18 +00:00
|
|
|
<h2> Name: {{ profile_data.userName if profile_data.userName is defined else "Profile not found" }}</h2>
|
2023-09-01 21:21:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="col">
|
2023-09-08 21:55:18 +00:00
|
|
|
<h4> ID: {{ profile_data.user if profile_data.user is defined else 'Profile not found' }}</h4>
|
2023-09-01 21:21:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-08 21:55:18 +00:00
|
|
|
<hr>
|
2023-09-01 21:21:02 +00:00
|
|
|
<div class="row">
|
|
|
|
<h2> Rivals <button class="btn btn-success" data-bs-toggle="modal" data-bs-target="#rival_add">Add</button></h2>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<table class="table table-dark table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">ID</th>
|
|
|
|
<th scope="col">Name</th>
|
|
|
|
<th scope="col">Delete</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for rival in rival_info%}
|
2023-09-01 22:40:57 +00:00
|
|
|
<tr id="{{rival.rivalUserId}}">
|
2023-09-01 21:21:02 +00:00
|
|
|
<td>{{rival.rivalUserId}}</td>
|
|
|
|
<td>{{rival.rivalUserName}}</td>
|
2023-09-01 22:40:57 +00:00
|
|
|
<td><button class="btn-danger btn btn-sm" onclick="deleteRival({{rival.rivalUserId}})">Delete</button></td>
|
2023-09-01 21:21:02 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="modal fade" id="rival_add" tabindex="-1" aria-labelledby="card_add_label" data-bs-theme="dark" aria-hidden="true">
|
2024-01-10 02:16:22 +00:00
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title">Add rival</h5>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form id="rival" action="/game/ongeki/rival.add" method="post" style="outline: 0;">
|
|
|
|
<label class="form-label" for="rivalUserId">Rival ID</label>
|
|
|
|
<input class="form-control" aria-describedby="rivalIdHelphelp" form="rival" id="rivalUserId" name="rivalUserId" maxlength="5" type="number" required>
|
|
|
|
<div id="rivalIdHelphelp" class="form-text">Please use the ID show next to your name in the profile page.</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<input type=submit class="btn btn-primary" type="button" form="rival" value="Add">
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
2023-09-01 21:21:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-10 02:16:22 +00:00
|
|
|
</div>
|
2023-09-01 21:21:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-09-01 22:40:57 +00:00
|
|
|
<script>
|
2024-01-09 20:54:34 +00:00
|
|
|
{% include 'titles/ongeki/templates/js/ongeki_scripts.js' %}
|
2023-09-01 22:40:57 +00:00
|
|
|
</script>
|
2023-09-01 21:21:02 +00:00
|
|
|
{% else %}
|
|
|
|
<h2>Not Currently Logged In</h2>
|
|
|
|
{% endif %}
|
2023-08-27 18:18:56 +00:00
|
|
|
{% endblock content %}
|