MarseyWorld/files/templates/sub/create_sub.html

62 lines
1.3 KiB
HTML
Raw Normal View History

2022-02-10 20:35:16 +00:00
{% extends "submit.html" %}
{% block title %}
<title>Create a Sub</title>
{% endblock %}
{% block form %}
<pre>
2022-02-16 02:15:17 +00:00
2022-02-10 20:35:16 +00:00
</pre>
<form id="submitform" action="/create_sub" method="post">
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-02-16 02:15:17 +00:00
<h1 class="d-none d-md-block">Create a sub</h1>
2022-02-10 20:35:16 +00:00
2022-02-16 02:15:17 +00:00
<h2 class="h3 d-md-none">Create a sub</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-02-25 20:01:03 +00:00
<button class="btn btn-primary ml-auto" id="create_button" {% if cost > v.coins %}disabled{% endif %}>Create Sub</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 %}