511200d10989bbb12e75dab0d7fea2995f9d06bd
[Packages/TYPO3.CMS.git] / typo3 / sysext / tstemplate / Resources / Private / Templates / TemplateObjectBrowserModuleFunction.html
1 <f:if condition="{existTemplate}">
2 <h3>
3 <f:translate key="{LLPrefix}currentTemplate"/>
4 </h3>
5 <div>
6 <core:iconForRecord table="sys_template" row="{templateRecord}"/>
7 <strong>
8 <f:format.raw>{linkWrapTemplateTitle}</f:format.raw>
9 </strong>
10 <f:if condition="{templateRecord.sitetitle} != ''">
11 ({templateRecord.sitetitle})
12 </f:if>
13 </div>
14 </f:if>
15 <f:if condition="{manyTemplatesMenu}">
16 <f:format.raw>
17 {manyTemplatesMenu}
18 </f:format.raw>
19 </f:if>
20 <f:if condition="{typoScriptPath}">
21 <f:then>
22 <f:if condition="{existTemplate}">
23 <f:then>
24 <div style="padding-top: 10px;">
25 <div class="form-group">
26 <h3>
27 <f:translate key="{LLPrefix}editProperty"/>
28 </h3>
29 <label>{typoScriptPath} =</label>
30 <f:form.textfield class="form-control" name="data[{typoScriptPath}][value]" value="{theSetupValue}"/>
31 </div>
32 <f:form.submit value="{f:translate(key:'{LLPrefix}updateButton')}" class="btn btn-default"
33 name="update_value"/>
34 </div>
35 <div style="padding-top: 20px">
36 <div class="form-group">
37 <h3>
38 <f:translate key="{LLPrefix}addProperty"/>
39 </h3>
40 </div>
41 <div class="form-inline form-inline-spaced">
42 <div class="form-group">
43 <label class="sr-only">{typoScriptPath}.</label>
44 <div class="input-group">
45 <div class="input-group-addon">{typoScriptPath}.</div>
46 <f:form.textfield class="form-control" name="data[{typoScriptPath}][name]"/>
47 </div>
48 </div>
49 </div>
50 <div class="form-group">
51 <label>=</label>
52 <f:form.textfield class="form-control" name="data[{typoScriptPath}][propertyValue]"/>
53 </div>
54 <div class="form-group">
55 <f:form.submit class="btn btn-default" name="add_property"
56 value="{f:translate(key:'{LLPrefix}addButton')}"/>
57 </div>
58 </div>
59 <div style="padding-top: 20px;">
60 <div class="form-group">
61 <h3>
62 <f:translate key="{LLPrefix}clearObject"/>
63 </h3>
64 </div>
65 <div class="form-inline form-inline-spaced">
66 <div class="form-group">
67 <div class="checkbox">
68 <label>
69 {typoScriptPath}
70 <f:format.case mode="upper">
71 <f:translate key="{LLPrefix}clear"/>
72 </f:format.case>
73 <f:form.checkbox name="data[{typoScriptPath}][clearValue]" value="1"/>
74 </label>
75 </div>
76 </div>
77 <div class="form-group">
78 <f:form.submit class="btn btn-default" name="clear_object"
79 value="{f:translate(key:'{LLPrefix}clearButton')}"/>
80 </div>
81 </div>
82 </div>
83 <f:if condition="{isNotInTopLevelKeyList}">
84 <f:then>
85 <f:if condition="{hasProperties}">
86 <f:link.external uri="{moduleUrlObjectListAction}" defaultScheme="" class="btn btn-default">
87 <f:translate key="{LLPrefix}addKey" arguments="{0:'{typoScriptPath}'}"/>
88 </f:link.external>
89 </f:if>
90 </f:then>
91 <f:else>
92 <f:link.external uri="{moduleUrlObjectListAction}" defaultScheme="" class="btn btn-default">
93 <f:translate key="{LLPrefix}removeKey" arguments="{0:'{typoScriptPath}'}"/>
94 </f:link.external>
95 </f:else>
96 </f:if>
97 </f:then>
98 <f:else>
99 {typoScriptPath} = <strong>{theSetupValue}</strong>
100 </f:else>
101 </f:if>
102 <div>
103 <hr style="margin-top: 5px; margin-bottom: 5px;"/>
104 <f:link.external uri="{moduleUrl}" defaultScheme="" class="btn btn-default">
105 <strong><i class="fa fa-chevron-left"></i>&nbsp;
106 <f:translate key="{LLPrefix}back"/>
107 </strong>
108 </f:link.external>
109 </div>
110 </f:then>
111 <f:else>
112 <f:be.pageRenderer includeRequireJsModules="{0: 'TYPO3/CMS/Tstemplate/TypoScriptObjectBrowser'}"/>
113 <div class="tsob-menu">
114 <div class="form-inline">
115 <f:if condition="{hasTsBrowserTypes}">
116 <div class="form-group">
117 <label class="control-label">
118 <f:translate key="{LLPrefix}browse"/>
119 </label>
120 <f:format.raw>{browserTypeDropdownMenu}</f:format.raw>
121 </div>
122 </f:if>
123 <f:if condition="{hasTopLevelInObjectList}">
124 <div class="form-group">
125 <label class="control-label" for="ts_browser_toplevel_{tsBrowserType}">
126 <f:translate key="{LLPrefix}objectList"/>
127 </label>
128 <f:format.raw>{objectListDropdownMenu}</f:format.raw>
129 </div>
130 </f:if>
131 <div class="form-group">
132 <label class="control-label" for="search_field">
133 <f:translate key="{LLPrefix}search"/>
134 </label>
135 <div class="form-group"><input class="form-control" type="search" name="search_field" id="search_field"
136 value="{postSearchField}"/></div>
137 </div>
138 <input class="btn btn-default tsob-search-submit" type="submit" name="search"
139 value="{f:translate(key: 'LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:search')}"/>
140 </div>
141 <div class="checkbox">
142 <label for="checkTs_browser_regexsearch">
143 <f:format.raw>{regexSearchCheckbox}</f:format.raw>
144 <f:translate key="{LLPrefix}regExp"/>
145 </label>
146 </div>
147 </div>
148 <f:if condition="{hasParseErrors}">
149 <div style="padding-top: 10px;"></div>
150 <f:be.infobox title="{f:translate(key: '{LLPrefix}errorsWarnings')}" state="1">
151 <f:for each="{parseErrors}" as="parseError">
152 <f:translate key="{LLPrefix}severity.{parseError.1}"/>
153 : {parseError.0}
154 <f:link.external uri="{showErrorDetailsUri}{parseError.2}" defaultScheme="" class="text-warning">
155 <f:translate key="{LLPrefix}errorShowDetails"/>
156 </f:link.external>
157 <br/>
158 </f:for>
159 </f:be.infobox>
160 </f:if>
161 <div class="panel panel-space panel-default">
162 <div class="panel-heading">
163 <f:if condition="{hasKeySelected}">
164 <f:then>
165 <strong>{treeLabel}</strong>
166 </f:then>
167 <f:else>
168 <f:format.case mode="upper">
169 <f:translate key="{LLPrefix}{rootLLKey}" />
170 </f:format.case>
171 </f:else>
172 </f:if>
173 <strong>{selectedKey}</strong>
174 <f:if condition="{moduleUrlRemoveFromObjectList}">
175 <f:link.external uri="{moduleUrlRemoveFromObjectList}" defaultScheme="" class="btn btn-default">
176 <f:translate key="{LLPrefix}removeKey" />
177 </f:link.external>
178 </f:if>
179 </div>
180 <div class="panel-body"><f:format.raw>{tsTree}</f:format.raw></div>
181 </div>
182 <div>
183 <h2><f:translate key="{LLPrefix}displayOptions" /></h2>
184 <div class="typo3-listOptions">
185 <div class="checkbox">
186 <label for="checkTs_browser_showComments">
187 <f:format.raw>{checkBoxShowComments}</f:format.raw>
188 <f:translate key="{LLPrefix}displayComments" />
189 </label>
190 </div>
191 <div class="checkbox">
192 <label for="checkTs_browser_alphaSort">
193 <f:format.raw>{checkBoxAlphaSort}</f:format.raw>
194 <f:translate key="{LLPrefix}sortAlphabetically" />
195 </label>
196 </div>
197 <div class="checkbox">
198 <label for="checkTs_browser_fixedLgd">
199 <f:format.raw>{checkBoxCropLines}</f:format.raw>
200 <f:translate key="{LLPrefix}cropLines" />
201 </label>
202 </div>
203 </div>
204 <f:if condition="{isSetupAndCropLinesDisabled}">
205 <div class="form">
206 <label><f:translate key="{LLPrefix}displayConstants" /></label>
207 <f:format.raw>{dropdownDisplayConstants}</f:format.raw>
208 </div>
209 </f:if>
210 <f:if condition="{hasConditions}">
211 <h2><f:translate key="{LLPrefix}conditions" /></h2>
212 <div class="typo3-listOptions">
213 <f:for each="{tsConditions}" as="condition">
214 <div class="checkbox">
215 <label for="check{condition.key}">
216 <f:form.checkbox class="checkbox" name="conditions[{condition.key}]" id="check{condition.key}" value="{condition.value}" checked="{condition.isSet}" />
217 <f:format.raw>{condition.label}</f:format.raw>
218 </label>
219 </div>
220 </f:for>
221 </div>
222 <f:form.submit class="btn btn-default" value="{f:translate(key: '{LLPrefix}setConditions')}" name="Submit"/>
223 </f:if>
224 </div>
225 </f:else>
226 </f:if>