Details View for category systems

Former-commit-id: 5ce0349474
pull/7/head
Jens Pelzetter 2020-11-11 17:51:21 +01:00
parent d0c6b6a6bd
commit 3f85d5de94
4 changed files with 334 additions and 15 deletions

View File

@ -2,22 +2,277 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:xlink="http://www.w3.org/1999/xlink">
<ui:composition template="/WEB-INF/views/org/libreccm/ui/admin/ccm-admin.xhtml">
<ui:param name="activePage" value="categories" />
<ui:param name="title" value="#{AdminMessages['categories.label']}" />
<ui:define name="breadcrumb">
<li class="breadcrumb-item active">
<li class="breadcrumb-item">
<a href="#{mvc.uri('CategorySystemsController#getCategorySystems')}">
#{AdminMessages['categories.label']}
</a>
</li>
<li class="breadcrumb-item active">
#{CategorySystemDetailsModel.domainKey}
</li>
</ui:define>
<ui:define name="main">
<div class="container">
<h1>#{AdminMessages['categories.label']}</h1>
<p>ToDo</p>
<h1>#{AdminMessages.getMessage('categorysystems.details.title', [CategorySystemsDetailsModel.domainKey])}</h1>
<dl>
<div>
<dt>
#{AdminMessages['categorysystems.details.id']}
</dt>
<dd>
#{CategorySystemDetailsModel.categorySystemId}
</dd>
</div>
<div>
<dt>
#{AdminMessages['categorysystems.details.uuid']}
</dt>
<dd>
#{CategorySystemDetailsModel.uuid}
</dd>
</div>
<div>
<dt>
#{AdminMessages['categorysystems.details.domainKey']}
</dt>
<dd>
#{CategorySystemDetailsModel.domainKey}
</dd>
</div>
<div>
<dt>
#{AdminMessages['categorysystems.details.uri']}
</dt>
<dd>
#{CategorySystemDetailsModel.uri}
</dd>
</div>
</dl>
<h2>
#{AdminMessages['categorysystems.details.title.heading']}
</h2>
<div class="text-right mb-2">
<a class="btn btn-secondary"
href="#">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#circle-plus" />
</svg>
<span>#{AdminMessages['categorysystems.details.title.add']}</span>
</a>
</div>
<c:choose>
<c:when test="#{CategorySystemDetailsModel.getTitle().isEmpty()}">
<p>
#{AdminMessages['categorysystems.details.title.none']}
</p>
</c:when>
<c:otherwise>
<table class="table table-hover">
<thead class="thead-light">
<tr>
<th scope="col">#{AdminMessages['categorysystems.details.title.table.headings.locale']}</th>
<th scope="col">#{AdminMessages['categorysystems.details.title.table.headings.value']}</th>
<th class="text-center"
colspan="2"
scope="col">#{AdminMessages['categorysystems.details.title.table.headings.actions']}</th>
</tr>
</thead>
<tbody>
<c:forEach items="#{CategorySystemDetailsModel.title}"
var="entry">
<tr>
<td>
#{entry.key}
</td>
<td>
#{entry.value}
</td>
<td>
<button class="btn btn-primary"
type="button">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#pen" />
</svg>
<span>#{AdminMessages['categorysystems.details.title.table.actions.edit']}</span>
</button>
</td>
<td>
<button class="btn btn-danger"
type="button">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#x-circle" />
</svg>
<span>#{AdminMessages['categorysystems.details.title.table.actions.remove']}</span>
</button>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</c:otherwise>
</c:choose>
<h2>
#{AdminMessages['categorysystems.details.description.heading']}
</h2>
<div class="text-right mb-2">
<a class="btn btn-secondary"
href="
">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#circle-plus" />
</svg>
<span>#{AdminMessages['categorysystems.details.description.add']}</span>
</a>
</div>
<c:choose>
<c:when test="#{CategorySystemDetailsModel.getDescription().isEmpty()}">
<p>
#{AdminMessages['categorysystems.details.description.none']}
</p>
</c:when>
<c:otherwise>
<table class="table table-hover">
<thead class="thead-light">
<tr>
<th scope="col">#{AdminMessages['categorysystems.details.description.table.headings.locale']}</th>
<th scope="col">#{AdminMessages['categorysystems.details.description.table.headings.value']}</th>
<th class="text-center"
colspan="2"
scope="col">#{AdminMessages['categorysystems.details.description.table.headings.actions']}</th>
</tr>
</thead>
<tbody>
<c:forEach items="#{CategorySystemDetailsModel.title}"
var="entry">
<tr>
<td>
#{entry.key}
</td>
<td>
#{entry.value}
</td>
<td>
<button class="btn btn-primary"
type="button">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#pen" />
</svg>
<span>#{AdminMessages['categorysystems.details.description.table.actions.edit']}</span>
</button>
</td>
<td>
<button class="btn btn-danger"
type="button">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#x-circle" />
</svg>
<span>#{AdminMessages['categorysystems.details.description.table.actions.remove']}</span>
</button>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</c:otherwise>
</c:choose>
<h2>
#{AdminMessages['categorysystems.details.owners.heading']}
</h2>
<div class="text-right mb-2">
<a class="btn btn-secondary"
href="
">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#circle-plus" />
</svg>
<span>#{AdminMessages['categorysystems.details.owners.add']}</span>
</a>
</div>
<c:choose>
<c:when test="#{CategorySystemDetailsModel.getOwners().isEmpty()}">
<p>
#{AdminMessages['categorysystems.details.owners.none']}
</p>
</c:when>
<c:otherwise>
<table>
<thead>
<tr>
<th>
#{AdminMessages['categorysystems.details.owners.applicationname']}
</th>
<th>
#{AdminMessages['categorysystems.details.owners.context']}
</th>
<th>
#{AdminMessages['categorysystems.details.owners.actions']}
</th>
</tr>
</thead>
<tbody>
<c:forEach items="#{CategorySystemDetailsModel.owners}"
var="owner">
<tr>
<td>
#{owner.ownerAppName}
</td>
<td>
#{owner.context}
</td>
<td>
<button class="btn btn-danger"
type="button">
<svg class="bi"
width="1em"
height="1em"
fill="currentColor">
<use xlink:href="#{request.contextPath}/assets/bootstrap/bootstrap-icons.svg#x-circle" />
</svg>
<span>#{AdminMessages['categorysystems.details.owners.remove']}</span>
</button>
</td>
</tr>
</c:forEach>
</tbody>
</table>
</c:otherwise>
</c:choose>
</div>
</ui:define>

