View for editing the basic properties of a SciDepartment

pull/1/head
Jens Pelzetter 2022-10-03 09:25:13 +02:00
parent 78d6dbb85d
commit 6a795bb049
3 changed files with 242 additions and 0 deletions

View File

@ -0,0 +1,148 @@
<!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: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/documents/authoringstep.xhtml">
<ui:param name="authoringStep"
value="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties" />
<ui:define name="authoringStep">
<h2>#{SciDepartmentMessageBundle.getMessage('basicproperties.header', [SciDepartmentPropertiesStep.name])}</h2>
<h3>#{SciDepartmentMessageBundle['basicproperties.name.header']}</h3>
<div class="d-flex">
<pre class="mr-2">#{SciDepartmentPropertiesStep.name}</pre>
<c:if test="#{CmsSelectedDocumentModel.canEdit}">
<button class="btn btn-primary btn-sm"
data-toggle="modal"
data-target="#name-edit-dialog"
type="button">
<bootstrap:svgIcon icon="pen" />
<span class="sr-only">
#{SciDepartmentMessageBundle['basicproperties.name.edit']}
</span>
</button>
</c:if>
</div>
<c:if test="#{CmsSelectedDocumentModel.canEdit}">
<div aria-hidden="true"
aria-labelledby="name-edit-dialog-title"
class="modal fade"
id="name-edit-dialog"
tabindex="-1">
<div class="modal-dialog">
<form action="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties/name"
method="post">
<div class="modal-header">
<h4 class="modal-title"
id="name-edit-dialog-title">
#{SciDepartmentMessageBundle['basicproperties.name.edit.title']}
</h4>
<button aria-label="#{SciDepartmentMessageBundle['basicproperties.name.edit.close']}"
class="close"
data-dismiss="modal"
type="button">
<bootstrap:svgIcon icon="x" />
</button>
</div>
<div class="modal-body">
<bootstrap:formGroupText
help="#{SciDepartmentMessageBundle['basicproperties.name.help']}"
inputId="name"
label="#{SciDepartmentMessageBundle['basicproperties.name.label']}"
name="name"
pattern="^([a-zA-Z0-9_-]*)$"
required="true"
value="#{SciDepartmentPropertiesStep.name}"/>
</div>
<div class="modal-footer">
<button class="btn btn-warning"
data-dismiss="modal"
type="button">
#{SciDepartmentMessageBundle['basicproperties.name.edit.close']}
</button>
<button class="btn btn-success"
type="submit">
#{SciDepartmentMessageBundle['basicproperties.name.edit.submit']}
</button>
</div>
</form>
</div>
</div>
</c:if>
<libreccm:localizedStringEditor
addButtonLabel="#{SciDepartmentMessageBundle['basicproperties.title.add']}"
addDialogCancelLabel="#{SciDepartmentMessageBundle['basicproperties.title.add.cancel']}"
addDialogLocaleSelectHelp="#{SciDepartmentMessageBundle['basicproperties.title.add.locale.help']}"
addDialogLocaleSelectLabel="#{SciDepartmentMessageBundle['basicproperties.title.add.locale.label']}"
addDialogSubmitLabel="#{SciDepartmentMessageBundle['basicproperties.title.add.submit']}"
addDialogTitle="#{SciDepartmentMessageBundle['basicproperties.title.add.header']}"
addDialogValueHelp="#{SciDepartmentMessageBundle['basicproperties.title.add.value.help']}"
addDialogValueLabel="#{SciDepartmentMessageBundle['basicproperties.title.add.value.label']}"
addMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties/title/@add"
editButtonLabel="#{SciDepartmentMessageBundle['basicproperties.title.edit']}"
editDialogCancelLabel="#{SciDepartmentMessageBundle['basicproperties.title.edit.cancel']}"
editDialogSubmitLabel="#{SciDepartmentMessageBundle['basicproperties.title.edit.submit']}"
editDialogTitle="#{SciDepartmentMessageBundle['basicproperties.title.edit.header']}"
editDialogValueHelp="#{SciDepartmentMessageBundle['basicproperties.title.edit.value.help']}"
editDialogValueLabel="#{SciDepartmentMessageBundle['basicproperties.title.edit.value.label']}"
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties/title/@edit"
editorId="title-editor"
hasUnusedLocales="#{!SciDepartmentPropertiesStep.unusedTitleLocales.isEmpty()}"
headingLevel="3"
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
readOnly="#{!CmsSelectedDocumentModel.canEdit}"
removeButtonLabel="#{SciDepartmentMessageBundle['basicproperties.title.remove']}"
removeDialogCancelLabel="#{SciDepartmentMessageBundle['basicproperties.title.remove.cancel']}"
removeDialogSubmitLabel="#{SciDepartmentMessageBundle['basicproperties.title.remove.submit']}"
removeDialogText="#{SciDepartmentMessageBundle['basicproperties.title.remove.text']}"
removeDialogTitle="#{SciDepartmentMessageBundle['basicproperties.title.remove.header']}"
removeMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties/title/@remove"
title="#{SciDepartmentMessageBundle['basicproperties.title.header']}"
unusedLocales="#{SciDepartmentPropertiesStep.unusedTitleLocales}"
values="#{SciDepartmentPropertiesStep.titleValues}"
/>
<libreccm:localizedStringEditor
addButtonLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add']}"
addDialogCancelLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add.cancel']}"
addDialogLocaleSelectHelp="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add.locale.help']}"
addDialogLocaleSelectLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add.locale.label']}"
addDialogSubmitLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add.submit']}"
addDialogTitle="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add.header']}"
addDialogValueHelp="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add.value.help']}"
addDialogValueLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.add.value.label']}"
addMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties/short-description/@add"
editButtonLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.edit']}"
editDialogCancelLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.edit.cancel']}"
editDialogSubmitLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.edit.submit']}"
editDialogTitle="#{SciDepartmentMessageBundle['basicproperties.shortdescription.edit.header']}"
editDialogValueHelp="#{SciDepartmentMessageBundle['basicproperties.shortdescription.edit.value.help']}"
editDialogValueLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.edit.value.label']}"
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties/short-description/@edit"
editorId="summary-editor"
hasUnusedLocales="#{!SciDepartmentPropertiesStep.unusedShortDescriptionLocales.isEmpty()}"
headingLevel="3"
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
readOnly="#{!CmsSelectedDocumentModel.canEdit}"
removeButtonLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.remove']}"
removeDialogCancelLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.remove.cancel']}"
removeDialogSubmitLabel="#{SciDepartmentMessageBundle['basicproperties.shortdescription.remove.submit']}"
removeDialogText="#{SciDepartmentMessageBundle['basicproperties.shortdescription.remove.text']}"
removeDialogTitle="#{SciDepartmentMessageBundle['basicproperties.shortdescription.remove.header']}"
removeMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@scidepartment-basicproperties/short-description/@remove"
title="#{SciDepartmentMessageBundle['basicproperties.shortdescription.header']}"
unusedLocales="#{SciDepartmentPropertiesStep.unusedShortDescriptionLocales}"
useTextarea="true"
values="#{SciDepartmentPropertiesStep.shortDescriptionValues}"
/>
</ui:define>
</ui:composition>
</html>

