Commit b6aa3896 authored by Matija Obreza's avatar Matija Obreza
Browse files

Repository L10n and layout

parent 0bb6933b
......@@ -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
......@@ -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" />
......
......@@ -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">Subject</label>
<label for="subject"><spring:message code="repository.file.subject" /></label>
<input type="text" id="subject" name="subject" value="${file.subject}" class="form-control">
</div>
<div class="form-group">
<label for="description">Description</label>
<label for="description"><spring:message code="repository.file.description" /></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">Created</label>
<label for="created"><spring:message code="repository.file.created" /></label>
<input type="text" id="created" name="created" value="${file.created}" class="form-control">
</div>
<div class="form-group">
<label for="rightsHolder">Rights Holder</label>
<label for="rightsHolder"><spring:message code="repository.file.rightsHolder" /></label>
<input type="text" id="rightsHolder" name="rightsHolder" value="${file.rightsHolder}" class="form-control">
</div>
<div class="form-group">
<label for="accessRights">Access Rights</label>
<label for="accessRights"><spring:message code="repository.file.accessRights" /></label>
<input type="text" id="accessRights" name="accessRights" value="${file.accessRights}" class="form-control">
</div>
<div class="form-group">
<label for="license">License</label>
<label for="license"><spring:message code="repository.file.license" /></label>
<input type="text" id="license" name="license" value="${file.license}" class="form-control">
</div>
<div class="form-group">
<label for="format">Format</label>
<label for="format"><spring:message code="repository.file.format" /></label>
<input type="text" id="format" name="mimeType" value="${file.format}" class="form-control">
</div>
<div class="form-group">
<label for="extent">Extent</label>
<label for="extent"><spring:message code="repository.file.extent" /></label>
<input type="text" id="extent" name="extent" value="${file.extent}" class="form-control">
</div>
<div class="form-group">
<label for="bibliographicCitation">Bibliographic Citation</label>
<label for="bibliographicCitation"><spring:message code="repository.file.bibliographicCitation" /></label>
<input type="text" id="bibliographicCitation" name="bibliographicCitation"
value="${file.bibliographicCitation}" class="form-control">
</div>
<div class="form-group">
<label for="dateSubmitted">Date Submitted</label>
<label for="dateSubmitted"><spring:message code="repository.file.dateSubmitted" /></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>
......
......@@ -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>
</div>
<div class="col-md-2">
<form action="<c:out value="/admin/repository/delete?${_csrf.parameterName}=${_csrf.token}"/>" method="post">
</td>
<td 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>
</div>
</li>
</td>
</tr>
</c:forEach>
</ul>
</tbody>
</table>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment