diff --git a/bookstore/src/main/resources/messages.properties b/bookstore/src/main/resources/messages.properties index 982598a..27f4610 100644 --- a/bookstore/src/main/resources/messages.properties +++ b/bookstore/src/main/resources/messages.properties @@ -1,21 +1,22 @@ -# Keep as fall back values if multi-language support is added - -typeMismatch.book.year = Invalid year format -typeMismatch.book.price = Invalid price format - -book.author = Author -book.title = Title -book.isbn = ISBN -book.year = Year -book.price = Price -book.category = Category - -book.desc.set.author = Set book author name -book.desc.set.title = Set book primary title -book.desc.set.isbn = Set book ISBN code -book.desc.set.year = Set book publication year -book.desc.set.price = Set book price -book.desc.set.category = Select appropriate category +# Message keys with values. +# Prepare environment for possible multi-language support + +typeMismatch.book.year = Invalid year format +typeMismatch.book.price = Invalid price format + +book.author = Author +book.title = Title +book.isbn = ISBN +book.year = Year +book.price = Price +book.category = Category + +book.desc.set.author = Set book author name +book.desc.set.title = Set book primary title +book.desc.set.isbn = Set book ISBN code +book.desc.set.year = Set book publication year +book.desc.set.price = Set book price +book.desc.set.category = Select appropriate category book.desc.example.headertext = Valid inputs (examples) book.desc.example.author = Andrzej Sapkowski @@ -24,27 +25,27 @@ book.desc.example.isbn = 1212121-3 or 4545454-67 or 6767676-890 book.desc.example.year = 1854 or 2005 book.desc.example.price = 17 or 123.5 or 45.67 -book.error.author = Invalid author name -book.error.title = Invalid title -book.error.isbn = Invalid ISBN code -book.error.year = Invalid year -book.error.price = Invalid price +book.error.author = Invalid author name +book.error.title = Invalid title +book.error.isbn = Invalid ISBN code +book.error.year = Invalid year +book.error.price = Invalid price -page.title.browser.list = Bookstore page -page.title.browser.add = Add book -page.title.browser.edit = Update book +page.title.browser.list = Bookstore page +page.title.browser.add = Add book +page.title.browser.edit = Update book -page.title.webform.list = Books -page.title.webform.add = Add new book -page.title.webform.edit = Update existing book +page.title.webform.list = Books +page.title.webform.add = Add new book +page.title.webform.edit = Update existing book -page.text.list.actions = Actions -page.text.list.delete = Delete -page.text.list.edit = Edit +page.text.list.actions = Actions +page.text.list.delete = Delete +page.text.list.edit = Edit -button.book.add = Add book -button.book.edit = Update book +button.book.add = Add book +button.book.edit = Update book -button.page.list.return = Return to book list page +button.page.list.return = Return to book list page -page.symbols.currency = \u20AC \ No newline at end of file +page.symbols.currency = \u20AC \ No newline at end of file diff --git a/bookstore/src/main/resources/templates/bookadd.html b/bookstore/src/main/resources/templates/bookadd.html index b757a98..e987822 100644 --- a/bookstore/src/main/resources/templates/bookadd.html +++ b/bookstore/src/main/resources/templates/bookadd.html @@ -2,99 +2,193 @@
- - -- | - | - | - | - | - | + | book.author | +book.title | +book.isbn | +book.year | +book.category | +book.price | +page.text.list.actions | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - | - | - | + | (obj) book.author | +(obj) book.title | +(obj) book.isbn | +(obj) book.year | +(obj) book.category.name | ++ 0.00 page.symbols.currency + | + ++ + page.text.list.delete + + | + ++ + page.text.list.edit + + | +