BestNotes/bestnotes/templates/note.html

24 lines
800 B
HTML
Raw Normal View History

2019-12-07 19:24:05 +01:00
{% extends 'base.html' %}
{% load static %}
{% block css %}
<link rel="stylesheet" type="text/css" href="{% static 'note.css' %}">
{% endblock %}
{% block content %}
{% include 'navbar.html' %}
<div class="container d-flex justify-content-center">
<div class="row mt-4"><h1 id="note_title" class="text-white">Tytuł: {{ note.name }}</h1></div>
2019-12-07 19:24:05 +01:00
</div>
{% if note.user.user.id == user.id %}
<div class="container">
<div class="row d-flex justify-content-center"><button id="edit_note" class="btn-success mr-1">Edytuj</button> <button id="delete_note" class="btn-danger">Usuń</button></div>
</div>
{% endif %}
2019-12-07 19:24:05 +01:00
<div class="container">
<div class="d-flex justify-content-center mt-5">
<h3 class="text-white" id="note_text"> {{ note.text }}</h3>
2019-12-07 19:24:05 +01:00
</div>
</div>
{% endblock %}