BestNotes/bestnotes/templates/notes.html
Th3NiKo 77971cce4d BES-34
Merging new colors
2019-12-08 10:29:08 +01:00

38 lines
1.3 KiB
HTML

{% extends 'base.html' %}
{% load static %}
{% block css %}
<link rel="stylesheet" type="text/css" href="{% static 'subject.css' %}">
{% endblock %}
{% block content %}
{% include 'navbar.html' %}
<div class="container d-flex justify-content-center">
<div class="row mt-4"><h1>{{id}}</h1></div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-6">
<h2 class="text-white text-center">Dostępne notatki</h2>
<ul class="list-group cProductsList mt-3">
{% for note in notes%}
{% if user.id != note.user.user.id %}
<a href="/bestnotes/note/{{ note.id }}" class="list-group-item list-group-item-action">{{ note.name }}</a>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="col-sm-6">
<h2 class="text-white text-center">Twoje notatki</h2>
<ul class="list-group cProductsList mt-3">
{% for note in notes%}
{% if user.id == note.user.user.id %}
<a href="/bestnotes/note/{{ note.id }}" class="list-group-item list-group-item-action">{{ note.name }}</a>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
{% endblock %}