11{namespace ex=Fixpunkt\Backendtools\ViewHelpers}
22< html
3- xmlns:f =" http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers "
4- xmlns:core ="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers "
5- data-namespace-typo3-fluid =" true ">
3+ data-namespace-typo3-fluid =" true "
4+ xmlns:core ="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers "
5+ xmlns:f =" http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers ">
66< f:layout name ="Module "/>
77< f:section name ="Content ">
8- < f:asset .css identifier =" backendtools " href ="EXT:backendtools/Resources/Public/Css/Backend.css "/>
8+ < f:asset .css href ="EXT:backendtools/Resources/Public/Css/Backend.css " identifier =" backendtools "/>
99 < h1 > Find missing files/images and show where they are used</ h1 >
1010 < f:flashMessages />
1111 < f:form action ="missing " class ="form-inline ">
1212 < div class ="row ">
1313 < div class ="col-md-8 ">
1414 < div style ="margin: 10px 0; "> Show images used only in tt_content:
1515 < label class ="checkbox-inline ">
16- < f:form .radio name =" img_other " value =" 0 " checked =" { img_other} == 0 "/>
16+ < f:form .radio checked =" { img_other} == 0 " name =" img_other " value =" 0 "/>
1717 yes or
1818 </ label >
1919 < label class ="checkbox-inline ">
20- < f:form .radio name =" img_other " value =" 1 " checked =" { img_other} == 1 "/>
20+ < f:form .radio checked =" { img_other} == 1 " name =" img_other " value =" 1 "/>
2121 no.
2222 </ label >
2323 </ div >
2424 < div style ="margin: 10px 0; ">
2525 < f:translate
26- key ="LLL:EXT:backendtools/Resources/Private/Language/locallang.xlf:tx_backendtools_domain_model_session.pagestart "/>
26+ key ="LLL:EXT:backendtools/Resources/Private/Language/locallang.xlf:tx_backendtools_domain_model_session.pagestart "/>
2727 :
28- < f:form .textfield name ="my_recursive " value =" {my_recursive} " size =" 5 "/>
28+ < f:form .textfield name ="my_recursive " size =" 5 " value =" {my_recursive} "/>
2929 </ div >
3030 </ div >
3131 < div class ="col-md-4 ">
3232
3333 < div style ="margin: 10px 0; "> Elements per page:
34- < f:form .textfield name ="my_page " value =" {my_page} " size =" 5 "/>
34+ < f:form .textfield name ="my_page " size =" 5 " value =" {my_page} "/>
3535 </ div >
3636
3737 </ div >
3838 </ div >
39- < f:form .submit value =" search " name ="search " class =" btn btn-default "/>
39+ < f:form .submit class =" btn btn-default " name ="search " value =" search "/>
4040 < div > </ div >
41+ </ f:form >
42+ < f:if condition ="{images -> f:count()} > 0 ">
43+ < f:then >
44+ < f:if condition ="{settings.pagebrowser.insertAbove} && ({paginator.numberOfPages} > 1) ">
45+ < f:render arguments ="{_all} " partial ="Paginator "/>
46+ </ f:if >
4147
42- < f:if condition ="{images -> f:count()} > 0 ">
43- < f:then >
44- < f:if condition ="{settings.pagebrowser.insertAbove} && ({paginator.numberOfPages} > 1) ">
45- < f:render partial ="Paginator " arguments ="{_all} "/>
46- </ f:if >
48+ < f:form action ="missing " class ="form-inline ">
49+ < f:form .hidden name ="currentPage " value ="{page} " />
4750 < table class ="table ">
4851 < thead >
4952 < tr >
5053 < th colspan ="4 " style ="color:#000;text-align:center;background-color:#cfc; "> sys_file</ th >
51- < th colspan ="5 " style ="color:#000;text-align:center;background-color:#ccf; "> sys_file_metadata</ th >
52- < th colspan ="3 " style ="color:#000;text-align:center;background-color:#fcc; "> sys_file_reference</ th >
53- < th colspan ="4 " style ="color:#000;text-align:center;background-color:#fcf; "> tt_content or other</ th >
54+ < th colspan ="5 " style ="color:#000;text-align:center;background-color:#ccf; "> sys_file_metadata
55+ </ th >
56+ < th colspan ="3 " style ="color:#000;text-align:center;background-color:#fcc; "> sys_file_reference
57+ </ th >
58+ < th colspan ="4 " style ="color:#000;text-align:center;background-color:#fcf; "> tt_content or
59+ other
60+ </ th >
5461 </ tr >
5562 < tr >
5663 < th > -</ th >
@@ -72,32 +79,33 @@ <h1>Find missing files/images and show where they are used</h1>
7279 </ tr >
7380 </ thead >
7481 < tbody >
75- < f:for each ="{paginator.paginatedItems} " as =" image " iteration ="iterator ">
76- < tr {f:if(condition:iterator.isOdd, then: ' style=" background-color:#fff; "')} >
82+ < f:for as =" image " each ="{paginator.paginatedItems} " iteration ="iterator ">
83+ < tr >
7784 < td >
7885 < f:form .radio name ="delimg " value ="{image.file.uid} "/>
7986 </ td >
80- < f:render partial =" Image " arguments ="{image: image} "/>
87+ < f:render arguments ="{image: image} " partial =" Image "/>
8188 </ tr >
8289 </ f:for >
8390 </ tbody >
8491 </ table >
8592
86- < f:if condition ="{settings.pagebrowser.insertBelow} && ({paginator.numberOfPages} > 1) ">
87- < f:render partial ="Paginator " arguments ="{_all} "/>
88- < p > Element {pagination.startRecordNumber} - {pagination.endRecordNumber}.</ p >
89- </ f:if >
9093 < p > {images -> f:count()} image(s)/file(s) found, that are used.</ p >
9194
92- < f:form .submit value =" Delete selected entry in sys_file, sys_file_metadata and sys_file_reference "
93- name ="delthatimage1 " class =" btn btn-primary "/>
95+ < f:form .submit class =" btn btn-primary "
96+ name ="delthatimage1 " value =" Delete selected entry in sys_file, sys_file_metadata and sys_file_reference "/>
9497 < br > < br >
95- </ f:then >
96- < f:else >
97- < p > 0 images/files found, that are used.</ p >
98- </ f:else >
99- </ f:if >
100- </ f:form >
98+ </ f:form >
99+
100+ < f:if condition ="{settings.pagebrowser.insertBelow} && ({paginator.numberOfPages} > 1) ">
101+ < f:render arguments ="{_all} " partial ="Paginator "/>
102+ <!-- p>Element {pagination.startRecordNumber} - {pagination.endRecordNumber}.</p -->
103+ </ f:if >
104+ </ f:then >
105+ < f:else >
106+ < p > 0 images/files found, that are used.</ p >
107+ </ f:else >
108+ </ f:if >
101109
102110 < f:if condition ="{count} > 0 ">
103111 < f:form action ="missing " class ="form-inline ">
@@ -106,8 +114,8 @@ <h4>{count} missing file(s) is/are not used (in tt_content):</h4>
106114 < table class ="table ">
107115 < thead >
108116 < tr >
109- < th colspan ="4 " style ="text-align:center;background-color:#cfc; "> sys_file</ th >
110- < th colspan ="5 " style ="text-align:center;background-color:#ccf; "> sys_file_metadata</ th >
117+ < th colspan ="4 " style ="color:#000; text-align:center;background-color:#cfc; "> sys_file</ th >
118+ < th colspan ="5 " style ="color:#000; text-align:center;background-color:#ccf; "> sys_file_metadata</ th >
111119 </ tr >
112120 < tr >
113121 < th > -</ th >
@@ -122,8 +130,8 @@ <h4>{count} missing file(s) is/are not used (in tt_content):</h4>
122130 </ tr >
123131 </ thead >
124132 < tbody >
125- < f:for each =" {fileArray} " as =" image " iteration ="iterator ">
126- < tr {f:if(condition:iterator.isOdd, then: 'style=" background-color:#fff; "')} >
133+ < f:for as =" image " each =" {fileArray} " iteration ="iterator ">
134+ < tr >
127135 < td >
128136 < f:form .radio name ="delimg " value ="{image.uid} "/>
129137 </ td >
@@ -142,12 +150,12 @@ <h4>{count} missing file(s) is/are not used (in tt_content):</h4>
142150 </ tbody >
143151 </ table >
144152
145- < f:form .submit value =" Delete selected entry in sys_file, sys_file_metadata and sys_file_reference "
146- name ="delthatimage2 " class =" btn btn-primary "/>
153+ < f:form .submit class =" btn btn-primary "
154+ name ="delthatimage2 " value =" Delete selected entry in sys_file, sys_file_metadata and sys_file_reference "/>
147155 < f:form .submit
148- value =" Delete all not used (in tt_content) image-entries in sys_file, sys_file_metadata and sys_file_reference "
149- name ="delallimages " class =" btn btn-secondary "/>
156+ class =" btn btn-secondary "
157+ name ="delallimages " value =" Delete all not used (in tt_content) image-entries in sys_file, sys_file_metadata and sys_file_reference "/>
150158 </ f:form >
151159 </ f:if >
152160</ f:section >
153- </ html >
161+ </ html >
0 commit comments