Mapped category systems overview

Former-commit-id: 05725feb84de36f9124e0a36109bb70321edd655
pull/10/head
Jens Pelzetter 2021-02-12 19:33:56 +01:00
parent 499eff6321
commit d0341133b3
5 changed files with 67 additions and 2 deletions

View File

@ -57,6 +57,9 @@ public class CategoriesController {
@Inject
private CategorySystemModel categorySystemModel;
@Inject
private ContentSectionModel sectionModel;
@Inject
private ContentSectionRepository sectionRepo;
@ -83,6 +86,7 @@ public class CategoriesController {
return "org/librecms/ui/contentsection/contentsection-not-found.xhtml";
}
final ContentSection section = sectionResult.get();
sectionModel.setSection(section);
final List<DomainListEntryModel> domains = section
.getDomains()

View File

@ -0,0 +1,51 @@
<!DOCTYPE html [<!ENTITY times '&#215;'>]>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:bootstrap="http://xmlns.jcp.org/jsf/composite/components/bootstrap"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:cms="http://xmlns.jcp.org/jsf/composite/components/cms"
xmlns:libreccm="http://xmlns.jcp.org/jsf/composite/components/libreccm"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:composition template="/WEB-INF/views/org/librecms/ui/contentsection/contentsection.xhtml">
<ui:param name="activePage" value="categorySystems" />
<ui:param name="title" value="#{CmsAdminMessages['contentsection.documentfolders.title']}" />
<ui:define name="breadcrumb">
<li aria-current="page" class="breadcrumb-item">
#{CmsAdminMessages['contentsection.categories.title']}
</li>
</ui:define>
<ui:define name="main">
<div class="container">
<h1>#{CmsAdminMessages.getMessage("contentsection.categories.heading", [ContentSectionModel.sectionName])}</h1>
<table class="table table-hover">
<thead class="thead-light">
<tr>
<th>
#{CmsAdminMessages['contentsection.categories.categorysystems.list.heading.context']}
</th>
<th>
#{CmsAdminMessages['contentsection.categories.categorysystems.list.heading.domainKey']}
</th>
<th>
#{CmsAdminMessages['contentsection.categories.categorysystems.list.heading.title']}
</th>
</tr>
</thead>
<tbody>
<c:forEach items="#{categorySystems}"
var="categorySystem">
<tr>
<td>#{categorySystem.context}</td>
<td>#{categorySystem.domainKey}</td>
<td>#{categorySystem.title}</td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
</ui:define>
</ui:composition>
</html>

View File

@ -40,7 +40,7 @@
</a>
</li>
<li class="nav-item">
<a class="nav-link #{activePage == 'categories' ? 'active' : ''}"
<a class="nav-link #{activePage == 'categorySystems' ? 'active' : ''}"
href='#{mvc.basePath}/#{ContentSectionModel.sectionName}/categorysystems'>
<bootstrap:svgIcon icon="diagram-3-fill" />
<span>#{CmsAdminMessages['contentsection.categories.title']}</span>
@ -64,7 +64,9 @@
</a>
</li>
<li class="breadcrumb-item">
#{ContentSectionModel.sectionName}
<a href="#{mvc.basePath}/#{ContentSectionModel.sectionName}">
#{ContentSectionModel.sectionName}
</a>
</li>
<ui:insert name="breadcrumb"></ui:insert>
</ol>

View File

@ -141,3 +141,7 @@ asset_permissions.delete_assets=Delete
asset_permissions.use_asset=Use
asset_permissions.edit_asset=Edit
asset_permissions.view_asset=View
contentsection.categories.categorysystems.list.heading.context=Context
contentsection.categories.categorysystems.list.heading.domainKey=Domain Key
contentsection.categories.categorysystems.list.heading.title=Category System Title
contentsection.categories.heading=Category Systems mapped to Content Section {0}

View File

@ -141,3 +141,7 @@ asset_permissions.delete_assets=L\u00f6schen
asset_permissions.use_asset=Asset
asset_permissions.edit_asset=Bearbeiten
asset_permissions.view_asset=Betrachten
contentsection.categories.categorysystems.list.heading.context=Kontext
contentsection.categories.categorysystems.list.heading.domainKey=Domain Key
contentsection.categories.categorysystems.list.heading.title=Titel des Kategoriensystems
contentsection.categories.heading=Mit Content Section {0} verbundene Kategoriensysteme