From 9f21850767d9bc9d1bc7894df996ed2e6bac51a6 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Mon, 24 Feb 2020 13:53:33 +0400 Subject: [PATCH 1/4] move patronymic field --- .../META-INF/resources/admin/user.xhtml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/resources/META-INF/resources/admin/user.xhtml b/src/main/resources/META-INF/resources/admin/user.xhtml index 5addc0e..c648537 100644 --- a/src/main/resources/META-INF/resources/admin/user.xhtml +++ b/src/main/resources/META-INF/resources/admin/user.xhtml @@ -41,15 +41,6 @@ - - - - - - - - - @@ -59,6 +50,15 @@ + + + + + + + + + From 6b717f26d3a5e7968cb62ad5a943a5a0b2952c20 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Fri, 24 Apr 2020 13:06:06 +0400 Subject: [PATCH 2/4] fix selection --- .../META-INF/resources/paper/papers.xhtml | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/main/resources/META-INF/resources/paper/papers.xhtml b/src/main/resources/META-INF/resources/paper/papers.xhtml index cf3869c..a1d97ab 100644 --- a/src/main/resources/META-INF/resources/paper/papers.xhtml +++ b/src/main/resources/META-INF/resources/paper/papers.xhtml @@ -13,7 +13,10 @@
- + +
+ action="#{papersView.deleteSelected}" ajax="true" + process="mainForm:papersRemoveButton" + update="messages mainForm:papersTable"> @@ -32,7 +36,7 @@ - te +
- - - - + + + + From e167a68bc66b2f17c9943eb17d66e231166988c0 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Fri, 24 Apr 2020 13:48:28 +0400 Subject: [PATCH 3/4] add conference button --- src/main/resources/META-INF/resources/paper/paper.xhtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/resources/paper/paper.xhtml b/src/main/resources/META-INF/resources/paper/paper.xhtml index a1bde3d..51b12f2 100644 --- a/src/main/resources/META-INF/resources/paper/paper.xhtml +++ b/src/main/resources/META-INF/resources/paper/paper.xhtml @@ -41,7 +41,12 @@ - + + + From ae0a1f353279f7d7ba0ed5c418e3cd6c48fe32c6 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Fri, 24 Apr 2020 18:23:34 +0400 Subject: [PATCH 4/4] fix layout --- .../ru/ulstu/paper/controller/PaperView.java | 21 ++++ .../META-INF/resources/paper/paper.xhtml | 106 +++++++++++------- 2 files changed, 84 insertions(+), 43 deletions(-) diff --git a/src/main/java/ru/ulstu/paper/controller/PaperView.java b/src/main/java/ru/ulstu/paper/controller/PaperView.java index a6bc9eb..a6e627f 100644 --- a/src/main/java/ru/ulstu/paper/controller/PaperView.java +++ b/src/main/java/ru/ulstu/paper/controller/PaperView.java @@ -13,6 +13,7 @@ import javax.inject.Inject; import javax.inject.Named; import java.io.Serializable; import java.util.Arrays; +import java.util.Date; import java.util.List; @Named @@ -26,6 +27,10 @@ public class PaperView implements Serializable { private Paper paper; + private Date newDeadlineDate; + + private String newDeadlineDescription; + @PostConstruct public void init() { paper = paperService.findPaperById(Integer.valueOf(FacesUtil.getRequestParams().get("id"))); @@ -57,4 +62,20 @@ public class PaperView implements Serializable { FacesUtil.showInfoMessage("Статья сохранена", ""); return Page.PAPER_LIST + "?faces-redirect=true"; } + + public Date getNewDeadlineDate() { + return newDeadlineDate; + } + + public void setNewDeadlineDate(Date newDeadlineDate) { + this.newDeadlineDate = newDeadlineDate; + } + + public String getNewDeadlineDescription() { + return newDeadlineDescription; + } + + public void setNewDeadlineDescription(String newDeadlineDescription) { + this.newDeadlineDescription = newDeadlineDescription; + } } diff --git a/src/main/resources/META-INF/resources/paper/paper.xhtml b/src/main/resources/META-INF/resources/paper/paper.xhtml index 51b12f2..bb3668f 100644 --- a/src/main/resources/META-INF/resources/paper/paper.xhtml +++ b/src/main/resources/META-INF/resources/paper/paper.xhtml @@ -2,7 +2,8 @@ + xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://java.sun.com/jsf/core" +> Редактирование статьи @@ -32,28 +33,31 @@ - - + + + +
+
+
- - +
+
- - +
+
- - - - + rendered="#{empty paperView.paper.conferences}" + disabled="true"/> +
+
- - +
+
@@ -68,13 +72,11 @@ - - - - +
+
- - +
+
- - - - - - - - - - - - - +
+
- - +
+
@@ -107,16 +97,46 @@ itemLabel="#{author.userAbbreviate}" itemValue="#{author}"/> - - +
+
+ +
+
+
+
+ +
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+
- - +
+ +
+
+ +
+
- - - +
+
+