office-dynamixs-ai/dynamixs-ai-app/docker/deployments/dynamixs-ai.war/pages/admin/space.xhtml
2025-05-31 14:46:56 +02:00

179 lines
No EOL
5.6 KiB
HTML

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
xmlns:marty="http://xmlns.jcp.org/jsf/composite/marty" xmlns:i="http://xmlns.jcp.org/jsf/composite/imixs"
template="/layout/template.xhtml">
<!-- The view accepts the params 'id' and 'parent' -->
<f:metadata>
<f:viewAction action="#{workflowController.onLoad()}" if="#{not empty param.id}" />
<f:viewAction action="#{spaceController.create(param.parent)}" if="#{empty param.id}" />
</f:metadata>
<ui:define name="content">
<f:view>
<h:form id="space_form_id">
<marty:userSearch />
<div class="imixs-form">
<div class="imixs-header">
<h1>
<h:outputText value="#{message['space.title']}: " />
<h:outputText rendered="#{! empty workflowController.workitem.item['space.parent.name']}"
value="#{workflowController.workitem.item['space.parent.name']}" />
<h:outputText rendered="#{! empty workflowController.workitem.item['space.parent.name']}"
value="." />
<h:outputText value="#{workflowController.workitem.item['space.name']} " />
<h:outputText value=" - #{workflowController.workitem.item['$workflowstatus']}" />
</h1>
</div>
<div class="imixs-body">
<div class="imixs-tabs">
<ul>
<li><a href="#tab-1">#{message['space.sub_general']}</a></li>
<ui:fragment rendered="#{! empty resourceBundleHandler.get('space.sub_custom')}">
<li><a href="#tab-2">#{resourceBundleHandler.get('space.sub_custom')}</a></li>
</ui:fragment>
</ul>
<div id="tab-1">
<div class="ui-state-highlight ui-corner-all"
style="margin-bottom: 10px; padding: .5em;">
<p>#{message['space.help_general']}</p>
</div>
<div class="imixs-form-panel">
<dl class="columns-1">
<dt>
<h:outputLabel for="name_id" value="#{message.name}">
<h:message style="color: red" for="name_id" showSummary="true"
showDetail="false" />
</h:outputLabel>
</dt>
<dd>
<h:selectOneMenu style="width:20em;"
value="#{workflowController.workitem.item['$uniqueidref']}">
<f:selectItem itemLabel=" - " itemValue="[ROOT]"></f:selectItem>
<c:forEach items="#{teamController.spaces}" var="space">
<c:if
test="#{space.item['name'] ne workflowController.workitem.item['space.name']}">
<f:selectItem itemLabel="#{space.item['name']}"
itemValue="#{space.item['$UniqueID']}">
</f:selectItem>
</c:if>
</c:forEach>
</h:selectOneMenu>
<h:inputText style="width: 20em;" required="true"
value="#{workflowController.workitem.item['space.name']}" id="name_id">
</h:inputText>
</dd>
<dt>
<h:outputLabel for="description_id" value="#{message.description}">
<h:message style="color: red" for="description_id" showDetail="false"
showSummary="true" />
</h:outputLabel>
</dt>
<dd>
<h:inputTextarea required="false"
value="#{workflowController.workitem.item['txtdescription']}"
id="description_id" style="height: 5em; width: 95%">
</h:inputTextarea>
</dd>
</dl>
</div>
<div class="imixs-form-panel">
<h2>Team</h2>
<div class="imixs-form-section-3">
<!-- ******** space Manager ********* -->
<dl>
<dt>
<h:inputText
value="#{workflowController.workitem.item['space.manager.label']}" />
</dt>
<dd>
<marty:userListInput
value="#{workflowController.workitem.itemList['space.manager']}"
editmode="true" />
</dd>
</dl>
<!-- ******** space Team ********* -->
<dl>
<dt>
<h:inputText
value="#{workflowController.workitem.item['space.team.label']}" />
</dt>
<dd>
<marty:userListInput
value="#{workflowController.workitem.itemList['space.team']}"
editmode="true" />
</dd>
</dl>
<!-- ******** space Assitenz ********* -->
<dl>
<dt>
<h:inputText
value="#{workflowController.workitem.item['space.assist.label']}" />
</dt>
<dd>
<marty:userListInput
value="#{workflowController.workitem.itemList['space.assist']}"
editmode="true" />
</dd>
</dl>
</div>
</div>
</div>
<!-- ******** space custom ********* -->
<ui:fragment rendered="#{! empty resourceBundleHandler.get('space.sub_custom')}">
<div id="tab-2">
<div class="ui-state-highlight ui-corner-all"
style="margin-bottom: 10px; padding: .5em;">
<p>#{resourceBundleHandler.get('space.help_custom')}</p>
</div>
<ui:include src="/pages/admin/sub_space_custom.xhtml">
<ui:param name="workitem" value="#{workflowController.workitem}" />
</ui:include>
</div>
</ui:fragment>
</div>
</div>
<!-- form-body end -->
<ui:include src="/pages/admin/sub_footer.xhtml">
<ui:param name="action" value="/pages/admin/organisation" />
</ui:include>
</div>
</h:form>
</f:view>
</ui:define>
</ui:composition>