|
|
|
@ -12,13 +12,19 @@
|
|
|
|
|
</style>
|
|
|
|
|
<div class="ui-fluid">
|
|
|
|
|
<div class="ui-g">
|
|
|
|
|
<div class="ui-md-3 ui-g-12">
|
|
|
|
|
<div class="ui-md-5 ui-g-12">
|
|
|
|
|
<p:inputText placeholder="Создать новую статью" value="#{papersView.newPaperTitle}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ui-md-2 ui-g-12">
|
|
|
|
|
<p:commandButton action="#{papersView.create}" value="Создать" ajax="true" process="@form"
|
|
|
|
|
update="messages @form mainForm:papersTable" style="display: none"/>
|
|
|
|
|
update="messages @form mainForm:papersTable"/>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ui-md-3 ui-g-12">
|
|
|
|
|
<p:commandButton value="Удалить выделенные" id="papersRemoveButton"
|
|
|
|
|
disabled="#{papersView.selectedPapers.isEmpty()}"
|
|
|
|
|
action="#{papersView.deleteSelected}" ajax="true" process="@form"
|
|
|
|
|
update="messages @form" >
|
|
|
|
|
update="messages @form">
|
|
|
|
|
<p:confirm header="Подтверждение" message="Удалить выделенные статьи?"
|
|
|
|
|
icon="pi pi-exclamation-triangle"/>
|
|
|
|
|
</p:commandButton>
|
|
|
|
@ -27,12 +33,6 @@
|
|
|
|
|
<p:commandButton value="Да" type="button" styleClass="ui-confirmdialog-yes" icon="pi pi-check"/>
|
|
|
|
|
<p:commandButton value="Нет" type="button" styleClass="ui-confirmdialog-no" icon="pi pi-times"/>
|
|
|
|
|
</p:confirmDialog>
|
|
|
|
|
|
|
|
|
|
<div class="ui-md-5 ui-g-12">
|
|
|
|
|
<p:inputText placeholder="Создать новую статью" value="#{papersView.newPaperTitle}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ui-md-2 ui-g-12">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<p:dataTable value="#{papersView.papers}" var="paper" paginator="true" paginatorPosition="bottom"
|
|
|
|
|