Commit dfcb560f by Tom Christie

Fix up login styling

parent 752f191a
...@@ -3,42 +3,50 @@ ...@@ -3,42 +3,50 @@
<html> <html>
<head> <head>
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}rest_framework/css/style.css'/> <link rel="stylesheet" type="text/css" href="{% get_static_prefix %}rest_framework/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="{% get_static_prefix %}rest_framework/css/bootstrap-tweaks.css"/>
<link rel="stylesheet" type="text/css" href='{% get_static_prefix %}rest_framework/css/default.css'/>
</head> </head>
<body class="login"> <body class="container">
<div id="container"> <div class="container-fluid" style="margin-top: 30px">
<div class="row-fluid">
<div id="header">
<div id="branding"> <div class="well" style="width: 320px; margin-left: auto; margin-right: auto">
<h1 id="site-name">Django REST framework</h1> <div class="row-fluid">
<div>
<h3 style="margin: 0 0 20px;">Django REST framework</h3>
</div> </div>
</div> </div><!-- /row fluid -->
<div id="content" class="colM"> <div class="row-fluid">
<div id="content-main"> <div>
<form method="post" action="{% url 'rest_framework:login' %}" id="login-form"> <form action="{% url 'rest_framework:login' %}" class=" form-inline" method="post">
{% csrf_token %} {% csrf_token %}
<div class="form-row"> <div id="div_id_username" class="clearfix control-group">
<label for="id_username">Username:</label> {{ form.username }} <div class="controls" style="height: 30px">
<Label class="span4" style="margin-top: 3px">Username:</label>
<input style="height: 25px" type="text" name="username" maxlength="100" autocapitalize="off" autocorrect="off" class="textinput textInput" id="id_username">
</div>
</div> </div>
<div class="form-row"> <div id="div_id_password" class="clearfix control-group">
<label for="id_password">Password:</label> {{ form.password }} <div class="controls" style="height: 30px">
<input type="hidden" name="next" value="{{ next }}" /> <Label class="span4" style="margin-top: 3px">Password:</label>
<input style="height: 25px" type="password" name="password" maxlength="100" autocapitalize="off" autocorrect="off" class="textinput textInput" id="id_password">
</div>
</div> </div>
<div class="form-row"> <input type="hidden" name="next" value="{{ next }}" />
<label>&nbsp;</label><input type="submit" value="Log in"> <div class="form-actions-no-box">
<input type="submit" name="submit" value="Log in" class="btn btn-primary" id="submit-id-submit">
</div> </div>
</form> </form>
<script type="text/javascript">
document.getElementById('id_username').focus()
</script>
</div> </div>
<br class="clear"> </div><!-- /row fluid -->
</div> </div><!--/span-->
<div id="footer"></div> </div><!-- /.row-fluid -->
</div>
</div> </div>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment