{% extends "layout.html" %} {% set active_page = "notes" %} {% set help_page = ["https://kizniche.github.io/Mycodo/Notes", _('Notes')] %} {% block title %} - {{_('Edit Note')}}{% endblock %} {% block body %}
{% include 'flash_messages.html' %}

{{_('Notes')}}

{{_('Edit Note')}}

Select one or more tag. {{_('Hold down the Ctrl or key to select more than one')}}.

{{form_note_mod.csrf_token}} {{form_note_mod.note_unique_id(value=this_note.unique_id)}}
{{form_note_mod.name.label(class_='control-label')}}
{{form_note_mod.name(class_='form-control', value=this_note.name)}}
{{form_note_mod.date_time.label(class_='control-label')}}
{{form_note_mod.date_time(class_='form-control', value=utc_to_local_time(this_note.date_time))}}
{{form_note_mod.files.label(class_='control-label')}}
{{form_note_mod.note_tags.label(class_='control-label')}}
{{form_note_mod.note.label(class_='control-label')}}
{{form_note_mod.note(class_='form-control', rows='6')}}
{{form_note_mod.note_cancel(class_='btn btn-primary')}}
{{form_note_mod.note_del(class_='btn btn-primary', **{'onclick':'return confirm("Are you sure you want to delete this?")'})}}
{{form_note_mod.note_save(class_='btn btn-primary')}}
{% if this_note.files %}
{% for each_file in this_note.files.split(',') %} {{form_note_mod.csrf_token}} {{form_note_mod.note_unique_id(value=this_note.unique_id)}} {{form_note_mod.file_selected(value=each_file)}} {% endfor -%}
Attached File
{{each_file[37:]}}
{{form_note_mod.rename_name(class_='form-control', value=each_file[37:])}} {{form_note_mod.file_rename(class_='btn btn-primary btn-block')}} {{form_note_mod.file_del(class_='btn btn-primary btn-block', **{'onclick':'return confirm("Are you sure you want to delete this?")'})}}
{% endif %}
{% endblock %}