1
1

style input elements

This commit is contained in:
2021-01-20 00:05:12 +01:00
parent dda25ea097
commit a88e6a1725
3 changed files with 88 additions and 16 deletions

View File

@@ -12,10 +12,10 @@
<h1>balance prediction</h1>
<form method="get" action="{% url 'core:balance' %}">
<label for="amount"></label>
<input id="amount" name="amount" type="number" step="0.01" placeholder="amount">
<input type="submit" value="predict"/>
<form id="amount-form" method="get" action="{% url 'core:balance' %}">
<label for="amount-textbox"></label>
<input id="amount-textbox" name="amount" type="number" step="0.01" placeholder="amount">
<input id="amount-button" type="submit" value="predict"/>
{% if amount_error %}
<p>try a number, stupid</p>
{% endif %}

View File

@@ -6,13 +6,13 @@
{% block content %}
<form method="post" action="{% url 'login' %}">
<form id="login-form" method="post" action="{% url 'login' %}">
{% csrf_token %}
<label for="username"></label>
<input id="username" name="username" type="text" placeholder="username">
<label for="password">password</label>
<input id="password" name="password" type="password" placeholder="password">
<input type="submit" value="login"/>
<label for="username-textbox"></label>
<input id="username-textbox" name="username" type="text" placeholder="username" autocomplete="off">
<label for="password-textbox">password</label>
<input id="password-textbox" name="password" type="password" placeholder="password">
<input id="login-button" type="submit" value="login"/>
<input type="hidden" name="next" value="{{ next }}"/>
{% if form.errors %}
<p>nope.</p>