{*
Note editing
This Template displays a form where notes can be edited.
This template is used for different tasks:
* if you add a new note
* if you edit a existing note
Variables assigned by the core:
$data Data of this note as it comes from $note->getData().
This is a associative array containing the fields of the note
If this is a new note, $data == false.
*}
{* Fetch NoteDriver from core: *}
{assign var=LCC_NOTEDRIVER value=$LCC_CORE->getNoteDriverInstance()}
<form method="POST" action="{$smarty.server.SCRIPT_NAME}?lcc_action=edit_note&lcc_id={$data.id|default:$smarty.get.lcc_id}&lcc_eventid={$data.event_id|default:$smarty.get.lcc_eventid}">
<table class="event_edit_form">
<caption>{if $data}{#lcc_edit_note_title#} {$data.id}{else}{#lcc_edit_note_addtitle#}{/if}</caption>
<tr>
<th>{#lcc_note_desc_text#} {if $LCC_NOTEDRIVER->checkField('text', 'mandatory')}<span class="mandatory_field">*</span>{/if}</th>
<td><textarea name="lcc_new_data[text]">{$smarty.post.lcc_new_data.text|default:$data.text}</textarea></td>
</tr>
<tr>
<td colspan="2">
<div class="mandatory_text">
<span class="mandatory_field">*</span>{#lcc_edit_note_mandatory#}
</div>
<center>
<input type="reset" value="{#lcc_edit_note_reset#}">
<input type="submit" value="{#lcc_edit_note_submit#}">
</center>
</td>
</tr>
</table>
</form>