Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
b6aa3896
Commit
b6aa3896
authored
Mar 16, 2016
by
Matija Obreza
Browse files
Repository L10n and layout
parent
0bb6933b
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/main/resources/content/language.properties
View file @
b6aa3896
...
...
@@ -682,6 +682,7 @@ menu.admin.loggers=Loggers
menu.admin.caches
=
Caches
menu.admin.ds2
=
DS2 Datasets
menu.admin.usermanagement
=
User management
menu.admin.repository
=
Repository
news.content.page.all.title
=
News list
news.archive.title
=
News Archive
...
...
@@ -776,3 +777,18 @@ region.countries-in-region=List of countries in {0}
region.regions-in-region
=
FAO Regions in {0}
region.show-all-regions
=
List all FAO regions
repository.file.path
=
Path
repository.file.originalFilename
=
Original filename
repository.file.title
=
Title
repository.file.subject
=
Subject
repository.file.description
=
Description
repository.file.creator
=
Creator
repository.file.created
=
Created date
repository.file.rightsHolder
=
Rights holder
repository.file.accessRights
=
Access rights
repository.file.license
=
License name or URL
repository.file.format
=
Format
repository.file.extent
=
Extent
repository.file.bibliographicCitation
=
Bibliographic citation
repository.file.dateSubmitted
=
Date of submission
repository.file.lastModifiedDate
=
Last modified date
src/main/webapp/WEB-INF/decorator/1/admin.jsp
View file @
b6aa3896
...
...
@@ -98,6 +98,11 @@
</li>
</ul>
</li>
<li>
<a
class=
""
href=
"
<c:url
value=
"/1/admin/repository/files"
/>
"
>
<spring:message
code=
"menu.admin.repository"
/>
</a>
</li>
<li>
<a
class=
""
href=
"
<c:url
value=
"/1/admin/logger/"
/>
"
>
<spring:message
code=
"menu.admin.loggers"
/>
...
...
src/main/webapp/WEB-INF/jsp/admin/filerepository/edit.jsp
View file @
b6aa3896
...
...
@@ -8,77 +8,78 @@
</head>
<body>
<div
class=
"row"
>
<div
class=
"col-md-
offset-1 col-md-4
"
>
<a
href=
"
<c:url
value=
"/admin/repository/files"
/>
?repositoryPath=${currentPath}"
class=
"btn btn-default"
>
Back
</a>
<div
class=
"col-md-
12
"
>
<a
href=
"
<c:url
value=
"/admin/repository/files"
/>
?repositoryPath=${currentPath}"
class=
"btn btn-default"
>
<spring:message
code=
"cancel"
/>
</a>
<h4>
Updating metadata for file '${file.originalFilename}'
</h4><br/>
<form
action=
"
<c:out
value=
"/admin/repository/update"
/>
?${_csrf.parameterName}=${_csrf.token}"
method=
"post"
>
<form
action=
"
<c:url
value=
"/admin/repository/update"
/>
?${_csrf.parameterName}=${_csrf.token}"
method=
"post"
>
<input
type=
"hidden"
name=
"uuid"
value=
"${file.uuid}"
>
<input
type=
"hidden"
name=
"repositoryPath"
value=
"${currentPath}"
>
<div
class=
"form-group"
>
<label
for=
"title"
>
Title
</label>
<label
for=
"title"
>
<spring:message
code=
"repository.file.title"
/>
</label>
<input
type=
"text"
id=
"title"
name=
"title"
value=
"${file.title}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"subject"
>
S
ubject
</label>
<label
for=
"subject"
>
<spring:message
code=
"repository.file.s
ubject
"
/>
</label>
<input
type=
"text"
id=
"subject"
name=
"subject"
value=
"${file.subject}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"description"
>
D
escription
</label>
<label
for=
"description"
>
<spring:message
code=
"repository.file.d
escription
"
/>
</label>
<input
type=
"text"
id=
"description"
name=
"description"
value=
"${file.description}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"creator"
>
Creator
</label>
<label
for=
"creator"
>
<spring:message
code=
"repository.file.creator"
/>
</label>
<input
type=
"text"
id=
"creator"
name=
"creator"
value=
"${file.creator}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"created"
>
C
reated
</label>
<label
for=
"created"
>
<spring:message
code=
"repository.file.c
reated
"
/>
</label>
<input
type=
"text"
id=
"created"
name=
"created"
value=
"${file.created}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"rightsHolder"
>
R
ights
Holder
</label>
<label
for=
"rightsHolder"
>
<spring:message
code=
"repository.file.r
ightsHolder
"
/>
</label>
<input
type=
"text"
id=
"rightsHolder"
name=
"rightsHolder"
value=
"${file.rightsHolder}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"accessRights"
>
A
ccess
Rights
</label>
<label
for=
"accessRights"
>
<spring:message
code=
"repository.file.a
ccessRights
"
/>
</label>
<input
type=
"text"
id=
"accessRights"
name=
"accessRights"
value=
"${file.accessRights}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"license"
>
L
icense
</label>
<label
for=
"license"
>
<spring:message
code=
"repository.file.l
icense
"
/>
</label>
<input
type=
"text"
id=
"license"
name=
"license"
value=
"${file.license}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"format"
>
F
ormat
</label>
<label
for=
"format"
>
<spring:message
code=
"repository.file.f
ormat
"
/>
</label>
<input
type=
"text"
id=
"format"
name=
"mimeType"
value=
"${file.format}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"extent"
>
E
xtent
</label>
<label
for=
"extent"
>
<spring:message
code=
"repository.file.e
xtent
"
/>
</label>
<input
type=
"text"
id=
"extent"
name=
"extent"
value=
"${file.extent}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"bibliographicCitation"
>
B
ibliographic
Citation
</label>
<label
for=
"bibliographicCitation"
>
<spring:message
code=
"repository.file.b
ibliographicCitation
"
/>
</label>
<input
type=
"text"
id=
"bibliographicCitation"
name=
"bibliographicCitation"
value=
"${file.bibliographicCitation}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"dateSubmitted"
>
D
ate
Submitted
</label>
<label
for=
"dateSubmitted"
>
<spring:message
code=
"repository.file.d
ateSubmitted
"
/>
</label>
<input
type=
"text"
id=
"dateSubmitted"
name=
"createdDate"
value=
"${file.dateSubmitted}"
class=
"form-control"
>
</div>
<div
class=
"form-group"
>
<label
for=
"modified"
>
Modified
</label>
<label
for=
"modified"
>
<spring:message
code=
"repository.file.lastModifiedDate"
/>
</label>
<input
type=
"text"
id=
"modified"
name=
"lastModifiedDate"
value=
"${file.modified}"
class=
"form-control"
>
</div>
...
...
src/main/webapp/WEB-INF/jsp/admin/filerepository/index.jsp
View file @
b6aa3896
...
...
@@ -11,12 +11,15 @@
<div
class=
"alert alert-warning"
>
${errorMessage}
</div>
</c:if>
<div
class=
"row"
>
<div
class=
"col-md-2"
>
<form
action=
"
<c:out
value=
"/admin/repository/upload?${_csrf.parameterName}=${_csrf.token}"
/>
"
method=
"post"
enctype=
"multipart/form-data"
>
<input
type=
"hidden"
name=
"repositoryPath"
value=
"${currentPath}"
>
<input
type=
"file"
name=
"file"
>
<button
type=
"submit"
class=
"btn btn-default"
>
Upload file or image
</button>
<div
class=
"col-md-12"
>
<form
action=
"
<c:url
value=
"/admin/repository/upload"
><c:param
name=
"
${
_csrf
.
parameterName
}
"
value=
"
${
_csrf
.
token
}
"
/></c:url>
"
method=
"post"
enctype=
"multipart/form-data"
class=
"form-inline"
>
<input
type=
"hidden"
name=
"repositoryPath"
value=
"${currentPath}"
/>
<div
class=
"form-group"
>
<label
for=
"file"
>
File to upload
</label>
<input
type=
"file"
name=
"file"
class=
"form-control"
/>
</div>
<button
type=
"submit"
class=
"btn btn-primary"
>
Upload
</button>
</form>
</div>
<%--<div class="col-md-1">--%>
...
...
@@ -27,25 +30,39 @@
<%--</div>--%>
</div>
<ul
class=
"funny-list"
>
<table
class=
"table table-striped"
>
<thead>
<tr>
<th
class=
"col-xs-4"
><spring:message
code=
"repository.file.title"
/>
<small><spring:message
code=
"repository.file.originalFilename"
/></small></th>
<th
class=
"col-xs-4"
><spring:message
code=
"repository.file.path"
/></th>
<th
class=
"col-xs-2"
></th>
<th
class=
"col-xs-5"
></th>
</tr>
</thead>
<tbody>
<c:forEach
var=
"file"
items=
"
${
fileList
}
"
varStatus=
"i"
>
<li
class=
"${status.count % 2 == 0 ? 'even' : 'odd'} row"
>
<div
class=
"col-md-4"
>
<a
href=
"
<c:url
value=
"/repository${currentPath}${file.uuid}${file.extension}"
/>
"
>
<c:out
value=
"
${
file
.
title
}
"
/>
<small>
${file.originalFilename}
</small></a>
</div>
<div
class=
"col-md-2"
>
<tr>
<td
class=
"col-md-4"
>
<a
href=
"
<c:url
value=
"/repository${currentPath}${file.uuid}${file.extension}"
/>
"
>
<c:out
value=
"
${
file
.
title
}
"
/>
<small>
${file.originalFilename}
</small></a>
</td>
<td
class=
"col-md-4"
>
<c:out
value=
"
${
file
.
path
}
"
/>
</td>
<td
class=
"col-md-2"
>
<a
href=
"
<c:url
value=
"/admin/repository/edit"
/>
?uuid=${file.uuid}&repositoryPath=${currentPath}"
class=
"btn btn-default"
>
Edit metadata
</a>
</d
iv
>
<d
iv
class=
"col-md-2"
>
<form
action=
"
<c:
out
value=
"/admin/repository/delete
?
${_csrf.parameterName}
=
${_csrf.token}"
/
>
"
method=
"post"
>
</
t
d>
<
t
d
class=
"col-md-2"
>
<form
action=
"
<c:
url
value=
"/admin/repository/delete
"
><c:param
name=
"
${
_csrf
.
parameterName
}
"
value=
"
${
_csrf
.
token
}
"
/></c:url
>
"
method=
"post"
>
<input
type=
"hidden"
name=
"uuid"
value=
"${file.uuid}"
>
<input
type=
"hidden"
name=
"repositoryPath"
value=
"${currentPath}"
>
<input
type=
"submit"
value=
"Delete file"
class=
"btn btn-default"
>
</form>
</d
iv
>
</
li
>
</
t
d>
</
tr
>
</c:forEach>
</ul>
</tbody>
</table>
</body>
</html>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment