-
Notifications
You must be signed in to change notification settings - Fork 638
/
Filter.html
155 lines (142 loc) · 5.06 KB
/
Filter.html
1
2
3
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{namespace belog=TYPO3\CMS\Belog\ViewHelpers}
<f:comment>
This is an ugly workaround.
The function module in Web->Info already renders a form tag, and there is
no easy way to circumvent this. The page id is needed for the info module
that is not extbase based to figure the permissions. Thus, we have to add
the page Id manually to hint the info module about that.
</f:comment>
<f:if condition="{constraint.isInPageContext}">
<input type="hidden" name="id" value="{constraint.pageId}" />
</f:if>
<f:form object="{constraint}" action="index" name="constraint" class="form-inline form-inline-spaced">
<div class="form-group">
<label for="belog-users"><f:translate key="users" /></label>
<f:form.select
property="userOrGroup"
options="{userGroups}"
additionalAttributes="{onchange : 'submit()'}"
class="form-control input-sm"
id="belog-users"
/>
</div>
<div class="form-group">
<label for="belog-max"><f:translate key="max" /></label>
<belog:form.translateLabelSelect
property="number"
options="{settings.selectableNumberOfLogEntries}"
optionLabelPrefix="LLL:EXT:belog/Resources/Private/Language/locallang.xlf:"
additionalAttributes="{onchange : 'submit()'}"
class="form-control input-sm"
id="belog-max"
/>
</div>
<f:if condition="{workspacesExtensionLoaded}">
<f:if condition="{showWorkspaceSelector}">
<div class="form-group">
<label for="belog-workspaces"><f:translate key="workspace" /></label>
<f:form.select
property="workspaceUid"
options="{workspaces}"
additionalAttributes="{onchange : 'submit()'}"
class="form-control input-sm"
id="belog-workspaces"
/>
</div>
</f:if>
</f:if>
<f:if condition="{constraint.isInPageContext}">
<div class="form-group">
<label for="belog-depth"><f:translate key="chLog_menuDepth" /></label>
<f:form.select
property="depth"
options="{pageDepths}"
additionalAttributes="{onchange : 'submit()'}"
class="form-control input-sm"
id="belog-depth"
/>
</div>
</f:if>
<div class="form-group">
<label for="belog-time"><f:translate key="time" /></label>
<belog:form.translateLabelSelect
property="timeFrame"
options="{settings.selectableTimeFrames}"
optionLabelPrefix="LLL:EXT:belog/Resources/Private/Language/locallang.xlf:"
additionalAttributes="{onchange : 'submit()'}"
class="form-control input-sm"
id="belog-time"
/>
</div>
<div class="form-group">
<label for="belog-action"><f:translate key="action" /></label>
<belog:form.translateLabelSelect
property="action"
options="{settings.selectableActions}"
optionLabelPrefix="LLL:EXT:belog/Resources/Private/Language/locallang.xlf:"
additionalAttributes="{onchange : 'submit()'}"
class="form-control input-sm"
id="belog-action"
/>
</div>
<f:if condition="{constraint.depth} > 0">
<div class="form-group">
<label for="belog-group"><f:translate key="groupByPage" /></label>
<f:form.checkbox
property="groupByPage"
value="1"
additionalAttributes="{onchange : 'submit()'}"
id="belog-group"
/>
</div>
</f:if>
<f:comment>
Date time fields for manual date selection
</f:comment>
<f:if condition="{constraint.timeFrame} == 30">
<div class="form-group">
<label for="manualDateStart"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:from" /></label>
<div class="input-group input-group-sm">
<f:form.textfield
name="manualDateStart"
value="{f:if(condition: constraint.manualDateStart, then: \"{f:format.date(format:'{settings.timeFormat} {settings.dateFormat}', date: '{constraint.manualDateStart}')}\")}"
id="manualDateStart"
class="form-control input-sm t3js-datetimepicker t3js-clearable"
data="{date-type: 'datetime'}"
/>
<f:form.hidden
property="manualDateStart"
value="{f:if(condition: constraint.manualDateStart, then: \"{f:format.date(format:'c', date: '{constraint.manualDateStart}')}\")}"
/>
<span class="input-group-btn">
<label class="btn btn-default" for="manualDateStart">
<span class="fa fa-calendar"></span>
</label>
</span>
</div>
</div>
<div class="form-group">
<label for="manualDateStop"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_common.xlf:to" /></label>
<div class="input-group input-group-sm">
<f:form.textfield
name="manualDateStop"
value="{f:format.date(format:'{settings.timeFormat} {settings.dateFormat}', date: '{constraint.manualDateStop}')}"
id="manualDateStop"
class="form-control input-sm t3js-datetimepicker t3js-clearable"
data="{date-type: 'datetime'}"
/>
<f:form.hidden property="manualDateStop"
value="{f:format.date(format:'c', date: '{constraint.manualDateStop}')}"
/>
<span class="input-group-btn">
<label class="btn btn-default" for="manualDateStop">
<span class="fa fa-calendar"></span>
</label>
</span>
</div>
</div>
<div class="form-group">
<f:form.submit id="submit-constraint" value="{f:translate(key: 'set')}" class="btn btn-default btn-sm" />
</div>
</f:if>
</f:form>