View File

@ -16,8 +16,14 @@
<ui:define name="main">
<div class="container">
<h1>#{AdminMessages['categories.label']}</h1>
<p>ToDo</p>
<h1>#{AdminMessages['categorysystems.not_found.title']}</h1>
<c:forEach items="#{CategorySystemDetailsModel.messages}" var="message">
<div class="alert alert-#{message.messageType}" role="alert">
#{message}
</div>
</c:forEach>
</div>
</ui:define>

View File

@ -257,3 +257,32 @@ categorysystems.form.uri.help=URI stub of the categorysystem
categorysystems.form.buttons.create=Create new categorysystem
categorysystems.form.buttons.save=Apply changes
categorysystems.form.buttons.cancel=Cancel
categorysystems.not_found.title=Categorysystem not found
categorysystems.details.title=Categorysystem {0} Details
categorysystems.details.id=ID
categorysystems.details.uuid=UUID
categorysystems.details.domainKey=Domain Key
categorysystems.details.uri=URI Stub
categorysystems.details.title.heading=Localized Title
categorysystems.details.title.table.headings.locale=Language
categorysystems.details.title.table.headings.value=Localized Title
categorysystems.details.title.table.headings.actions=Actions
categorysystems.details.title.table.actions.edit=Edit
categorysystems.details.title.table.actions.remove=Remove
categorysystems.details.title.add=Add title localization
categorysystems.details.title.none=No localized titles
categorysystems.details.description.heading=Localized Description
categorysystems.details.description.table.headings.locale=Language
categorysystems.details.description.table.headings.value=Localized Description
categorysystems.details.description.table.headings.actions=Actions
categorysystems.details.description.table.actions.edit=Edit
categorysystems.details.description.table.actions.remove=Remove
categorysystems.details.description.add=Add localized description
categorysystems.details.description.none=No localized descriptions
categorysystems.details.owners.add=Add application mapping
categorysystems.details.owners.applicationname=Application
categorysystems.details.owners.actions=Actions
categorysystems.details.owners.remove=Remove
categorysystems.details.owners.context=Context
categorysystems.details.owners.heading=Used by
categorysystems.details.owners.none=Not in use by any application

