some layout fixes

This commit is contained in:
Anton Romanov 2020-04-25 00:48:21 +04:00
parent 6adb3fec71
commit 751195bf96
2 changed files with 71 additions and 70 deletions

View File

@ -31,11 +31,7 @@
background: white !important; background: white !important;
} }
</style> </style>
<p:panel id="panel" header="Статья" style="margin-bottom:10px;"> <p:panel id="panel" header="Редактирование статьи: #{paperView.paper.title}" style="margin-bottom:10px;">
<p:panelGrid cellpadding="5" id="paperPanel">
</p:panelGrid>
<div class="ui-fluid"> <div class="ui-fluid">
<div class="ui-g"> <div class="ui-g">
<div class="ui-md-3 ui-g-12"> <div class="ui-md-3 ui-g-12">

View File

@ -10,6 +10,8 @@
text-align: right !important; text-align: right !important;
} }
</style> </style>
<p:panel id="panel" header="Все статьи" style="margin-bottom:10px;">
<div class="ui-fluid"> <div class="ui-fluid">
<div class="ui-g"> <div class="ui-g">
<div class="ui-md-5 ui-g-12"> <div class="ui-md-5 ui-g-12">
@ -51,7 +53,8 @@
</p:outputPanel> </p:outputPanel>
</f:facet> </f:facet>
<p:ajax event="rowSelect" update="mainForm:papersRemoveButton" process="mainForm:papersTable"/> <p:ajax event="rowSelect" update="mainForm:papersRemoveButton" process="mainForm:papersTable"/>
<p:ajax event="rowSelectCheckbox" update="mainForm:papersRemoveButton" process="mainForm:papersTable"/> <p:ajax event="rowSelectCheckbox" update="mainForm:papersRemoveButton"
process="mainForm:papersTable"/>
<p:ajax event="rowUnselectCheckbox" update="mainForm:papersRemoveButton" <p:ajax event="rowUnselectCheckbox" update="mainForm:papersRemoveButton"
process="mainForm:papersTable"/> process="mainForm:papersTable"/>
<p:ajax event="rowUnselect" update="mainForm:papersRemoveButton" process="mainForm:papersTable"/> <p:ajax event="rowUnselect" update="mainForm:papersRemoveButton" process="mainForm:papersTable"/>
@ -68,7 +71,8 @@
<p:selectOneMenu onchange="PF('papersTable').filter()" styleClass="custom-filter" <p:selectOneMenu onchange="PF('papersTable').filter()" styleClass="custom-filter"
converter="paperStatusConverter"> converter="paperStatusConverter">
<f:selectItem itemLabel="Статус" itemValue="#{null}" noSelectionOption="true"/> <f:selectItem itemLabel="Статус" itemValue="#{null}" noSelectionOption="true"/>
<f:selectItems value="#{papersView.paperStatuses}" var="status" itemLabel="#{status.statusName}" <f:selectItems value="#{papersView.paperStatuses}" var="status"
itemLabel="#{status.statusName}"
itemValue="#{status}"/> itemValue="#{status}"/>
</p:selectOneMenu> </p:selectOneMenu>
</f:facet> </f:facet>
@ -78,6 +82,7 @@
</p:column> </p:column>
</p:dataTable> </p:dataTable>
</div> </div>
</p:panel>
</ui:define> </ui:define>
</ui:composition> </ui:composition>
</html> </html>