2d73899ab5079faaced53e2ee17257b7bd986a50
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Resources / Private / Templates / Note / List.html
1 {namespace notes=TYPO3\CMS\SysNote\ViewHelpers}
2
3 <f:if condition="{notes}">
4 <h2><f:translate key="internal_note" /></h2>
5
6 <div class="typo3-dblist-sysnotes">
7 <f:for each="{notes}" as="note">
8 <div class="panel panel-default panel-sysnote panel-sysnote-category-{note.category}">
9 <div class="panel-heading clearfix">
10 <span class="typeicon t3js-contextmenutrigger" data-table="sys_note" data-uid="{note.uid}">
11 <core:icon identifier="sysnote-type-{note.category}" />
12 </span>
13 <span class="author">
14 <f:translate key="author" />
15 <f:if condition="{note.realName}">
16 <f:then>{note.realName}</f:then>
17 <f:else>{note.username}</f:else>
18 </f:if>
19 </span>
20 &nbsp; <span>&bull;</span> &nbsp;
21 <span class="date">
22 <f:translate key="date" />
23 <f:format.date>@{note.tstamp}</f:format.date>
24 </span>
25 <f:if condition="{note.personal}">
26 &middot;
27 <span class="personal">
28 <f:translate key="personal" />&nbsp;<f:translate key="yes" /></span>
29 </f:if>
30
31 <div class="btn-group pull-right">
32 <a href="{notes:editLink(id:note.uid)}" class="btn btn-default btn-sm">
33 <core:icon identifier="actions-open" />
34 </a>
35 <a href="{notes:deleteLink(id:note.uid)}" class="btn btn-default btn-sm t3js-modal-trigger" data-severity="warning" data-title="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:delete')}" data-content="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_alt_doc.xlf:deleteWarning')}" data-button-close-text="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:cancel')}">
36 <core:icon identifier="actions-edit-delete" />
37 </a>
38 </div>
39 </div>
40 <div class="panel-body">
41 <h4><span><f:if condition="{note.category}"><f:translate key="category.{note.category}" />: </f:if></span>{note.subject}</h4>
42 <f:format.nl2br>{note.message}</f:format.nl2br>
43 </div>
44 </div>
45 </f:for>
46 </div>
47 </f:if>