View File

@ -241,7 +241,7 @@ configuration.settings.setting.reset.close=Abbrechen
configuration.settings.setting.reset.confirm=Sind Sie sicher, dass die die Einstellung {1} in Konfiguration {0} auf ihren Standardwert {2} zur\u00fccksetzen wollen?
configuration.settings.setting.reset.submit=Auf Standardwert zur\u00fccksetzen
categories.not_found.message=Keine Kategorie f\u00fcr den Identifier {0} gefunden
categorysystems.not_found.message=Es wurde keine Kategorien f\u00fcr den Identifier {0} gefunden
categorysystems.not_found.message=Es wurde kein Kategoriensystem f\u00fcr den Identifier {0} gefunden
categorysystems.label=Kategoriensysteme
categorysystems.add=Neues Kategoriensystem erstellen
categorysystems.table.headers.domainKey=Domain Key
@ -257,3 +257,32 @@ categorysystems.form.uri.help=URI stub of the categorysystem
categorysystems.form.buttons.create=Neues Kategoriensystem anlegen
categorysystems.form.buttons.save=\u00c4nderungen anwenden
categorysystems.form.buttons.cancel=Abbrechen
categorysystems.not_found.title=Kategoriensystem nicht gefunden
categorysystems.details.title=Kategoriensystem {0} Details
categorysystems.details.id=ID
categorysystems.details.uuid=UUID
categorysystems.details.domainKey=Domain Key
categorysystems.details.uri=URI Stub
categorysystems.details.title.heading=Lokalisierter Titel
categorysystems.details.title.table.headings.locale=Sprache
categorysystems.details.title.table.headings.value=Lokalisierter Titel
categorysystems.details.title.table.headings.actions=Aktionen
categorysystems.details.title.table.actions.edit=Bearbeiten
categorysystems.details.title.table.actions.remove=Entfernen
categorysystems.details.title.add=\u00dcbersetzung hinzuf\u00fcgen
categorysystems.details.title.none=Keine lokalisierten Titel
categorysystems.details.description.heading=Lokalisierte Beschreibung
categorysystems.details.description.table.headings.locale=Sprache
categorysystems.details.description.table.headings.value=Lokalisierte Beschreibung
categorysystems.details.description.table.headings.actions=Aktionen
categorysystems.details.description.table.actions.edit=Bearbeiten
categorysystems.details.description.table.actions.remove=Entfernen
categorysystems.details.description.add=\u00dcbersetzung hinzuf\u00fcgen
categorysystems.details.description.none=Keine lokalisierten Beschreibungen
categorysystems.details.owners.add=Anwendung hinzuf\u00fcgen
categorysystems.details.owners.applicationname=Anwendung
categorysystems.details.owners.actions=Aktionen
categorysystems.details.owners.remove=Entfernen
categorysystems.details.owners.context=Context
categorysystems.details.owners.heading=Verwendet von
categorysystems.details.owners.none=Wird von keiner Anwendung verwendet