View File

@ -18,3 +18,50 @@ createform.workflow.help=The workflow to use for the department description.
createform.workflow.label=Workflow createform.workflow.label=Workflow
createform.cancel=Cancel createform.cancel=Cancel
createform.submit=Create department createform.submit=Create department
basicproperties.header=Edit basic properties of department {0}
basicproperties.name.header=Name
basicproperties.name.edit=Edit name
basicproperties.name.edit.title=Edit name
basicproperties.name.edit.close=Cancel
basicproperties.name.help=The name of the department. Also used as URL fragment.
basicproperties.name.label=Name
basicproperties.title.add=Add a localized title
basicproperties.title.add.cancel=Cancel
basicproperties.title.add.locale.help=The locale of the localized title.
basicproperties.title.add.locale.label=Locale
basicproperties.title.add.submit=Add
basicproperties.title.add.header=Add localized title
basicproperties.title.add.value.help=The localized title.
basicproperties.title.add.value.label=Title
basicproperties.title.edit=Edit
basicproperties.title.edit.cancel=Cancel
basicproperties.title.edit.submit=Save
basicproperties.title.edit.header=Edit localized title
basicproperties.title.edit.value.help=The localized title.
basicproperties.title.edit.value.label=Title
basicproperties.title.remove=Remove
basicproperties.title.remove.cancel=Cancel
basicproperties.title.remove.submit=Remove
basicproperties.title.remove.text=Are you sure to remove this localized title?
basicproperties.title.remove.header=Confirm removal of localized title
basicproperties.title.header=Title
basicproperties.shortdescription.add=Add
basicproperties.shortdescription.add.cancel=Cancel
basicproperties.shortdescription.add.locale.help=The locale of the localized short description.
basicproperties.shortdescription.add.locale.label=Locale
basicproperties.shortdescription.add.submit=Add
basicproperties.shortdescription.add.header=Add a localized short description
basicproperties.shortdescription.add.value.help=The localized short description.
basicproperties.shortdescription.add.value.label=Short description
basicproperties.shortdescription.edit=Edit
basicproperties.shortdescription.edit.cancel=Cancel
basicproperties.shortdescription.edit.submit=Save
basicproperties.shortdescription.edit.header=Edit localized short description
basicproperties.shortdescription.edit.value.help=The localized short description.
basicproperties.shortdescription.edit.value.label=Short description
basicproperties.shortdescription.remove=Remove
basicproperties.shortdescription.remove.cancel=Cancel
basicproperties.shortdescription.remove.submit=Remove
basicproperties.shortdescription.remove.text=Are you sure to remove this localized short description?
basicproperties.shortdescription.remove.header=Confirm removal of localized short description
basicproperties.shortdescription.header=Short description

