rDrama/files/templates/sub/create_hole.html

58 lines
1.4 KiB
HTML
Raw Normal View History

2022-10-31 23:07:24 +00:00
{% extends "default.html" %}
2022-02-10 20:35:16 +00:00
{% block title %}
<title>Create a {{HOLE_NAME}}</title>
2022-02-10 20:35:16 +00:00
{% endblock %}
2022-10-31 23:07:24 +00:00
{% block content %}
2022-02-10 20:35:16 +00:00
<form class="mt-3" 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-10-23 17:57:38 +00:00
<h1 class="d-mob-none">Create a {{HOLE_NAME}}</h1>
2022-02-10 20:35:16 +00:00
2022-10-29 00:52:11 +00:00
<h3 class=" d-md-none">Create a {{HOLE_NAME}}</h3>
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-08-11 13:36:41 +00:00
<input minlength="3" maxlength="25" 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-25 characters, including letters, numbers, _ , and -</small>
2022-02-10 20:35:16 +00:00
<div class="footer">
2022-02-10 20:35:16 +00:00
<div class="d-flex">
{% if error %}
<p class="mb-0">
2022-10-10 05:23:02 +00:00
<span class="text-danger text-small" style="vertical-align: sub;">{{error}}</span>
</p>
{% endif %}
2022-10-31 23:07:24 +00:00
<button class="btn btn-primary ml-auto" id="create_button" {% if cost > v.coins %}disabled{% endif %}>Create {{HOLE_NAME|capitalize}}</button>
</div>
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{cost}} coins</p>
</div>
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>
2022-10-10 05:23:02 +00:00
{% endblock %}