rDrama/files/templates/sub/create_hole.html

62 lines
1.3 KiB
HTML
Raw Normal View History

2022-02-10 20:35:16 +00:00
{% extends "submit.html" %}
{% block title %}
2022-03-09 02:04:37 +00:00
<title>Create a hole</title>
2022-02-10 20:35:16 +00:00
{% endblock %}
{% block form %}
<pre>
2022-02-16 02:15:17 +00:00
2022-02-10 20:35:16 +00:00
</pre>
2022-06-09 22:29:45 +00:00
<form id="submitform" action="/create_hole" method="post">
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<div class="container">
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<div class="row justify-content-center mb-4 pb-7">
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<div class="col col-md-6 p-3 py-md-0">
2022-02-10 20:35:16 +00:00
2022-03-09 02:04:37 +00:00
<h1 class="d-none d-md-block">Create a hole</h1>
2022-02-10 20:35:16 +00:00
2022-03-09 02:04:37 +00:00
<h2 class="h3 d-md-none">Create a hole</h2>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<div class="body">
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<input type="hidden" name="formkey" value="{{v.formkey}}">
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<label for="title">Sub Name</label>
2022-02-10 20:35:16 +00:00
2022-03-04 18:19:43 +00:00
<input minlength="3" maxlength="20" pattern='[a-zA-Z0-9_\-]*' class="form-control" id="title-register" aria-describedby="titleHelpRegister" type="text" name="name" required>
<small class="form-text text-muted">3-20 characters, including letters, numbers, _ , and -</small>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
</div>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<div class="footer">
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<div class="d-flex">
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
{% if error %}
<p class="mb-0">
<span class="text-danger text-small" style="vertical-align: sub;">{{ error }}</span>
</p>
{% endif %}
2022-03-09 02:04:37 +00:00
<button class="btn btn-primary ml-auto" id="create_button" {% if cost > v.coins %}disabled{% endif %}>Create Hole</button>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
</div>
2022-02-10 20:35:16 +00:00
2022-02-25 20:01:03 +00:00
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{cost}} coins</p>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
</div>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
</div>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
</div>
</div>
2022-02-10 20:35:16 +00:00
</form>
{% endblock %}