Skip to content

Instantly share code, notes, and snippets.

@renatooliveira
Created July 25, 2013 23:27
Show Gist options
  • Select an option

  • Save renatooliveira/6084733 to your computer and use it in GitHub Desktop.

Select an option

Save renatooliveira/6084733 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Mobdoctor</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="{{STATIC_URL}}template/css/bootstrap.min.css" />
<link rel="stylesheet" href="{{STATIC_URL}}template/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="{{STATIC_URL}}template/css/unicorn.login.css" />
<link rel="stylesheet" href="{{STATIC_URL}}css/login.css" />
</head>
<body>
<div id="logo">
<img src="{{STATIC_URL}}img/small.png" alt="Mobdoctor" />
</div>
<div id="loginbox">
<form id="loginform" class="form-vertical" action="" method="POST">
{% csrf_token %}
<div class="control-group {% if form.username.errors %} error {% endif %}">
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-user"></i></span>
{{ form.username }}
</div>
{% if form.username.errors %}
<span class="help-inline">{{ form.username.errors }}</span>
{% endif %}
</div>
</div>
<div class="control-group {% if form.password.errors %} error {% endif %}">
<div class="controls">
<div class="input-prepend">
<span class="add-on"><i class="icon-lock"></i></span>
{{ form.password }}
</div>
{% if form.password.errors %}
<span class="help-inline"> {{ form.password.errors }}</span>
{% endif %}
{% if form.non_field_errors %}
<span class="help-inline">{{ form.non_field_errors }}</span>
{% endif %}
</div>
</div>
<div class="form-actions">
<span class="pull-right"><input type="submit" class="btn btn-inverse" value="Login" /></span>
</div>
</form>
</div>
<script src="{{ STATIC_URL }}template/js/jquery.min.js"></script>
<script src="{{ STATIC_URL }}template/js/unicorn.login.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment