2012-09-20 16:06:27 +04:00
|
|
|
{% load url from future %}
|
2012-12-30 08:24:05 +04:00
|
|
|
{% load rest_framework %}
|
2012-09-20 16:06:27 +04:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
2012-12-27 01:35:03 +04:00
|
|
|
<link rel="stylesheet" type="text/css" href="{% static "rest_framework/css/bootstrap.min.css" %}"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="{% static "rest_framework/css/bootstrap-tweaks.css" %}"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="{% static "rest_framework/css/default.css" %}"/>
|
2012-09-20 16:06:27 +04:00
|
|
|
</head>
|
|
|
|
|
2012-10-29 17:57:46 +04:00
|
|
|
<body class="container">
|
2012-09-20 16:06:27 +04:00
|
|
|
|
2012-10-29 17:57:46 +04:00
|
|
|
<div class="container-fluid" style="margin-top: 30px">
|
|
|
|
<div class="row-fluid">
|
|
|
|
|
|
|
|
<div class="well" style="width: 320px; margin-left: auto; margin-right: auto">
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div>
|
|
|
|
<h3 style="margin: 0 0 20px;">Django REST framework</h3>
|
2012-09-20 16:06:27 +04:00
|
|
|
</div>
|
2012-10-29 17:57:46 +04:00
|
|
|
</div><!-- /row fluid -->
|
2012-09-20 16:06:27 +04:00
|
|
|
|
2012-10-29 17:57:46 +04:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div>
|
|
|
|
<form action="{% url 'rest_framework:login' %}" class=" form-inline" method="post">
|
2012-09-20 16:06:27 +04:00
|
|
|
{% csrf_token %}
|
2012-10-29 17:57:46 +04:00
|
|
|
<div id="div_id_username" class="clearfix control-group">
|
|
|
|
<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>
|
2012-09-20 16:06:27 +04:00
|
|
|
</div>
|
2012-10-29 17:57:46 +04:00
|
|
|
<div id="div_id_password" class="clearfix control-group">
|
|
|
|
<div class="controls" style="height: 30px">
|
|
|
|
<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>
|
2012-09-20 16:06:27 +04:00
|
|
|
</div>
|
2012-10-29 17:57:46 +04:00
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
|
|
<div class="form-actions-no-box">
|
|
|
|
<input type="submit" name="submit" value="Log in" class="btn btn-primary" id="submit-id-submit">
|
2012-09-20 16:06:27 +04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2012-10-29 17:57:46 +04:00
|
|
|
</div><!-- /row fluid -->
|
|
|
|
</div><!--/span-->
|
2012-09-20 16:06:27 +04:00
|
|
|
|
2012-10-29 17:57:46 +04:00
|
|
|
</div><!-- /.row-fluid -->
|
|
|
|
</div>
|
2012-09-20 16:06:27 +04:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|