[FEATURE] Backend ViewHelpers for edit creation and editing
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Resources / Private / Templates / Note / List.html
1 <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
2 xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
3 xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
4 xmlns:notes="http://typo3.org/ns/TYPO3/CMS/SysNote/ViewHelpers"
5 >
6 <f:layout name="Default" />
7
8 <f:section name="main">
9 <f:if condition="{notes}">
10 <h2><f:translate key="internal_note" /></h2>
11
12 <div class="typo3-dblist-sysnotes">
13 <f:for each="{notes}" as="note">
14 <div class="panel panel-default panel-sysnote panel-sysnote-category-{note.category}">
15 <div class="panel-heading clearfix">
16 <span class="typeicon t3js-contextmenutrigger" data-table="sys_note" data-uid="{note.uid}">
17 <core:icon identifier="sysnote-type-{note.category}" />
18 </span>
19 <span class="author">
20 <f:translate key="author" />
21 <f:if condition="{note.realName}">
22 <f:then>{note.realName}</f:then>
23 <f:else>{note.username}</f:else>
24 </f:if>
25 </span>
26 &nbsp; <span>&bull;</span> &nbsp;
27 <span class="date">
28 <f:translate key="date" />
29 <f:format.date>@{note.tstamp}</f:format.date>
30 </span>
31 <f:if condition="{note.personal}">
32 &middot;
33 <span class="personal">
34 <f:translate key="personal" />&nbsp;<f:translate key="yes" /></span>
35 </f:if>
36
37 <div class="btn-group pull-right">
38 <be:link.editRecord uid="{note.uid}" table="sys_note" class="btn btn-default btn-sm">
39 <core:icon identifier="actions-open" />
40 </be:link.editRecord>
41 <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')}">
42 <core:icon identifier="actions-edit-delete" />
43 </a>
44 </div>
45 </div>
46 <div class="panel-body">
47 <h4><span><f:if condition="{note.category}"><f:translate key="category.{note.category}" />: </f:if></span>{note.subject}</h4>
48 <f:format.nl2br>{note.message}</f:format.nl2br>
49 </div>
50 </div>
51 </f:for>
52 </div>
53 </f:if>
54 </f:section>
55 </html>