add new save button to issue editor - fixes #398

Sun, 28 Jul 2024 13:09:32 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 28 Jul 2024 13:09:32 +0200
changeset 305
26e7f895f0f8
parent 304
12f696cc7905
child 306
1ab9f65e683e

add new save button to issue editor - fixes #398

src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt file | annotate | diff | comparison | revisions
src/main/resources/localization/strings.properties file | annotate | diff | comparison | revisions
src/main/resources/localization/strings_de.properties file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog-de.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/changelogs/changelog.jspf file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/issue-form.jsp file | annotate | diff | comparison | revisions
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sun Jul 28 12:36:42 2024 +0200
+++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sun Jul 28 13:09:32 2024 +0200
@@ -507,8 +507,10 @@
 
             if (http.param("more") != null) {
                 http.renderCommit("${issuesHref}-/create")
+            } else if (http.param("save") != null) {
+                http.renderCommit("${issuesHref}${openId}")
             } else {
-                http.renderCommit("${issuesHref}${openId}")
+                http.renderCommit(issuesHref)
             }
         }
     }
--- a/src/main/resources/localization/strings.properties	Sun Jul 28 12:36:42 2024 +0200
+++ b/src/main/resources/localization/strings.properties	Sun Jul 28 13:09:32 2024 +0200
@@ -42,6 +42,7 @@
 button.project.details=Project Details
 button.project.edit=Edit Project
 button.remove=Remove
+button.save=Save
 button.user.create=Add Developer
 button.version.create=New Version
 button.version.edit=Edit Version
--- a/src/main/resources/localization/strings_de.properties	Sun Jul 28 12:36:42 2024 +0200
+++ b/src/main/resources/localization/strings_de.properties	Sun Jul 28 13:09:32 2024 +0200
@@ -42,6 +42,7 @@
 button.project.details=Projektdetails
 button.project.edit=Projekt Bearbeiten
 button.remove=Entfernen
+button.save=Speichern
 button.user.create=Neuer Entwickler
 button.version.create=Neue Version
 button.version.edit=Version Bearbeiten
--- a/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Sun Jul 28 12:36:42 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf	Sun Jul 28 13:09:32 2024 +0200
@@ -27,6 +27,8 @@
 <h3>Version 1.3.0 - Vorschau</h3>
 
 <ul>
+    <li>Der "OK" Button im Vorgangseditor führt nun zurück zur Vorgangsübersicht.</li>
+    <li>Ein neuer "Speichern" Button im Vorgangseditor führt, wie zuvor, zurück zur Vorgangsansicht.</li>
     <li>Der Seitentitel, wenn ein Vorgang betrachtet wird, beginnt nun mit der Vorgangs-ID.</li>
     <li>Aktualisierung auf Kotlin 2.0 und Java 21.</li>
 </ul>
--- a/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Sun Jul 28 12:36:42 2024 +0200
+++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf	Sun Jul 28 13:09:32 2024 +0200
@@ -27,6 +27,8 @@
 <h3>Version 1.3.0 - preview</h3>
 
 <ul>
+    <li>The "OK" button in the issue editor now leads to the issue overview.</li>
+    <li>A new "Save" button in the issue editor retains the old behavior and returns to the issue viewer.</li>
     <li>When viewing an issue, the page title now starts with the issue ID.</li>
     <li>Upgrade to Kotlin 2.0 and change JVM target to Java 21.</li>
 </ul>
--- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sun Jul 28 12:36:42 2024 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sun Jul 28 13:09:32 2024 +0200
@@ -173,7 +173,8 @@
                         <fmt:message key="button.cancel"/>
                     </a>
                 </c:if>
-                <button type="submit"><fmt:message key="button.okay"/></button>
+                <button type="submit" name="save"><fmt:message key="button.save"/></button>
+                <button type="submit" name="close"><fmt:message key="button.okay"/></button>
             </td>
         </tr>
         </tfoot>

mercurial