{% extends "layout.html" %} {% set active_page = "notes" %} {% set help_page = ["notes", _('Notes')] %} {% block title %} - {{_('Notes')}}{% endblock %} {% block body %}
{% include 'flash_messages.html' %}

{{_('Notes')}}

{{_('Manage')}} {{_('Tags')}}

Tags allow categorization of notes. Each note may have one or more tags. A tag may be selected to display all the notes associated with it on a graph.

{{form_tag_add.csrf_token}}
{{form_tag_add.tag_name(class_='form-control')}}
{{form_tag_add.tag_add(class_='btn btn-primary')}}
{% if tags %}
{{form_tag_options.csrf_token}}
{{form_tag_options.rename(class_='form-control')}}
{{form_tag_options.tag_rename(class_='btn btn-primary')}}
{{form_tag_options.tag_del(class_='btn btn-primary', **{'onclick':'return confirm("Are you sure you want to delete this?")'})}}
{% else %}
No Tags found. Create a Tag to begin saving Notes.
{% endif %}

{{_('Create')}} {{_('Notes')}}

{{form_note_add.csrf_token}}
{{form_note_add.name.label(class_='control-label')}}
{{form_note_add.name(class_='form-control')}}
{{form_note_add.enter_custom_date_time.label(class_='control-label')}}
{{form_note_add.date_time.label(class_='control-label')}}
{{form_note_add.date_time(class_='form-control', value=current_date_time)}}
{{form_note_add.files.label(class_='control-label')}}
{{form_note_add.note.label(class_='control-label')}}
{{form_note_add.note(class_='form-control', rows='6')}}
{{form_note_add.note_tags.label(class_='control-label')}}
{{_('Select one or more tags')}}. {{_('Hold down the Ctrl or key to select more than one')}}.
{{form_note_add.note_add(class_='btn btn-primary')}}

{{_('Import')}} {{_('Notes')}}

{{form_note_show.csrf_token}}
{{form_note_show.notes_import_upload(class_='btn btn-primary')}}

{{_('Search')}} {{_('Notes')}}

Leave all fields empty and click Show Notes to see all notes.
Filter Tags: Enter one or more tags, separated by commas, to view the notes with those tags.
Filter Notes: Search using "*" as a wildcard (e.g. "*tem*" will return all notes with 'temp' and 'temperature' in the note).

{{form_note_add.csrf_token}}
{{form_note_show.filter_names.label(class_='control-label')}}
{{form_note_show.filter_names(class_='form-control')}}
{{form_note_show.filter_tags.label(class_='control-label')}}
{{form_note_show.filter_tags(class_='form-control')}}
{{form_note_show.filter_files.label(class_='control-label')}}
{{form_note_show.filter_files(class_='form-control')}}
{{form_note_show.filter_notes.label(class_='control-label')}}
{{form_note_show.filter_notes(class_='form-control')}}
{{form_note_show.sort_by.label(class_='control-label')}}
{{form_note_show.sort_by(class_='selectpicker')}}
{{form_note_show.sort_direction.label(class_='control-label')}}
{{form_note_show.sort_direction(class_='selectpicker')}}
{{form_note_show.notes_show(class_='btn btn-primary')}}
{{form_note_show.notes_export(class_='btn btn-primary')}}
{% if notes %}

{{_('Found')}}: {{number_displayed_notes[0]}}/{{number_displayed_notes[1]}}

{% for each_note in notes %} {% endfor -%}
ID Time, Name (Tags) Files Note
{{form_note_options.csrf_token}} {{form_note_options.note_unique_id(value=each_note.unique_id)}}
{{form_note_options.note_mod(class_='btn btn-sm btn-primary')}}
{{form_note_options.note_del(class_='btn btn-sm btn-primary', **{'onclick':'return confirm("Are you sure you want to delete this?")'})}}
{{each_note.id}} {{utc_to_local_time(each_note.date_time)}}
{{each_note.name}} ({% for each_tag in each_note.tags.split(',') %}{{get_note_tag_from_unique_id(each_tag)}}{% if not loop.last %}, {% endif %}{% endfor %})
{%- if each_note.files -%} {%- for each_file in each_note.files.split(',') -%} {{each_file[37:]}}{% if not loop.last %}, {% endif -%} {%- endfor -%} {%- endif -%}
{{each_note.note}}
{% else %}

No notes to display

{% endif %}
{% endblock %}