Mapped category systems overview
Former-commit-id: 05725feb84de36f9124e0a36109bb70321edd655pull/10/head
parent
499eff6321
commit
d0341133b3
|
|
@ -57,6 +57,9 @@ public class CategoriesController {
|
||||||
@Inject
|
@Inject
|
||||||
private CategorySystemModel categorySystemModel;
|
private CategorySystemModel categorySystemModel;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private ContentSectionModel sectionModel;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private ContentSectionRepository sectionRepo;
|
private ContentSectionRepository sectionRepo;
|
||||||
|
|
||||||
|
|
@ -83,6 +86,7 @@ public class CategoriesController {
|
||||||
return "org/librecms/ui/contentsection/contentsection-not-found.xhtml";
|
return "org/librecms/ui/contentsection/contentsection-not-found.xhtml";
|
||||||
}
|
}
|
||||||
final ContentSection section = sectionResult.get();
|
final ContentSection section = sectionResult.get();
|
||||||
|
sectionModel.setSection(section);
|
||||||
|
|
||||||
final List<DomainListEntryModel> domains = section
|
final List<DomainListEntryModel> domains = section
|
||||||
.getDomains()
|
.getDomains()
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
||||||
|
<!DOCTYPE html [<!ENTITY times '×'>]>
|
||||||
|
<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>
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link #{activePage == 'categories' ? 'active' : ''}"
|
<a class="nav-link #{activePage == 'categorySystems' ? 'active' : ''}"
|
||||||
href='#{mvc.basePath}/#{ContentSectionModel.sectionName}/categorysystems'>
|
href='#{mvc.basePath}/#{ContentSectionModel.sectionName}/categorysystems'>
|
||||||
<bootstrap:svgIcon icon="diagram-3-fill" />
|
<bootstrap:svgIcon icon="diagram-3-fill" />
|
||||||
<span>#{CmsAdminMessages['contentsection.categories.title']}</span>
|
<span>#{CmsAdminMessages['contentsection.categories.title']}</span>
|
||||||
|
|
@ -64,7 +64,9 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="breadcrumb-item">
|
<li class="breadcrumb-item">
|
||||||
|
<a href="#{mvc.basePath}/#{ContentSectionModel.sectionName}">
|
||||||
#{ContentSectionModel.sectionName}
|
#{ContentSectionModel.sectionName}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<ui:insert name="breadcrumb"></ui:insert>
|
<ui:insert name="breadcrumb"></ui:insert>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
|
||||||
|
|
@ -141,3 +141,7 @@ asset_permissions.delete_assets=Delete
|
||||||
asset_permissions.use_asset=Use
|
asset_permissions.use_asset=Use
|
||||||
asset_permissions.edit_asset=Edit
|
asset_permissions.edit_asset=Edit
|
||||||
asset_permissions.view_asset=View
|
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}
|
||||||
|
|
|
||||||
|
|
@ -141,3 +141,7 @@ asset_permissions.delete_assets=L\u00f6schen
|
||||||
asset_permissions.use_asset=Asset
|
asset_permissions.use_asset=Asset
|
||||||
asset_permissions.edit_asset=Bearbeiten
|
asset_permissions.edit_asset=Bearbeiten
|
||||||
asset_permissions.view_asset=Betrachten
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue