ublog: Make it obvious that the initial submit button creates a draft
parent
5ccacc8ea3
commit
6300c5a2f6
|
@ -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()))
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue