Files
Testing/leptesting/profile_he_user_note.tpl
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

48 lines
2.0 KiB
Smarty

{*
@author Ermek
@copyright Hire-Experts LLC
@version UserNote 1.01
*}
{if $user->level_info.level_usernote_allowed}
<link rel="stylesheet" href="./templates/he_user_note_styles.css"/>
<script src="./include/js/he_user_note.js" type="text/javascript"></script>
{lang_javascript ids=690699006}
<table cellspacing="0" cellpadding="0" width="100%" style="margin-bottom: 10px;" class="he_user_note_block">
<tbody>
<tr><td class="header">
<div class="block_acts" {if !$note_info}style="display: none"{/if}>
<a href="javascript://" title="{lang_print id=690699001}" onclick="he_user_note.show_note_form();"><img src="./images/icons/he_user_note_edit.png" border="0"/></a>&nbsp;
<a href="javascript://" title="{lang_print id=690699002}" onclick="he_user_note.delete_note();"><img src="./images/icons/he_user_note_del.png" border="0"/></a>
</div>
{lang_sprintf id=690699000 1=$owner->user_displayname_short}
<div class="clr"></div>
</td>
</tr>
<tr>
<td class="profile">
<div id="he_user_note_cont">
<div class="user_note" {if !$note_info}style="display: none"{/if}>{$note_info.note|nl2br}</div>
<a href="javascript://" onclick="he_user_note.show_note_form();" class="add_note_btn" {if $note_info}style="display: none"{/if}>{lang_print id=690699003}</a>
<div class="he_user_note_loading" style="display: none;"></div>
</div>
<div id="he_user_note_form" style="display: none;">
<center>
<textarea id="user_note_textarea" class="text note_textarea">{$note_info.note}</textarea>
</center>
<div class="note_controls">
<input type="button" class="button" value="{lang_print id=690699004}" onclick="he_user_note.save_note(this);"/>
<input type="button" class="button" value="{lang_print id=690699005}" onclick="he_user_note.cancel_note_form()"/>
</div>
</div>
</td>
</tr>
</tbody>
</table>
{/if}