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):
|
||||
# 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.browser.get(self.live_server_url)
|
||||
note_page = NotePage(self)
|
||||
@@ -17,7 +17,7 @@ class NewVisitorTest(FunctionalTest):
|
||||
self.assertIn('Welcome', header_text)
|
||||
|
||||
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')
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
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>
|
||||
<h2>Start a new note</h2>
|
||||
{% url "new_note" as form_action %}
|
||||
{% include "apps/dashboard/_partials/_form.html" with form=form form_action=form_action %}
|
||||
</section>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
id="id_text"
|
||||
name="text"
|
||||
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:'' }}"
|
||||
aria-describedby="id_text_feedback"
|
||||
required
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{% extends "core/base.html" %}
|
||||
{% load lyric_extras %}
|
||||
|
||||
{% block title_text %}Your to-do list{% endblock title_text %}
|
||||
{% block header_text %}Your to-do list{% endblock header_text %}
|
||||
{% block title_text %}Your note{% endblock title_text %}
|
||||
{% block header_text %}Your note{% endblock header_text %}
|
||||
|
||||
|
||||
{% block extra_header %}
|
||||
@@ -13,7 +13,7 @@
|
||||
{% block content %}
|
||||
<div class="row justify-content-center">
|
||||
<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">
|
||||
{% for item in note.item_set.all %}
|
||||
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
<button type="submit" class="btn btn-primary btn-xl">Share</button>
|
||||
</form>
|
||||
<small>List shared with:
|
||||
<small>Note shared with:
|
||||
{% for user in note.shared_with.all %}
|
||||
<span class="note-recipient">{{ user|display_name }}</span>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user