renamed List to Note everywhere thru-out project in preparation for complete overhaul of applet capabilities
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
<section
|
||||
id="id_applet_my_lists"
|
||||
style="--applet-cols: {{ entry.applet.grid_cols }}; --applet-rows: {{ entry.applet.grid_rows }};"
|
||||
>
|
||||
<a href="{% url 'my_lists' user.id %}" class="my-lists-main">My lists:</a>
|
||||
<div class="my-lists-container">
|
||||
<ul>
|
||||
{% for list in recent_lists %}
|
||||
<li>
|
||||
<a href="{{ list.get_absolute_url }}">{{ list.name }}</a>
|
||||
</li>
|
||||
{% empty %}
|
||||
<li>No lists yet.</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
17
src/templates/apps/dashboard/_partials/_applet-my-notes.html
Normal file
17
src/templates/apps/dashboard/_partials/_applet-my-notes.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<section
|
||||
id="id_applet_my_notes"
|
||||
style="--applet-cols: {{ entry.applet.grid_cols }}; --applet-rows: {{ entry.applet.grid_rows }};"
|
||||
>
|
||||
<a href="{% url 'my_notes' user.id %}" class="my-notes-main">My notes:</a>
|
||||
<div class="my-notes-container">
|
||||
<ul>
|
||||
{% for note in recent_notes %}
|
||||
<li>
|
||||
<a href="{{ note.get_absolute_url }}">{{ note.name }}</a>
|
||||
</li>
|
||||
{% empty %}
|
||||
<li>No notes yet.</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
@@ -1,8 +1,8 @@
|
||||
<section
|
||||
id="id_applet_new_list"
|
||||
id="id_applet_new_note"
|
||||
style="--applet-cols: {{ entry.applet.grid_cols }}; --applet-rows: {{ entry.applet.grid_rows }};"
|
||||
>
|
||||
<h2>Start a new to-do list</h2>
|
||||
{% url "new_list" as form_action %}
|
||||
{% url "new_note" as form_action %}
|
||||
{% include "apps/dashboard/_partials/_form.html" with form=form form_action=form_action %}
|
||||
</section>
|
||||
</section>
|
||||
@@ -1,19 +0,0 @@
|
||||
{% extends "core/base.html" %}
|
||||
{% load lyric_extras %}
|
||||
|
||||
{% block header_text %}{{ user|display_name }}'s lists{% endblock header_text %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{{ owner|display_name }}'s lists</h3>
|
||||
<ul>
|
||||
{% for list in owner.lists.all %}
|
||||
<li><a href="{{ list.get_absolute_url }}">{{ list.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h3>Lists shared with me</h3>
|
||||
<ul>
|
||||
{% for list in owner.shared_lists.all %}
|
||||
<li><a href="{{ list.get_absolute_url }}">{{ list.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
19
src/templates/apps/dashboard/my_notes.html
Normal file
19
src/templates/apps/dashboard/my_notes.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "core/base.html" %}
|
||||
{% load lyric_extras %}
|
||||
|
||||
{% block header_text %}{{ user|display_name }}'s notes{% endblock header_text %}
|
||||
|
||||
{% block content %}
|
||||
<h3>{{ owner|display_name }}'s notes</h3>
|
||||
<ul>
|
||||
{% for note in owner.notes.all %}
|
||||
<li><a href="{{ note.get_absolute_url }}">{{ note.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h3>Notes shared with me</h3>
|
||||
<ul>
|
||||
{% for note in owner.shared_notes.all %}
|
||||
<li><a href="{{ note.get_absolute_url }}">{{ note.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
|
||||
{% block extra_header %}
|
||||
{% url "view_list" list.id as form_action %}
|
||||
{% url "view_note" note.id as form_action %}
|
||||
{% include "apps/dashboard/_partials/_form.html" with form=form form_action=form_action %}
|
||||
{% endblock extra_header %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-6">
|
||||
<small>List created by: <span id="id_list_owner">{{ list.owner|display_name }}</span></small>
|
||||
<table id="id_list_table" class="table">
|
||||
{% for item in list.item_set.all %}
|
||||
<small>List created by: <span id="id_note_owner">{{ note.owner|display_name }}</span></small>
|
||||
<table id="id_note_table" class="table">
|
||||
{% for item in note.item_set.all %}
|
||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-6">
|
||||
|
||||
<form method="POST" action="{% url "share_list" list.id %}">
|
||||
<form method="POST" action="{% url "share_note" note.id %}">
|
||||
{% csrf_token %}
|
||||
<input
|
||||
id="id_recipient"
|
||||
@@ -44,8 +44,8 @@
|
||||
<button type="submit" class="btn btn-primary btn-xl">Share</button>
|
||||
</form>
|
||||
<small>List shared with:
|
||||
{% for user in list.shared_with.all %}
|
||||
<span class="list-recipient">{{ user|display_name }}</span>
|
||||
{% for user in note.shared_with.all %}
|
||||
<span class="note-recipient">{{ user|display_name }}</span>
|
||||
{% endfor %}
|
||||
</small>
|
||||
</div>
|
||||
Reference in New Issue
Block a user