-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.gsp
60 lines (60 loc) · 1.61 KB
/
index.gsp
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
<html>
<head>
<title>Grails File-Uploader Docs Demo</title>
<meta name="layout" content="main" />
</head>
<body>
<h1 style="margin-left:20px;">Grails File-Uploader Plugin Docs Demo</h1>
<p style="margin-left:20px;width:80%">
<fileuploader:form upload="docs"
successAction="index"
successController="docs"
errorAction="index"
errorController="docs"/>
</p>
<br /><br />
<h3 style="margin-left:20px;">Uploaded docs</h3>
<p style="margin-left:20px;width:80%">
<g:each var="f" in="${files}">
<table>
<tr>
<td><b>Name</b></td>
<td>${f.name}</td>
</tr>
<tr>
<td><b>Path</b></td>
<td>${f.path}</td>
</tr>
<tr>
<td><b>Size</b></td>
<td><fileuploader:prettysize size="${f.size}" /> (${f.size})</td>
</tr>
<tr>
<td><b>Extension</b></td>
<td>${f.extension}</td>
</tr>
<tr>
<td><b>Downloaded</b></td>
<td>${f.downloads}</td>
</tr>
<tr>
<td><b>Date uploaded</b></td>
<td><g:formatDate format="MM/dd/yyyy HH:mm" date="${f.dateUploaded}" /></td>
</tr>
<tr>
<td></td>
<td>
<fileuploader:download id="${f.id}"
errorAction="index"
errorController="docs">Click here to download</fileuploader:download></td>
</tr>
<tr>
<td></td>
<td>
<g:link controller="docs" action="delete" id="${f.id}">Click here to delete</g:link></td>
</tr>
</table>
</g:each>
</p>
</body>
</html>