found some lingering List references in the template dir; summarily changed to Note
This commit is contained in:
@@ -7,7 +7,7 @@ from .note_page import NotePage
|
|||||||
|
|
||||||
class NewVisitorTest(FunctionalTest):
|
class NewVisitorTest(FunctionalTest):
|
||||||
# Test methods
|
# Test methods
|
||||||
def test_can_start_a_todo_list(self):
|
def test_can_start_a_note(self):
|
||||||
self.create_pre_authenticated_session("alice@test.io")
|
self.create_pre_authenticated_session("alice@test.io")
|
||||||
self.browser.get(self.live_server_url)
|
self.browser.get(self.live_server_url)
|
||||||
note_page = NotePage(self)
|
note_page = NotePage(self)
|
||||||
@@ -17,7 +17,7 @@ class NewVisitorTest(FunctionalTest):
|
|||||||
self.assertIn('Welcome', header_text)
|
self.assertIn('Welcome', header_text)
|
||||||
|
|
||||||
inputbox = note_page.get_item_input_box()
|
inputbox = note_page.get_item_input_box()
|
||||||
self.assertEqual(inputbox.get_attribute('placeholder'), 'Enter a to-do item')
|
self.assertEqual(inputbox.get_attribute('placeholder'), 'Enter a note item')
|
||||||
|
|
||||||
inputbox.send_keys('Buy peacock feathers')
|
inputbox.send_keys('Buy peacock feathers')
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
id="id_applet_new_note"
|
id="id_applet_new_note"
|
||||||
style="--applet-cols: {{ entry.applet.grid_cols }}; --applet-rows: {{ entry.applet.grid_rows }};"
|
style="--applet-cols: {{ entry.applet.grid_cols }}; --applet-rows: {{ entry.applet.grid_rows }};"
|
||||||
>
|
>
|
||||||
<h2>Start a new to-do list</h2>
|
<h2>Start a new note</h2>
|
||||||
{% url "new_note" as form_action %}
|
{% url "new_note" as form_action %}
|
||||||
{% include "apps/dashboard/_partials/_form.html" with form=form form_action=form_action %}
|
{% include "apps/dashboard/_partials/_form.html" with form=form form_action=form_action %}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
id="id_text"
|
id="id_text"
|
||||||
name="text"
|
name="text"
|
||||||
class="form-control form-control-lg{% if form.errors.text %} is-invalid{% endif %}"
|
class="form-control form-control-lg{% if form.errors.text %} is-invalid{% endif %}"
|
||||||
placeholder="Enter a to-do item"
|
placeholder="Enter a note item"
|
||||||
value="{{ form.text.value | default:'' }}"
|
value="{{ form.text.value | default:'' }}"
|
||||||
aria-describedby="id_text_feedback"
|
aria-describedby="id_text_feedback"
|
||||||
required
|
required
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{% extends "core/base.html" %}
|
{% extends "core/base.html" %}
|
||||||
{% load lyric_extras %}
|
{% load lyric_extras %}
|
||||||
|
|
||||||
{% block title_text %}Your to-do list{% endblock title_text %}
|
{% block title_text %}Your note{% endblock title_text %}
|
||||||
{% block header_text %}Your to-do list{% endblock header_text %}
|
{% block header_text %}Your note{% endblock header_text %}
|
||||||
|
|
||||||
|
|
||||||
{% block extra_header %}
|
{% block extra_header %}
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<small>List created by: <span id="id_note_owner">{{ note.owner|display_name }}</span></small>
|
<small>Note created by: <span id="id_note_owner">{{ note.owner|display_name }}</span></small>
|
||||||
<table id="id_note_table" class="table">
|
<table id="id_note_table" class="table">
|
||||||
{% for item in note.item_set.all %}
|
{% for item in note.item_set.all %}
|
||||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
<button type="submit" class="btn btn-primary btn-xl">Share</button>
|
<button type="submit" class="btn btn-primary btn-xl">Share</button>
|
||||||
</form>
|
</form>
|
||||||
<small>List shared with:
|
<small>Note shared with:
|
||||||
{% for user in note.shared_with.all %}
|
{% for user in note.shared_with.all %}
|
||||||
<span class="note-recipient">{{ user|display_name }}</span>
|
<span class="note-recipient">{{ user|display_name }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user