File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
elevennote/note/templates/note Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -161,3 +161,11 @@ Chapter 14 - Editing existing notes
161
161
162
162
Add the ability to edit existing notes, as well as a link from the index page
163
163
to the edit page.
164
+
165
+
166
+ Chapter 15 - Begin improving UI
167
+ ----------------------
168
+
169
+ Begin improving the UI by displaying the full note on the index page.
170
+ Remove the edit button. Instead, clicking on the name takes you to edit
171
+ the note. (The details page isn't really needed any more)
Original file line number Diff line number Diff line change 2
2
3
3
{% block content %}
4
4
{% if latest_note_list %}
5
- < ul >
5
+ < table class = table >
6
6
{% for note in latest_note_list %}
7
- < li > < a href ="{% url 'note:detail' note.id %} "> {{ note.title }}</ a > - < a href ="{% url 'note:update' note.id %} "> Edit</ a > </ li >
7
+ < p >
8
+ < a href ="{% url 'note:update' note.id %} "> {{ note.title }}</ a > < br />
9
+ {{ note.body | safe }}
10
+ </ p >
11
+ < hr />
8
12
{% endfor %}
9
- </ ul >
10
13
{% else %}
11
14
< p > No notes are available.</ p >
12
15
{% endif %}
You can’t perform that action at this time.
0 commit comments