forked from s3lph/matemat
90 lines
No EOL
3.6 KiB
HTML
90 lines
No EOL
3.6 KiB
HTML
<section id="admin-restricted-newuser">
|
|
<h2>Create New User</h2>
|
|
|
|
<form id="admin-newuser-form" method="post" action="/admin?adminchange=newuser" accept-charset="UTF-8">
|
|
<label for="admin-newuser-username">Username: </label>
|
|
<input id="admin-newuser-username" type="text" name="username" /><br/>
|
|
|
|
<label for="admin-newuser-email">E-Mail (optional): </label>
|
|
<input id="admin-newuser-email" type="text" name="email" /><br/>
|
|
|
|
<label for="admin-newuser-password">Password: </label>
|
|
<input id="admin-newuser-password" type="password" name="password" /><br/>
|
|
|
|
<label for="admin-newuser-ismember">Member: </label>
|
|
<input id="admin-newuser-ismember" type="checkbox" name="ismember" /><br/>
|
|
|
|
<label for="admin-newuser-isadmin">Admin: </label>
|
|
<input id="admin-newuser-isadmin" type="checkbox" name="isadmin" /><br/>
|
|
|
|
<input type="submit" value="Create User" />
|
|
</form>
|
|
</section>
|
|
|
|
<section id="admin-restricted-moduser">
|
|
<h2>Modify User</h2>
|
|
|
|
<form id="admin-moduser-form" method="get" action="/moduser" accept-charset="UTF-8">
|
|
<label for="admin-moduser-userid">Username: </label>
|
|
<select id="admin-moduser-userid" name="userid">
|
|
{% for user in users %}
|
|
<option value="{{ user.id }}">{{ user.name }}</option>
|
|
{% endfor %}
|
|
</select><br/>
|
|
|
|
<input type="submit" value="Go" />
|
|
</form>
|
|
</section>
|
|
|
|
<section id="admin-restricted-newproduct">
|
|
<h2>Create New Product</h2>
|
|
|
|
<form id="admin-newproduct-form" method="post" action="/admin?adminchange=newproduct" enctype="multipart/form-data" accept-charset="UTF-8">
|
|
<label for="admin-newproduct-name">Name: </label>
|
|
<input id="admin-newproduct-name" type="text" name="name" /><br/>
|
|
|
|
<label for="admin-newproduct-price-member">Member price: </label>
|
|
<input id="admin-newproduct-price-member" type="number" min="0" name="pricemember" /><br/>
|
|
|
|
<label for="admin-newproduct-price-non-member">Non-member price: </label>
|
|
<input id="admin-newproduct-price-non-member" type="number" min="0" name="pricenonmember" /><br/>
|
|
|
|
<label for="admin-newproduct-image">Image: </label>
|
|
<input id="admin-newproduct-image" type="file" accept="image/png" /><br/>
|
|
|
|
<input type="submit" value="Create Product" />
|
|
</form>
|
|
</section>
|
|
|
|
<section id="admin-restricted-restock">
|
|
<h2>Restock Product</h2>
|
|
|
|
<form id="admin-restock-form" method="post" action="/admin?adminchange=restock" accept-charset="UTF-8">
|
|
<label for="admin-restock-productid">Product: </label>
|
|
<select id="admin-restock-productid" name="productid">
|
|
{% for product in products %}
|
|
<option value="{{ product.id }}">{{ product.name }} ({{ product.stock }})</option>
|
|
{% endfor %}
|
|
</select><br/>
|
|
|
|
<label for="admin-restock-amount">Amount: </label>
|
|
<input id="admin-restock-amount" type="number" min="0" name="amount" /><br/>
|
|
|
|
<input type="submit" value="Restock" />
|
|
</form>
|
|
</section>
|
|
|
|
<section id="admin-restricted-modproduct">
|
|
<h2>Modify Product</h2>
|
|
|
|
<form id="admin-modproduct-form" method="get" action="/modproduct" accept-charset="UTF-8">
|
|
<label for="admin-modproduct-productid">Product: </label>
|
|
<select id="admin-modproduct-productid" name="productid">
|
|
{% for product in products %}
|
|
<option value="{{ product.id }}">{{ product.name }}</option>
|
|
{% endfor %}
|
|
</select><br/>
|
|
|
|
<input type="submit" value="Go">
|
|
</form>
|
|
</section> |