BestNotes/bestnotes/templates/note.html

34 lines
1.1 KiB
HTML
Raw Normal View History

2019-12-07 19:24:05 +01:00
{% extends 'base.html' %}
{% load static %}
{% block css %}
2020-01-11 13:17:12 +01:00
<script type="text/javascript" src="{% static 'shownote.js' %}"></script>
2019-12-07 19:24:05 +01:00
<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">
2020-01-16 11:16:59 +01:00
<div class="row d-flex justify-content-center">
<form action="{% url 'update_note' note_id=note.id %}">
<button type="submit" id="edit_note" class="btn-success mr-1">Edytuj</button>
</form>
<form action="{% url 'delete_note' note_id=note.id %}">
<button type="submit" id="delete_note" class="btn-danger">Usuń</button>
</form>
</div>
</div>
{% endif %}
2019-12-07 19:24:05 +01:00
<div class="container">
<div class="d-flex justify-content-center mt-5">
2020-01-11 13:17:12 +01:00
<textarea class="tmpTextArea">{{note.content}} </textarea>
<div id="toAppend" class="mce-content-body"></div>
2019-12-07 19:24:05 +01:00
</div>
</div>
{% endblock %}