Task

Modify the three Note templates so that the current date is used as the default title for notes.

Modify the note-create template

Modify the default create template code to specify that Notes are the type of resource being created, and that the current date should be the default title for new notes.

Instructions

Step Action Notes
1 Navigate to the Note class, click on the note-create template, it will open in the Edit tab.
2 Specify that Notes are the type of resource being created. See code: note-create v1.1
3 Modify the default input field to accept a date value. See code: note-create v1.2
4 Set the value of the date field to the current date. See code: note-create v1.3
5 Save the template to the server.

Modify the note-view template

Modify the default view template code to show the date as the title.

Instructions

Step Action Notes
1 Modify the page title to show the date. See code: note-view v1.1
2 Save the template to the server.

Modify the note-edit template

Modify the default edit template code to display the date as the title, and to only allow editing the comment.

Instructions

Step Action Notes
1 Modify the title and h1 elements to display the date of the note. See code: note-edit v1.1
2 Remove the input field since the date should not be changed. See code: note-edit v1.2
3 Save the template to the server.