diff options
Diffstat (limited to 'app/notes/templates')
-rw-r--r-- | app/notes/templates/note_form.html | 6 | ||||
-rw-r--r-- | app/notes/templates/note_list.html | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/app/notes/templates/note_form.html b/app/notes/templates/note_form.html index 9c8ac37..3924d48 100644 --- a/app/notes/templates/note_form.html +++ b/app/notes/templates/note_form.html @@ -27,13 +27,11 @@ form .selector label { {% endblock %} {% block js %} <script type="text/javascript"> -var options = {searchable: true}; -NiceSelect.bind(document.getElementById("id_project"), options); - {% if is_update %}{%else%} +{% if is_update %}{%else%} let params = new URL(document.location).searchParams; document.getElementById('id_title').value = params.get("title"); document.getElementById('id_url').value = params.get("url"); -document.getElementById('id_body_markdown').value = params.get("description"); +document.getElementById('id_description').value = params.get("description"); {% endif %} </script> {% endblock%} diff --git a/app/notes/templates/note_list.html b/app/notes/templates/note_list.html index 1439f4a..e262558 100644 --- a/app/notes/templates/note_list.html +++ b/app/notes/templates/note_list.html @@ -18,7 +18,8 @@ <h2>{% if object.url %}<a href="{{object.url}}">{{object.title}}</a>{%else%}{{object.title}}{%endif%} <span class="note-edit"><a href="{%url 'notes:note-edit' object.id %}">edit</a></span></h2> <p>{{object.description}}</p> {% if object.project %}<p class="small">For: <a href="{% url 'notes:project-detail' object.project.id %}">{{object.project}}</a></p>{%endif%} - <p class="small"><a href="{% url 'notes:note-detail' object.pk %}">View local</a></p> + <p class="note-edit">TAGS: {% for tag in object.tags.all %}<a href="/notes/?tag={{tag}}">{{tag}}</a>, {%endfor%}</p> + <p class="note-edit"><a href="{% url 'notes:note-detail' object.pk %}">View local</a></p> <p class="small"><a href="{% url 'notes:note-delete' object.pk %}">delete</a></p> </article> {% endfor%}</div> |