XHTML templates for the authoring steps of the event content type.

pull/15/head
Jens Pelzetter 2022-02-03 20:18:48 +01:00
parent c18336bc5e
commit 88f7be3963
16 changed files with 730 additions and 4 deletions

View File

@ -48,7 +48,7 @@ import javax.ws.rs.PathParam;
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
@RequestScoped @RequestScoped
@Path(MvcAuthoringSteps.PATH_PREFIX + "event-info") @Path(MvcAuthoringSteps.PATH_PREFIX + "@event-info")
@Controller @Controller
@MvcAuthoringStepDef( @MvcAuthoringStepDef(
bundle = EventStepsConstants.BUNDLE, bundle = EventStepsConstants.BUNDLE,
@ -111,7 +111,7 @@ public class MvcEventInfoStep extends AbstractMvcAuthoringStep {
} }
if (itemPermissionChecker.canEditItem(getEvent())) { if (itemPermissionChecker.canEditItem(getEvent())) {
return "org/librecms/ui/contenttypes/event/event-info/overview.xhtml"; return "org/librecms/ui/contenttypes/event/event-info.xhtml";
} else { } else {
return documentUi.showAccessDenied( return documentUi.showAccessDenied(
getContentSection(), getContentSection(),

View File

@ -34,7 +34,7 @@ import javax.inject.Named;
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
@RequestScoped @RequestScoped
@Named("CmsEventInfoSstepEventType") @Named("CmsEventInfoStepEventType")
public class MvcEventInfoStepEventTypeModel { public class MvcEventInfoStepEventTypeModel {
private boolean canEdit; private boolean canEdit;

View File

@ -8,7 +8,7 @@
<ui:composition template="/WEB-INF/views/org/librecms/ui/contentsection/documents/authoringstep.xhtml"> <ui:composition template="/WEB-INF/views/org/librecms/ui/contentsection/documents/authoringstep.xhtml">
<ui:param name="authoringStep" <ui:param name="authoringStep"
value="/libreccm/@contentsections/info/documents/test-article/@article-text" /> value="/libreccm/@contentsections/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@article-text" />
<ui:define name="authoringStep"> <ui:define name="authoringStep">
<h2>#{CmsArticleMessageBundle['textstep.header']}</h2> <h2>#{CmsArticleMessageBundle['textstep.header']}</h2>

View File

@ -0,0 +1,82 @@
<!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/contentsection.xhtml">
<ui:define name="main">
<div class="container">
<h1>${CmsEventMessageBundle["createform.title"]}</h1>
<c:forEach items="#{CmsEventCreateStep.messages.entrySet()}"
var="message">
<div class="alert alert-#{message.key}"
role="alert">
#{message.value}
</div>
</c:forEach>
<form action="#{mvc.basePath}/#{CmsEventCreateStep.contentSectionLabel}/documents/#{CmsEventCreateStep.folderPath}@create/#{CmsEventCreateStep.documentType}"
method="post">
<bootstrap:formGroupText
help="#{CmsEventMessageBundle['createform.name.help']}"
inputId="name"
label="#{CmsEventMessageBundle['createform.name.label']}"
name="name"
pattern="^([a-zA-Z0-9_-]*)$"
required="true"
/>
<bootstrap:formGroupSelect
help="#{CmsEventMessageBundle['createform.initial_locale.help']}"
inputId="locale"
label="#{CmsEventMessageBundle['createform.initial_locale.label']}"
name="locale"
options="#{CmsEventCreateStep.availableLocales}"
required="true"
selectedOptions="#{[CmsEventCreateStep.initialLocale]}"
/>
<bootstrap:formGroupText
help="#{CmsEventMessageBundle['createform.title.help']}"
inputId="title"
label="#{CmsEventMessageBundle['createform.title.label']}"
name="title"
required="true"
/>
<bootstrap:formGroupTextarea
cols="80"
help="#{CmsEventMessageBundle['createform.summary.help']}"
inputId="summary"
label="#{CmsEventMessageBundle['createform.summary.label']}"
name="summary"
required="true"
rows="16"
/>
<bootstrap:formGroupSelect
help="#{CmsEventMessageBundle['createform.workflow.help']}"
inputId="workflow"
label="#{CmsEventMessageBundle['createform.workflow.label']}"
name="workflow"
options="#{CmsEventCreateStep.availableWorkflows}"
selectedOptions="#{[CmsEventCreateStep.selectedWorkflow]}"
/>
<a class="btn btn-warning"
href="#{mvc.basePath}/#{CmsEventCreateStep.contentSectionLabel}/documentsfolders/#{CmsEventCreateStep.folderPath}">
#{CmsEventMessageBundle['createform.cancel']}
</a>
<button class="btn btn-success"
type="submit">
#{CmsEventMessageBundle['createform.submit']}
</button>
</form>
</div>
</ui:define>
</ui:composition>
</html>

View File

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

View File

@ -0,0 +1,85 @@
<!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:librecms="http://xmlns.jcp.org/jsf/composite/components/librecms"
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="/libreccm/@contentsections/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info" />
<ui:define name="authoringStep">
<h2>#{CmsEventMessageBundle['eventinfo_step.header']}</h2>
<librecms:cmsEditorVariants
addButtonLabel="#{CmsEventMessageBundle['eventdate.editor.add_variant']}"
addDialogLocaleSelectHelp="#{CmsAdminMessages['text.editor.add.locale.help']}"
addMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventdate/add"
canEdit="#{CmsSelectedDocumentModel.canEdit}"
editorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventdate/edit"
hasUnusedLocales="#{!CmsEventInfoStepEventDate.unusedLocales.isEmpty()}"
headingLevel="3"
removeMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventdate/remove"
sourceEditorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/edit-source"
title="#{CmsEventMessageBundle['eventdate.editor.header']}"
unusedLocales="#{CmsEventInfoStepEventDate.unusedLocales}"
variants="#{CmsEventInfoStepEventDate.variants}"
viewPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/view"
/>
<librecms:cmsEditorVariants
addButtonLabel="#{CmsEventMessageBundle['location.editor.add_variant']}"
addDialogLocaleSelectHelp="#{CmsAdminMessages['text.editor.add.locale.help']}"
addMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/location/add"
canEdit="#{CmsSelectedDocumentModel.canEdit}"
editorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/location/edit"
hasUnusedLocales="#{!CmsEventInfoStepEventDate.unusedLocales.isEmpty()}"
removeMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/location/remove"
sourceEditorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/edit-source"
title="#{CmsEventMessageBundle['location.editor.header']}"
unusedLocales="#{CmsEventInfoStepEventDate.unusedLocales}"
variants="#{CmsEventInfoStepEventDate.variants}"
viewPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/view"
/>
<librecms:cmsEditorVariants
addButtonLabel="#{CmsEventMessageBundle['main_contributor.editor.add_variant']}"
addDialogLocaleSelectHelp="#{CmsAdminMessages['text.editor.add.locale.help']}"
addMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/main-contributor/add"
canEdit="#{CmsSelectedDocumentModel.canEdit}"
editorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/main-contributor/edit"
hasUnusedLocales="#{!CmsEventInfoStepEventDate.unusedLocales.isEmpty()}"
removeMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/main-contributor/remove"
sourceEditorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/edit-source"
title="#{CmsEventMessageBundle['main_contributor.editor.header']}"
unusedLocales="#{CmsEventInfoStepEventDate.unusedLocales}"
variants="#{CmsEventInfoStepEventDate.variants}"
viewPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/view"
/>
<librecms:cmsEditorVariants
addButtonLabel="#{CmsEventMessageBundle['eventtype.editor.add_variant']}"
addDialogLocaleSelectHelp="#{CmsAdminMessages['text.editor.add.locale.help']}"
addMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventtype/add"
canEdit="#{CmsSelectedDocumentModel.canEdit}"
editorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventtype/edit"
hasUnusedLocales="#{!CmsEventInfoStepEventDate.unusedLocales.isEmpty()}"
removeMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventtype/remove"
sourceEditorPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/edit-source"
title="#{CmsEventMessageBundle['eventtype.editor.header']}"
unusedLocales="#{CmsEventInfoStepEventDate.unusedLocales}"
variants="#{CmsEventInfoStepEventDate.variants}"
viewPageUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/view"
/>
</ui:define>
<ui:define name="scripts">
<script src="#{request.contextPath}/assets/@content-sections/cms-editor.js"></script>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,44 @@
<!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:librecms="http://xmlns.jcp.org/jsf/composite/components/librecms"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:composition template="/WEB-INF/views/org/librecms/ui/contentsection/documents/authoringstep.xhtml">
<ui:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.eventdate.header.edit',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepEventDate.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepEventDate.canEdit}">
<librecms:cmsEditor
backUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info"
baseUrl="#{mvc.basePath}"
canEdit="#{CmsEventInfoStepEventDate.canEdit}"
contentSection="#{ContentSectionModel.sectionName}"
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info/eventdate/edit"
editorId="cms-event-eventdate-editor"
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
selectedLocale="#{CmsEventInfoStepEventDate.selectedLocale}"
title="#{CmsEventMessageBundle['eventinfo_step.eventdate.editor.header']}"
variantUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info-resources/eventdate"
/>
</c:if>
<ui:define name="scripts">
<script src="#{request.contextPath}/assets/@content-sections/article-text-step.js"></script>
</ui:define>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,39 @@
<!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:h="http://xmlns.jcp.org/jsf/html"
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:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.eventdate.header.view',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepEventDate.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepEventDate.canEdit}">
<div class="text-right">
<a class="btn btn-secondary"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventdate/edit">
<bootstrap:svgIcon icon="pen" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.edit']}</span>
</a>
</div>
</c:if>
<div class="cms-text-preview article-text border p-2">
<h:outputText escape="false"
value="#{CmsEventInfoStepEventDate.eventDateValues.get(CmsEventInfoStepEventDate.selectedLocale)}" />
</div>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,45 @@
<!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:librecms="http://xmlns.jcp.org/jsf/composite/components/librecms"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:composition template="/WEB-INF/views/org/librecms/ui/contentsection/documents/authoringstep.xhtml">
<ui:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.eventtype.header.edit',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepEventType.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepEventType.canEdit}">
<librecms:cmsEditor
backUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info"
baseUrl="#{mvc.basePath}"
canEdit="#{CmsEventInfoStepEventType.canEdit}"
contentSection="#{ContentSectionModel.sectionName}"
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info/eventtype/edit"
editorId="cms-event-eventtype-editor"
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
selectedLocale="#{CmsEventInfoStepEventType.selectedLocale}"
title="#{CmsEventMessageBundle['eventinfo_step.eventtype.editor.header']}"
variantUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info-resources/eventtype"
/>
</c:if>
<ui:define name="scripts">
<script src="#{request.contextPath}/assets/@content-sections/article-text-step.js"></script>
</ui:define>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,40 @@
<!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:h="http://xmlns.jcp.org/jsf/html"
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:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.eventtype.header.view',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepEventType.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepEventType.canEdit}">
<div class="text-right">
<a class="btn btn-secondary"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/eventtype/edit">
<bootstrap:svgIcon icon="pen" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.edit']}</span>
</a>
</div>
</c:if>
<div class="cms-text-preview article-text border p-2">
<h:outputText escape="false"
value="#{CmsEventInfoStepEventType.eventTypeValues.get(CmsEventInfoStepEventType.selectedLocale)}" />
</div>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,45 @@
<!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:librecms="http://xmlns.jcp.org/jsf/composite/components/librecms"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:composition template="/WEB-INF/views/org/librecms/ui/contentsection/documents/authoringstep.xhtml">
<ui:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.location.header.edit',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepLocation.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepLocation.canEdit}">
<librecms:cmsEditor
backUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info"
baseUrl="#{mvc.basePath}"
canEdit="#{CmsEventInfoStepLocation.canEdit}"
contentSection="#{ContentSectionModel.sectionName}"
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info/location/edit"
editorId="cms-event-location-editor"
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
selectedLocale="#{CmsEventInfoStepLocation.selectedLocale}"
title="#{CmsEventMessageBundle['eventinfo_step.location.editor.header']}"
variantUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info-resources/location"
/>
</c:if>
<ui:define name="scripts">
<script src="#{request.contextPath}/assets/@content-sections/article-text-step.js"></script>
</ui:define>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,41 @@
<!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:h="http://xmlns.jcp.org/jsf/html"
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:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.location.header.view',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepLocation.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepLocation.canEdit}">
<div class="text-right">
<a class="btn btn-secondary"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/location/edit">
<bootstrap:svgIcon icon="pen" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.edit']}</span>
</a>
</div>
</c:if>
<div class="cms-text-preview article-text border p-2">
<h:outputText escape="false"
value="#{CmsEventInfoStepLocation.locationValues.get(CmsEventInfoStepLocation.selectedLocale)}" />
</div>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,45 @@
<!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:librecms="http://xmlns.jcp.org/jsf/composite/components/librecms"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<ui:composition template="/WEB-INF/views/org/librecms/ui/contentsection/documents/authoringstep.xhtml">
<ui:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.main_contributor.header.edit',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepMainContributor.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepMainContributor.canEdit}">
<librecms:cmsEditor
backUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info"
baseUrl="#{mvc.basePath}"
canEdit="#{CmsEventInfoStepMainContributor.canEdit}"
contentSection="#{ContentSectionModel.sectionName}"
editMethod="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info/main-contributor/edit"
editorId="cms-event-maincontributor-editor"
objectIdentifier="#{CmsSelectedDocumentModel.itemPath}"
selectedLocale="#{CmsEventInfoStepMainContributor.selectedLocale}"
title="#{CmsEventMessageBundle['eventinfo_step.main_contributor.editor.header']}"
variantUrl="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info-resources/main-contributor"
/>
</c:if>
<ui:define name="scripts">
<script src="#{request.contextPath}/assets/@content-sections/article-text-step.js"></script>
</ui:define>
</ui:define>
</ui:composition>
</html>

View File

@ -0,0 +1,42 @@
<!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:h="http://xmlns.jcp.org/jsf/html"
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:define name="authoringStep">
<div class="d-flex">
<a class="btn btn-secondary btn-sm align-self-center mr-2"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemTitle}/@event-info">
<bootstrap:svgIcon icon="caret-left-fill" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.back']}</span>
</a>
<h2>#{CmsEventMessageBundle.getMessage('eventinfo_step.main_contributor.header.view',[CmsSelectedDocumentModel.itemName, CmsEventInfoStepMainContributor.selectedLocale])}</h2>
</div>
<c:if test="#{CmsEventInfoStepMainContributor.canEdit}">
<div class="text-right">
<a class="btn btn-secondary"
href="#{mvc.basePath}/#{ContentSectionModel.sectionName}/documents/#{CmsSelectedDocumentModel.itemPath}/@event-info/main-contributor/edit">
<bootstrap:svgIcon icon="pen" />
<span class="sr-only">#{CmsEventMessageBundle['eventinfo_step.edit']}</span>
</a>
</div>
</c:if>
<div class="cms-text-preview article-text border p-2">
<h:outputText escape="false"
value="#{CmsEventInfoStepMainContributor.mainContributorValues.get(CmsEventInfoStepMainContributor.selectedLocale)}" />
</div>
</ui:define>
</ui:composition>
</html>

View File

@ -11,3 +11,36 @@ createstep.summary.error.missing=The summary of the event is missing.
createstep.initial_locale.error.missing=The initial locale of the event is missing. createstep.initial_locale.error.missing=The initial locale of the event is missing.
createstep.workflow.none_selected=No workflow was selected. createstep.workflow.none_selected=No workflow was selected.
createstep.workflow.error.not_available=The selected workflow is not available. createstep.workflow.error.not_available=The selected workflow is not available.
createform.title=Create a new event
createform.name.help=The name of the new event. Can only contain the letters a to z and A to Z, numbers, the underscore ("_") and the dash ("-").
createform.name.label=Name
createform.initial_locale.help=The initial locale of the new event. All localizable provided using this form is created for the selected language.
createform.title.help=The title of the new event.
createform.title.label=Title
createform.summary.help=A short summary of the new event.
createform.workflow.label=Summary
createform.cancel=Cancel
createform.submit=Create new event
eventinfo_step.header=Event Information
eventdate.editor.header=Additonal information about the date of the event
eventdate.editor.add_variant=Add language
location.editor.add_variant=Add language
location.editor.header=Information about the location of the event
main_contributor.editor.add_variant=Add language
main_contributor.editor.header=Information about the organizer of the event
eventtype.editor.add_variant=Add language
eventtype.editor.header=Information about the type of the event
eventinfo_step.back=Back
eventinfo_step.eventdate.header.view=Viewing information about event date of event {0} for language {1}
eventinfo_step.edit=Edit
eventinfo_step.eventtype.header.view=Showing information about event type of event {0} for language {1}
eventinfo_step.location.header.view=Showing information about location of event {0} for language {1}
eventinfo_step.main_contributor.header.view=Showing information about organizer of event {0} for language {1}
eventinfo_step.eventdate.header.edit=Edit information about event date of event {0} for language {1}
eventinfo_step.eventdate.editor.header=Information about the date of the event
eventinfo_step.eventtype.header.edit=Edit information about the type of event {0} for language {1}
eventinfo_step.eventtype.editor.header=Information about the type of event
eventinfo_step.main_contributor.header.edit=Edit information about the organizer of event {0} for language {1}
eventinfo_step.location.editor.header=Informatio about the location of the event
eventinfo_step.location.header.edit=Edit information about the location of event {0} for language {1}
eventinfo_step.main_contributor.editor.header=Information about the organizier of the event

View File

@ -11,3 +11,36 @@ createstep.summary.error.missing=Es wurde keine Zusammenfassung der Veranstaltun
createstep.initial_locale.error.missing=Die initale Sprache f\u00fcr die Veranstaltung wurde nicht angegeben. createstep.initial_locale.error.missing=Die initale Sprache f\u00fcr die Veranstaltung wurde nicht angegeben.
createstep.workflow.none_selected=Es wurde kein Arbeitsablauf ausgew\u00e4hlt. createstep.workflow.none_selected=Es wurde kein Arbeitsablauf ausgew\u00e4hlt.
createstep.workflow.error.not_available=Der ausgew\u00e4hlte Arbeitsablauf ist nicht verf\u00fcgbar. createstep.workflow.error.not_available=Der ausgew\u00e4hlte Arbeitsablauf ist nicht verf\u00fcgbar.
createform.title=Eine neue Veranstaltung anlegen
createform.name.help=Der Name der neuen Veranstaltung. Darf nur die Buchstaben a bis z, A bis Z, Ziffern, den Bindestrich ("-") und den Unterstrich ("_") enthalten.
createform.name.label=Name
createform.initial_locale.help=Die initiale Sprache der neuen Veranstaltung. Alle lokalisierbaren Angaben in diesem Formular werden f\u00fcr diese Sprache angelegt.
createform.title.help=Der Titel der neuen Veranstaltung.
createform.title.label=Titel
createform.summary.help=Eine kurze Zusammenfassung der neuen Veranstaltung.
createform.workflow.label=Zusammenfassung
createform.cancel=Abbrechen
createform.submit=Neue Veranstaltung anlegen
eventinfo_step.header=Informationen \u00fcber die Veranstaltung
eventdate.editor.header=Zus\u00e4tzliche Informationen \u00fcber den Zeitpunkt der Veranstaltung
eventdate.editor.add_variant=Sprache hinzuf\u00fcgen
location.editor.add_variant=Sprache hinzuf\u00fcgen
location.editor.header=Informationen \u00fcber den Veranstaltungsort
main_contributor.editor.add_variant=Sprache hinzuf\u00fcgen
main_contributor.editor.header=Informationen \u00fcber den Veranstalter
eventtype.editor.add_variant=Sprache hinzuf\u00fcgen
eventtype.editor.header=Informationen \u00fcber die Art der Veranstaltung
eventinfo_step.back=Zur\u00fcck
eventinfo_step.eventdate.header.view=Zeige Informationen \u00fcber Veranstaltungsdatum in Sprache {1} f\u00fcr Veranstaltung {0}
eventinfo_step.edit=Bearbeiten
eventinfo_step.eventtype.header.view=Zeige Informationen \u00fcber den Typ der Veranstaltung {0} in Sprache {1}
eventinfo_step.location.header.view=Zeige Informationen \u00fcber Veranstaltungsort f\u00fcr Veranstaltung {0} in Sprache {1}
eventinfo_step.main_contributor.header.view=Zeige Informationen \u00fcber Veranstalter der Veranstaltung {0} f\u00fcr Sprache {1}
eventinfo_step.eventdate.header.edit=Informationen \u00fcber den Zeitpunkt der Veranstaltung {0} f\u00fcr Sprache {1} bearbeiten
eventinfo_step.eventdate.editor.header=Informationen \u00fcber den Zeitpunkt der Veranstaltung
eventinfo_step.eventtype.header.edit=Informationen \u00fcber die Art der Veranstaltung {0} f\u00fcr Sprache {1} bearbeiten
eventinfo_step.eventtype.editor.header=Informationen \u00fcber die Art der Veranstaltung
eventinfo_step.main_contributor.header.edit=Informationen \u00fcber den Veranstalter der Veranstaltung {0} f\u00fcr Sprache {1} bearbeiten
eventinfo_step.location.editor.header=Informationen \u00fcber den Ort der Veranstaltung
eventinfo_step.location.header.edit=Informationen \u00fcber den Ort der Veranstaltung {0} f\u00fcr Sprache {1} bearbeiten
eventinfo_step.main_contributor.editor.header=Informationen \u00fcber den Veranstalter