[TASK] EXT:sys_note: Button order
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Resources / Private / Templates / Note / List.html
1 {namespace notes=TYPO3\CMS\SysNote\ViewHelpers}
2 {namespace core=TYPO3\CMS\Core\ViewHelpers}
3
4 <f:layout name="Default" />
5
6 <f:section name="Content">
7 <f:if condition="{notes}">
8 <h2><f:translate key="internal_note" /></h2>
9
10 <div class="typo3-dblist-sysnotes">
11 <f:for each="{notes}" as="note">
12 <div class="panel panel-default panel-sysnote panel-sysnote-category-{note.category}">
13 <div class="panel-heading clearfix">
14 <span class="typeicon t3-js-clickmenutrigger" data-table="sys_note" data-uid="{note.uid}" data-listframe="1">
15 <core:icon identifier="sysnote-type-{note.category}" />
16 </span>
17 <span class="author">
18 <f:translate key="author" />
19 <f:if condition="{note.author.realName}">
20 <f:then>{note.author.realName}</f:then>
21 <f:else>{note.author.userName}</f:else>
22 </f:if>
23 </span>
24 &nbsp; <span>&bull;</span> &nbsp;
25 <span class="date">
26 <f:translate key="date" />
27 <f:format.date>{note.modificationDate}</f:format.date>
28 </span>
29 <f:if condition="{note.personal}">
30 &middot;
31 <span class="personal">
32 <f:translate key="personal" />&nbsp;<f:translate key="yes" /></span>
33 </f:if>
34
35 <div class="btn-group pull-right">
36 <a href="{notes:editLink(id:note.uid)}" class="btn btn-default btn-sm">
37 <core:icon identifier="actions-document-open" />
38 </a>
39 <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:lang/locallang_common.xlf:delete')}" data-content="{f:translate(key: 'LLL:EXT:lang/locallang_alt_doc.xlf:deleteWarning')}" data-button-close-text="{f:translate(key: 'LLL:EXT:lang/locallang_common.xlf:cancel')}">
40 <core:icon identifier="actions-edit-delete" />
41 </a>
42 </div>
43 </div>
44 <div class="panel-body">
45 <h4><span><f:if condition="{note.category}"><f:translate key="category.{note.category}" />: </f:if></span>{note.subject}</h4>
46 <f:format.nl2br>{note.message}</f:format.nl2br>
47 </div>
48 </div>
49 </f:for>
50 </div>
51
52 </f:if>
53 </f:section>