File tree Expand file tree Collapse file tree
java/dev/mhh/cloner/example/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public void exportElements(
5555 return ;
5656 }
5757
58- response .setContentType ("text/plain " );
58+ response .setContentType ("application/zip " );
5959 response .setHeader ("Content-Disposition" , "attachment; filename=entities.zip" );
6060
6161 final var cloneConfiguration = CloneConfiguration .builder ()
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ <h3>Elements</h3>
4242 < tbody >
4343 < tr th:each ="el, elStat : ${elements} ">
4444 < td >
45- < input type ="checkbox " name ="selectedIds " th:value ="${el.id} " th:if ="${elStat.index == 0} " required />
46- < input type ="checkbox " name ="selectedIds " th:value ="${el.id} " th:unless ="${elStat.index == 0} " />
45+ < input type ="checkbox " name ="selectedIds " th:value ="${el.id} " />
4746 </ td >
4847 < td th:text ="${el.name} "> </ td >
4948 < td >
@@ -69,16 +68,14 @@ <h3>Elements</h3>
6968 </ form >
7069
7170 < br />
72-
7371 < hr />
74-
7572 < br />
7673
7774 < form th:action ="@{/import} " method ="post " enctype ="multipart/form-data ">
7875 < label for ="file "> After exporting from a different environment, the entities can be imported here:</ label >
7976 < br />
8077 < br />
81- < input id ="file " type ="file " name ="file " required />
78+ < input id ="file " type ="file " name ="file " required accept =" application/zip " />
8279 < button type ="submit "> Import</ button >
8380 </ form >
8481</ main >
You can’t perform that action at this time.
0 commit comments