List.html 3.5 KB
Newer Older
1
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers" xmlns:notes="http://typo3.org/ns/TYPO3/CMS/SysNote/ViewHelpers">
2
3
<f:layout name="Default" />
<f:section name="main">
4

5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    <f:if condition="{notes}">
        <div class="note-list">
            <h2><f:translate key="internal_note" /></h2>
            <f:for each="{notes}" as="note">
                <div class="note note-category-{note.category}">
                    <div class="note-header">
                        <div class="note-header-bar">
                            <span class="note-icon t3js-contextmenutrigger" data-table="sys_note" data-uid="{note.uid}">
                                <core:icon identifier="sysnote-type-{note.category}" />
                            </span>
                            <span class="note-author">
                                <f:translate key="author" />:
                                <f:if condition="{note.authorDisabled} || {note.authorDeleted} || !{note.authorUsername}">
                                    <f:then>[{f:translate(key: 'author_deleted')}]</f:then>
                                    <f:else if="{note.authorRealName}">{note.authorRealName}</f:else>
                                    <f:else>{note.authorUsername}</f:else>
                                </f:if>
                            </span>
                            <span class="note-date">
                                <f:translate key="date" />:
                                <f:format.date>@{note.tstamp}</f:format.date>
                            </span>
                            <f:if condition="{note.personal}">
                                <span class="note-badge">
                                    <span class="badge badge-info"><f:translate key="personal" /></span>
                                </span>
                            </f:if>
                            <span class="note-actions">
                                <span class="btn-group">
                                    <be:link.editRecord uid="{note.uid}" table="sys_note" class="btn btn-default btn-sm">
                                        <core:icon identifier="actions-open" />
                                    </be:link.editRecord>
37
                                    <a href="{be:moduleLink(route:'tce_db', query:'cmd[sys_note][{note.uid}][delete]=1', currentUrlParameterName:'redirect')}" 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-bs-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')}">
38
39
40
41
42
43
44
45
46
                                        <core:icon identifier="actions-edit-delete" />
                                    </a>
                                </span>
                            </span>
                        </div>
                    </div>
                    <div class="note-body">
                        <h4><span><f:if condition="{note.category}"><f:translate key="category.{note.category}" />: </f:if></span>{note.subject}</h4>
                        <f:format.nl2br>{note.message}</f:format.nl2br>
47
48
                    </div>
                </div>
49
50
51
52
            </f:for>
        </div>
    </f:if>

53
54
</f:section>
</html>