ublog: Make it obvious that the initial submit button creates a draft

pull/9762/head
Benedikt Werner 2021-09-09 06:11:09 +02:00
parent 5ccacc8ea3
commit 6300c5a2f6
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
3 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,7 @@ object form {
a(href := post.fold(routes.Ublog.index(user.username))(views.html.ublog.post.urlOfPost))(
trans.cancel()
),
form3.submit(trans.apply())
form3.submit(post.fold(trans.ublog.saveDraft())(trans.apply()))
)
)

View File

@ -2256,6 +2256,7 @@ object ublog {
val `xBlog` = new I18nKey("ublog:xBlog")
val `newPost` = new I18nKey("ublog:newPost")
val `editYourBlogPost` = new I18nKey("ublog:editYourBlogPost")
val `saveDraft` = new I18nKey("ublog:saveDraft")
val `postTitle` = new I18nKey("ublog:postTitle")
val `postIntro` = new I18nKey("ublog:postIntro")
val `postBody` = new I18nKey("ublog:postBody")

View File

@ -3,6 +3,7 @@
<string name="xBlog">%s's Blog</string>
<string name="newPost">New post</string>
<string name="editYourBlogPost">Edit your blog post</string>
<string name="saveDraft">Save draft</string>
<string name="postTitle">Post title</string>
<string name="postIntro">Post intro</string>
<string name="postBody">Post body</string>