I am new to Play framework and using play 2.5.2. In some of the pages, I need to display few fields one next to another.
For ex:
Product name
[Text box for product name]
Product category
[Text box for product category]
Price range: from [input box] to [input box]
City
[Text box for city]
Manufactured date: from [input box] to [input box]
How do I achieve this layout (displaying only the price range and manufactured date differently)?
I am using views.html.helper (@import helper._
) and not twitter bootstrap.
This is how I am using it:
@inputText(
extractSearchForm("productName"),
'_label -> "Product name",
'placeholder -> "Product name for ex: Jess Toer"
)
I believe there are a lot of ways to do that.
Here is the sample to customize css with id field. ( I'm not good at CSS, hopefully some shows better css code. )
Then you can see the output like below.
If you build your own form-constructor, it'll be better though.