fix template
This commit is contained in:
parent
6b90d7b0c0
commit
4c4c1b2015
@ -30,7 +30,7 @@ public class FacesUtil {
|
|||||||
FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary, detail);
|
FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, summary, detail);
|
||||||
FacesContext fc = FacesContext.getCurrentInstance();
|
FacesContext fc = FacesContext.getCurrentInstance();
|
||||||
fc.getExternalContext().getFlash().setKeepMessages(true);
|
fc.getExternalContext().getFlash().setKeepMessages(true);
|
||||||
fc.addMessage(null, message);
|
fc.addMessage("messages", message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void showDangerMessage(String summary, String detail) {
|
public static void showDangerMessage(String summary, String detail) {
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
</f:facet>
|
</f:facet>
|
||||||
</p:menubar>
|
</p:menubar>
|
||||||
<div class="ui-fluid">
|
<div class="ui-fluid">
|
||||||
<p:growl id="messages"/>
|
<p:growl id="messages" for="messages"/>
|
||||||
<ui:insert name="content">Content</ui:insert>
|
<ui:insert name="content">Content</ui:insert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,14 +17,34 @@
|
|||||||
border: none;
|
border: none;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#mainForm\:paperPanel > tbody > tr {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainForm\:paperPanel > tbody > tr > td {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<p:panel id="panel" header="Статья" style="margin-bottom:10px;">
|
<p:panel id="panel" header="Статья" style="margin-bottom:10px;">
|
||||||
<h:panelGrid columns="2" cellpadding="5">
|
<p:panelGrid cellpadding="5" id="paperPanel">
|
||||||
<h:panelGrid columns="2" cellpadding="5">
|
<p:row>
|
||||||
<h:outputLabel for="name" value="Название:"/>
|
<p:column>
|
||||||
|
<h:outputLabel value="Название:"/>
|
||||||
|
</p:column>
|
||||||
|
<p:column>
|
||||||
<p:inputText id="name" required="true" value="#{paperView.paper.title}"/>
|
<p:inputText id="name" required="true" value="#{paperView.paper.title}"/>
|
||||||
|
<p:message for="name"/>
|
||||||
<p:outputLabel for="@next" value="Статус:"/>
|
</p:column>
|
||||||
|
<p:column>
|
||||||
|
<p:link href="/conference/conferenceList.xhtml" value="Статья участвует в конференции"/>
|
||||||
|
</p:column>
|
||||||
|
</p:row>
|
||||||
|
<p:row>
|
||||||
|
<p:column>
|
||||||
|
<p:outputLabel for="paperStatus" value="Статус:"/>
|
||||||
|
</p:column>
|
||||||
|
<p:column>
|
||||||
<p:panelGrid columns="2" id="paperStatus">
|
<p:panelGrid columns="2" id="paperStatus">
|
||||||
<p:selectOneMenu id="status" required="true" value="#{paperView.paper.status}"
|
<p:selectOneMenu id="status" required="true" value="#{paperView.paper.status}"
|
||||||
converter="paperStatusConverter">
|
converter="paperStatusConverter">
|
||||||
@ -39,8 +59,13 @@
|
|||||||
<ui:param name="shortMode" value="true"/>
|
<ui:param name="shortMode" value="true"/>
|
||||||
</ui:include>
|
</ui:include>
|
||||||
</p:panelGrid>
|
</p:panelGrid>
|
||||||
|
</p:column>
|
||||||
<p:outputLabel for="@next" value="Тип:"/>
|
</p:row>
|
||||||
|
<p:row>
|
||||||
|
<p:column>
|
||||||
|
<p:outputLabel for="type" value="Тип:"/>
|
||||||
|
</p:column>
|
||||||
|
<p:column>
|
||||||
<p:selectOneMenu id="type" value="#{paperView.paper.type}"
|
<p:selectOneMenu id="type" value="#{paperView.paper.type}"
|
||||||
converter="paperTypeConverter">
|
converter="paperTypeConverter">
|
||||||
<f:selectItems value="#{paperView.paperTypes}"
|
<f:selectItems value="#{paperView.paperTypes}"
|
||||||
@ -48,11 +73,23 @@
|
|||||||
itemLabel="#{type.typeName}"
|
itemLabel="#{type.typeName}"
|
||||||
itemValue="#{type}"/>
|
itemValue="#{type}"/>
|
||||||
</p:selectOneMenu>
|
</p:selectOneMenu>
|
||||||
<p:outputLabel for="@next" value="Комментарий:"/>
|
</p:column>
|
||||||
<p:textEditor widgetVar="editor2" value="#{paperView.paper.comment}" height="300"
|
</p:row>
|
||||||
style="margin-bottom:10px" placeholder="Комментарий"/>
|
|
||||||
|
|
||||||
<p:outputLabel for="@next" value="Авторы:"/>
|
<p:row>
|
||||||
|
<p:column>
|
||||||
|
<p:outputLabel for="comment" value="Комментарий:"/>
|
||||||
|
</p:column>
|
||||||
|
<p:column>
|
||||||
|
<p:textEditor id="comment" widgetVar="editor2" value="#{paperView.paper.comment}" height="300"
|
||||||
|
style="margin-bottom:10px" placeholder="Комментарий"/>
|
||||||
|
</p:column>
|
||||||
|
</p:row>
|
||||||
|
<p:row>
|
||||||
|
<p:column>
|
||||||
|
<p:outputLabel for="authors" value="Авторы:"/>
|
||||||
|
</p:column>
|
||||||
|
<p:column>
|
||||||
<p:selectCheckboxMenu id="authors" value="#{paperView.paper.authors}" multiple="true"
|
<p:selectCheckboxMenu id="authors" value="#{paperView.paper.authors}" multiple="true"
|
||||||
converter="#{userConverter}">
|
converter="#{userConverter}">
|
||||||
<f:attribute name="collectionType" value="java.util.HashSet"/>
|
<f:attribute name="collectionType" value="java.util.HashSet"/>
|
||||||
@ -61,13 +98,16 @@
|
|||||||
itemLabel="#{author.userAbbreviate}"
|
itemLabel="#{author.userAbbreviate}"
|
||||||
itemValue="#{author}"/>
|
itemValue="#{author}"/>
|
||||||
</p:selectCheckboxMenu>
|
</p:selectCheckboxMenu>
|
||||||
|
</p:column>
|
||||||
|
</p:row>
|
||||||
|
|
||||||
|
<p:row>
|
||||||
|
<p:column>
|
||||||
<p:commandButton action="#{paperView.save}" value="Сохранить" ajax="true" process="@form"
|
<p:commandButton action="#{paperView.save}" value="Сохранить" ajax="true" process="@form"
|
||||||
update="messages"/>
|
update="messages @form"/>
|
||||||
</h:panelGrid>
|
</p:column>
|
||||||
<p:panelGrid columns="1">
|
</p:row>
|
||||||
<p:link href="/conference/conferenceList.xhtml" value="Статья участвует в конференции"/>
|
|
||||||
</p:panelGrid>
|
</p:panelGrid>
|
||||||
</h:panelGrid>
|
|
||||||
</p:panel>
|
</p:panel>
|
||||||
</ui:define>
|
</ui:define>
|
||||||
</ui:composition>
|
</ui:composition>
|
||||||
|
Loading…
Reference in New Issue
Block a user