mirror of
https://github.com/fspc/workstand.git
synced 2025-02-24 09:43:22 -05:00
Start of a login form.
This commit is contained in:
parent
537dc18f41
commit
8c4e533232
31
bikeshop_project/registration/templates/login.html
Normal file
31
bikeshop_project/registration/templates/login.html
Normal file
@ -0,0 +1,31 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="demo-graphs mdl-shadow--2dp mdl-color--white mdl-cell mdl-cell--8-col mdl-shadow--2dp">
|
||||
<h2 class="mdl-card__title-text">Welcome</h2>
|
||||
<form action="#">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input class="mdl-textfield__input" type="text" id="sample3">
|
||||
<label class="mdl-textfield__label" for="sample3">Text...</label>
|
||||
</div>
|
||||
</form>
|
||||
<!-- Numeric Textfield with Floating Label -->
|
||||
<form action="#">
|
||||
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
|
||||
<input class="mdl-textfield__input" type="text" pattern="-?[0-9]*(\.[0-9]+)?" id="sample4">
|
||||
<label class="mdl-textfield__label" for="sample4">Number...</label>
|
||||
<span class="mdl-textfield__error">Input is not a number!</span>
|
||||
</div>
|
||||
</form>
|
||||
<div class="mdl-card__actions mdl-card--border">
|
||||
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
|
||||
Get Started
|
||||
</a>
|
||||
</div>
|
||||
<div class="mdl-card__menu">
|
||||
<button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
|
||||
<i class="material-icons">share</i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
6
bikeshop_project/registration/urls.py
Normal file
6
bikeshop_project/registration/urls.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.conf.urls import url
|
||||
from django.contrib.auth import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^login/$', views.login, {'template_name': 'login.html'}),
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user