View File

@ -18,3 +18,50 @@ createform.workflow.help=Der Arbeitsablauf, der f\u00fcr die Abteilungsbeschreib
createform.workflow.label=Arbeitsablauf createform.workflow.label=Arbeitsablauf
createform.cancel=Abbrechen createform.cancel=Abbrechen
createform.submit=Abteilung anlegen createform.submit=Abteilung anlegen
basicproperties.header=Basiseigenschaften der Abteilung {0} bearbeiten
basicproperties.name.header=Name
basicproperties.name.edit=Name bearbeiten
basicproperties.name.edit.title=Name bearbeiten
basicproperties.name.edit.close=Abbrechen
basicproperties.name.help=Der Name der Abteilung. Wird auch als URL Fragment verwendet.
basicproperties.name.label=Name
basicproperties.title.add=Lokalisierten Titel hinzuf\u00fcgen
basicproperties.title.add.cancel=Abbrechen
basicproperties.title.add.locale.help=Die Sprache des lokalisierten Titels.
basicproperties.title.add.locale.label=Sprache
basicproperties.title.add.submit=Hinzuf\u00fcgen
basicproperties.title.add.header=Lokalisierten Titel hinzuf\u00fcgen
basicproperties.title.add.value.help=Der lokalisierte Titel.
basicproperties.title.add.value.label=Titel
basicproperties.title.edit=Bearbeiten
basicproperties.title.edit.cancel=Abbrechen
basicproperties.title.edit.submit=Speichern
basicproperties.title.edit.header=Lokalisierten Titel bearbeiten
basicproperties.title.edit.value.help=Der lokalisierte Titel
basicproperties.title.edit.value.label=Titel
basicproperties.title.remove=Entfernen
basicproperties.title.remove.cancel=Abbrechen
basicproperties.title.remove.submit=Entfernen
basicproperties.title.remove.text=Sind Sie sicher dass Sie diesen lokalisierten Titel entfernen wollen?
basicproperties.title.remove.header=Entfernen eines lokalisierten Titels best\u00e4tigen
basicproperties.title.header=Titel
basicproperties.shortdescription.add=Hinzuf\u00fcgen
basicproperties.shortdescription.add.cancel=Abbrechen
basicproperties.shortdescription.add.locale.help=Die Sprache der lokaliserten Kurzbeschreibung.
basicproperties.shortdescription.add.locale.label=Sprache
basicproperties.shortdescription.add.submit=Hinzuf\u00fcgen
basicproperties.shortdescription.add.header=Eine lokaliserte Kurzbeschreibung hinzuf\u00fcgen
basicproperties.shortdescription.add.value.help=Die lokalisierte Kurzbeschreibung.
basicproperties.shortdescription.add.value.label=Kurzbeschreibung
basicproperties.shortdescription.edit=Bearbeiten
basicproperties.shortdescription.edit.cancel=Abbrechen
basicproperties.shortdescription.edit.submit=Speichern
basicproperties.shortdescription.edit.header=Lokalisierte Kurzbeschreibung bearbeiten
basicproperties.shortdescription.edit.value.help=Die lokalisierte Kurzbeschreibung.
basicproperties.shortdescription.edit.value.label=Kurzbeschreibung
basicproperties.shortdescription.remove=Entfernen
basicproperties.shortdescription.remove.cancel=Abbrechen
basicproperties.shortdescription.remove.submit=Entfernen
basicproperties.shortdescription.remove.text=Sind Sie sicher, dass Sie diese lokaliserte Kurzbeschreibung entfernen wollen?
basicproperties.shortdescription.remove.header=Entfernen einer lokalisierten Kurzbeschreibung best\u00e4tigen
basicproperties.shortdescription.header=Kurzbeschreibung