BVB Source Codes

django-rest-framework Show session.html Source code

Return Download django-rest-framework: download session.html Source code - Download django-rest-framework Source code - Type:.html
  1. {% load rest_framework %}
  2.  
  3. <!-- Modal -->
  4. <div class="modal fade auth-modal auth-session" id="auth_session_modal" tabindex="-1" role="dialog" aria-labelledby="session authentication modal">
  5. <div class="modal-dialog modal-md" role="document">
  6.   <div class="modal-content">
  7.     <div class="modal-header">
  8.       <h3 class="modal-title"><i class="fa fa-key"></i> Session Authentication</h3>
  9.     </div>
  10.  
  11.     <form class="form-horizontal authentication-session-form">
  12.     <div class="modal-body">
  13.  
  14.         {% if user.is_authenticated %}
  15.           <h4 class="text-center">You are logged in as {{ user.username }}.</h4>
  16.         {% else %}
  17.  
  18.           <div class="text-center">
  19.             <h4 class="text-center">You need to {% optional_docs_login request %} to enable Session Authentication.</h4>
  20.           </div>
  21.         {% endif %}
  22.  
  23.     </div>
  24.  
  25.     <div class="modal-footer">
  26.       <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  27.       {% if user.is_authenticated %}
  28.         <button type="submit" class="btn btn-primary">Use Session Authentication</button>
  29.       {% endif %}
  30.     </div>
  31.     </form>
  32.  
  33.   </div>
  34. </div>
  35. </div>
  36.  
downloadsession.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