Skip to content
Snippets Groups Projects
Commit 5bbad1a0 authored by Michael Simon's avatar Michael Simon
Browse files

ISSUE-191 add links for sub and parent projects

parent f4918ea7
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,14 @@
<p:panel>
<h:panelGrid id="baseData" columns="2" columnClasses="labelColumn, elementColumn">
<p:outputLabel value="#{messages['project.local_project.parent_vo']}:"/>
<h:panelGroup layout="block" styleClass="text">
<h:outputLink value="show-local-project.xhtml" >
<h:outputText value="#{userSubprojectCreateNewBean.parentProject.name}"/>
<f:param name="id" value="#{userSubprojectCreateNewBean.parentProject.id}"/>
</h:outputLink>
</h:panelGroup>
<bw:inputText id="nameField" label="#{messages.name}"
value="#{userSubprojectCreateNewBean.entity.name}" required="true"/>
......
......@@ -38,13 +38,23 @@
<h:outputText value="#{userShowLocalProjectBean.entity.groupName}"/>
<h:outputText value="#{messages['project.local_project.parent_vo']}:" rendered="#{userShowLocalProjectBean.entity.parentProject != null}"/>
<h:outputText value="#{userShowLocalProjectBean.entity.parentProject.name}" rendered="#{userShowLocalProjectBean.entity.parentProject != null}"/>
<h:panelGroup layout="block" styleClass="text" rendered="#{userShowLocalProjectBean.entity.parentProject != null}">
<h:outputLink value="show-local-project.xhtml" >
<h:outputText value="#{userShowLocalProjectBean.entity.parentProject.name}"/>
<f:param name="id" value="#{userShowLocalProjectBean.entity.parentProject.id}"/>
</h:outputLink>
</h:panelGroup>
<h:outputText value="#{messages['project.local_project.children']}:" rendered="#{userShowLocalProjectBean.entity.childProjects != null and userShowLocalProjectBean.entity.childProjects.size() > 0}"/>
<h:panelGroup layout="block" styleClass="text" rendered="#{userShowLocalProjectBean.entity.childProjects != null and userShowLocalProjectBean.entity.childProjects.size() > 0}">
<ul>
<ui:repeat value="#{userShowLocalProjectBean.entity.childProjects}" var="s">
<li><h:outputText value="#{s.name}"/></li>
<li>
<h:outputLink value="show-local-project.xhtml" >
<h:outputText value="#{s.name}"/>
<f:param name="id" value="#{s.id}"/>
</h:outputLink>
</li>
</ui:repeat>
</ul>
</h:panelGroup>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment