[TASK] Check number of file extensions
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Resources / Private / Templates / File / CreateFolder.html
1 <div>
2 <h1><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.pagetitle" /></h1>
3 <f:if condition="{moduleUrlTceFile}">
4 <h3><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.newfolders" /></h3>
5 <div>
6 <form role="form" action="{moduleUrlTceFile}" method="post" name="editform">
7 <div class="form-group">
8 <div class="form-section">
9 <div class="form-group">
10 <label for="number-of-new-folders"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.number_of_folders" /></label> {cshFileNewFolder -> f:format.raw()}
11 <div class="form-control-wrap">
12 <div class="input-group">
13 <select class="form-control form-control-adapt" name="number" id="number-of-new-folders" onchange="reload(this.options[this.selectedIndex].value);">';
14 <f:for each="{options}" as="option">
15 <option value="{option.value}"{option.selected}>{option.value}</option>
16 </f:for>
17 </select>
18 </div>
19 </div>
20 </div>
21 </div>
22 <f:for each="{folders}" as="folder">
23 <div class="form-section">
24 <div class="form-group">
25 <label for="folder_new_{folder.this}"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.label_newfolder" /> {folder.next}:</label>
26 <div class="form-control-wrap">
27 <input type="text" class="form-control" id="folder_new_{folder.this}" name="file[newfolder][{folder.this}][data]" onchange="changed=true;" />
28 <input type="hidden" name="file[newfolder][{folder.this}][target]" value="{target}" />
29 </div>
30 </div>
31 </div>
32 </f:for>
33 </div>
34 <div class="form-group">
35 <input class="btn btn-default" type="submit" value="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.submit')}" />
36 <input type="hidden" name="redirect" value="{returnUrl}" />
37 </div>
38 </form>
39 </div>
40 </f:if>
41 <f:if condition="{moduleUrlOnlineMedia}">
42 <f:if condition="{fileExtList -> f:count()} > 0">
43 <form action="{moduleUrlOnlineMedia}" method="post" name="editform2">
44 <h3><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:online_media.new_media" /></h3>
45 <div>
46 <div class="form-group">
47 <div class="form-section">
48 <div class="form-group">
49 <label for="newMedia"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:online_media.new_media.label" /></label> {cshFileNewMedia -> f:format.raw()}
50 <div class="form-control-wrap">
51 <input class="form-control" type="text" id="newMedia" name="file[newMedia][0][url]"
52 placeholder="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:online_media.new_media.placeholder')}" />
53 <input type="hidden" name="file[newMedia][0][target]" value="{target}" />
54 </div>
55 <div class="help-block">
56 <f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:online_media.new_media.allowedProviders" /><br>
57 <f:for each="{fileExtList}" as="fileExt">
58 <span class="label label-success">{fileExt}</span>
59 </f:for>
60 </div>
61 </div>
62 </div>
63 </div>
64 <div class="form-group">
65 <input class="btn btn-default" type="submit" value="{f:translate(key: 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:online_media.new_media.submit')}" />
66 <input type="hidden" name="redirect" value="{returnUrl}" />
67 </div>
68 </div>
69 </form>
70 <form action="{moduleUrlTceFile}" method="post" name="editform3">
71 <h3><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.newfile" /></h3>
72 <div>
73 <div class="form-group">
74 <div class="form-section">
75 <div class="form-group">
76 <label for="newfile"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.label_newfile" /></label> {cshFileNewFile -> f:format.raw()}
77 <div class="form-control-wrap">
78 <input class="form-control" type="text" id="newfile" name="file[newfile][0][data]" onchange="changed=true;" />
79 <input type="hidden" name="file[newfile][0][target]" value="{target}" />
80 </div>
81 <div class="help-block">
82 <f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:cm.allowedFileExtensions" /><br>
83 <f:for each="{txtFileExtList}" as="fileExt">
84 <span class="label label-success">{fileExt}</span>
85 </f:for>
86 </div>
87 </div>
88 </div>
89 </div>
90 <div class="form-group">
91 <button class="btn btn-default" name="edit" type="submit" value="1"><f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:file_newfolder.php.newfile_submit" /></button>
92 <input type="hidden" name="redirect" value="{returnUrl}" />
93 </div>
94 </div>
95 </form>
96 </f:if>
97 </f:if>
98 </div>