Digital Rights Management für elektronische Patientenakten
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

base_generic.html 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. {% block title %}<title>Gabriel's DRM</title>{% endblock %}
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
  8. {% load static %}
  9. <link rel="stylesheet" href="{% static 'css/styles.css' %}">
  10. <link rel="shortcut icon" type="image/png" href="{% static 'favicon.png' %}"/>
  11. <style>
  12. {% load static %}
  13. body {
  14. background-image: url('{% static "images/wall.jpg" %}');
  15. color: black;
  16. }
  17. .col-sm-5{
  18. margin-top: 20px;
  19. border-radius: 25px;
  20. padding: 20px;
  21. box-shadow: 0 10px 20px rgba(0, 0, 0, .7);
  22. backdrop-filter: blur(6px);
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div class="container-fluid">
  28. <div class="row">
  29. <div class="col-sm-2">
  30. {% block sidebar %}
  31. <ul class="sidebar-nav">
  32. <li><a href="{% url 'index' %}">Home</a></li>
  33. {% if user.is_authenticated %}
  34. <li> Username: </li>
  35. <li id="username">{{ user.get_username }}</li>
  36. <li> Folder ID: {{ user.folderinfo }}</li>
  37. <li><a href="{% url 'create-license' user.folderinfo.id %}">Create License</a></li>
  38. <li><a href="{% url 'given-licenses' %}">Given Licenses</a></li>
  39. <li><a href="{% url 'my-licenses' %}">My Licenses</a></li>
  40. <li><a href="{% url 'logout'%}?next={{request.path}}">Logout</a></li>
  41. {% else %}
  42. <li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
  43. {% endif %}
  44. </ul>
  45. {% endblock %}
  46. </div>
  47. <div class="col-sm-5">{% block content %}{% endblock %}</div>
  48. {% if "license/show" in request.path %}
  49. <div class="col-sm-5" style="visibility: hidden" id="license_content">
  50. <div class="row">
  51. <div class="col-sm-3">
  52. <div id="part_buttons"></div>
  53. </div>
  54. <div class="col-sm-6">
  55. <div id="content_parts"></div>
  56. </div>
  57. </div>
  58. </div>
  59. {% endif %}
  60. </div>
  61. </div>
  62. <script src="{% static 'frontend/main.js' %}"></script>
  63. </body>
  64. </html>