mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 20:27:12 +03:00
48 lines
1.3 KiB
HTML
48 lines
1.3 KiB
HTML
|
<html>
|
||
|
<head>
|
||
|
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/base.css'/>
|
||
|
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/forms.css'/>
|
||
|
<link rel="stylesheet" type="text/css" href='{{ADMIN_MEDIA_PREFIX}}css/login.css' />
|
||
|
<style>
|
||
|
.form-row {border-bottom: 0.25em !important}</style>
|
||
|
</head>
|
||
|
<body class="login">
|
||
|
<div id="container">
|
||
|
<div id="header">
|
||
|
<div id="branding">
|
||
|
<h1 id="site-name">Django REST framework</h1>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div id="content" class="colM">
|
||
|
|
||
|
<div id="content-main">
|
||
|
<form method="post" action="{% url djangorestframework.views.api_login %}" id="login-form">
|
||
|
{% csrf_token %}
|
||
|
<div class="form-row">
|
||
|
<label for="id_username">Username:</label> {{ form.username }}
|
||
|
</div>
|
||
|
<div class="form-row">
|
||
|
<label for="id_password">Password:</label> {{ form.password }}
|
||
|
<input type="hidden" name="next" value="{{ next }}" />
|
||
|
</div>
|
||
|
<div class="form-row">
|
||
|
<label> </label><input type="submit" value="Log in">
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
document.getElementById('id_username').focus()
|
||
|
</script>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<br class="clear">
|
||
|
</div>
|
||
|
|
||
|
<div id="footer"></div>
|
||
|
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|