BVB Source Codes

django-rest-framework Show login_base.html Source code

Return Download django-rest-framework: download login_base.html Source code - Download django-rest-framework Source code - Type:.html
  1. {% extends "rest_framework/base.html" %}
  2. {% load staticfiles %}
  3. {% load rest_framework %}
  4.  
  5. {% block body %}
  6. <body class="container">
  7.   <div class="container-fluid" style="margin-top: 30px">
  8.     <div class="row-fluid">
  9.       <div class="well" style="width: 320px; margin-left: auto; margin-right: auto">
  10.         <div class="row-fluid">
  11.           <div>
  12.             {% block branding %}<h3 style="margin: 0 0 20px;">Django REST framework</h3>{% endblock %}
  13.           </div>
  14.         </div><!-- /row fluid -->
  15.  
  16.         <div class="row-fluid">
  17.           <div>
  18.             <form action="{% url 'rest_framework:login' %}" role="form" method="post">
  19.               {% csrf_token %}
  20.               <input type="hidden" name="next" value="{{ next }}" />
  21.  
  22.               <div id="div_id_username" class="clearfix control-group {% if form.username.errors %}error{% endif %}">
  23.                 <div class="form-group">
  24.                   <label for="id_username">{{ form.username.label }}:</label>
  25.                   <input type="text" name="username" maxlength="100"
  26.                      autocapitalize="off"
  27.                      autocorrect="off" class="form-control textinput textInput"
  28.                      id="id_username" required autofocus
  29.                      {% if form.username.value %}value="{{ form.username.value }}"{% endif %}>
  30.                   {% if form.username.errors %}
  31.                     <p class="text-error">
  32.                       {{ form.username.errors|striptags }}
  33.                     </p>
  34.                   {% endif %}
  35.                 </div>
  36.               </div>
  37.  
  38.               <div id="div_id_password" class="clearfix control-group {% if form.password.errors %}error{% endif %}">
  39.                 <div class="form-group">
  40.                   <label for="id_password">{{ form.password.label }}:</label>
  41.                   <input type="password" name="password" maxlength="100" autocapitalize="off" autocorrect="off" class="form-control textinput textInput" id="id_password" required>
  42.                   {% if form.password.errors %}
  43.                     <p class="text-error">
  44.                       {{ form.password.errors|striptags }}
  45.                     </p>
  46.                   {% endif %}
  47.                 </div>
  48.               </div>
  49.  
  50.               {% if form.non_field_errors %}
  51.                 {% for error in form.non_field_errors %}
  52.                   <div class="well well-small text-error" style="border: none">{{ error }}</div>
  53.                 {% endfor %}
  54.               {% endif %}
  55.  
  56.               <div class="form-actions-no-box">
  57.                 <input type="submit" name="submit" value="Log in" class="btn btn-primary form-control" id="submit-id-submit">
  58.               </div>
  59.             </form>
  60.           </div>
  61.         </div><!-- /.row-fluid -->
  62.       </div><!--/.well-->
  63.     </div><!-- /.row-fluid -->
  64.   </div><!-- /.container-fluid -->
  65. </body>
  66. {% endblock %}
  67.  
downloadlogin_base.html Source code - Download django-rest-framework Source code
Related Source Codes/Software:
lectures - Oxford Deep NLP 2017 course 2017-06-10
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Public-APIs - 2017-06-09
angular-starter - 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11

 Back to top