Re: multi-line input field

2014-05-12 Thread David Susco
textarea rows:'5' @testform.testing doesn't do what you want it to do? On Mon, May 12, 2014 at 1:51 AM, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi, can someone tell me if multi-line input field is possible to do with markaby? If I use input tag like so: --- input

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
Hi, I can only use textarea rows:'5' @testform.testing for displaying pruposes. As soon as I use tag input which I need for saving the data to the database table, multiline is impossible. regards, seba 2014-05-12 13:39 GMT+02:00 David Susco dsu...@gmail.com: textarea rows:'5'

Re: multi-line input field

2014-05-12 Thread Magnus Holm
textareas are also submitted together with the form, you just need to set a name: textarea @testform.testing, rows:5, name:'testing' On Monday, May 12, 2014, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: Hi, I can only use textarea rows:'5' @testform.testing for displaying pruposes.

Re: multi-line input field

2014-05-12 Thread Bartosz Dziewoński
On Mon, 12 May 2014 14:49:33 +0200, Sebastjan Hribar sebastjan.hri...@gmail.com wrote: I can only use textarea rows:'5' @testform.testing for displaying pruposes. Why? textarea is the way to do multiline text inputs in HTML. -- Matma Rex ___

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
Here was my mistake: I thought that in order for setting the model attribute data like so: common_attributes = {title: input.title, ..., general_remark: input.general_remark} I have to explicitly state the input tag in the form like so: input textarea @reviewform.general_remark, rows: 5,

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
But textarea isn't unknown or unspecified type, right? On 12. 05. 2014 18:19, Bluebie wrote: All web browsers will treat any unknown or unspecified type of input as being a text input. This is why we can have things like input type=email and it doesn't destroy everything :) --- Bluebie On

Re: multi-line input field

2014-05-12 Thread Bluebie
textarea’s are made using the textarea tag. There is no such thing as input type=“textarea”. Maybe this comes from rails or something? In markaby unless you’ve created some helpers to do otherwise, it outputs whatever you write in your code - a call to input() wont be transformed in to a

Re: multi-line input field

2014-05-12 Thread Sebastjan Hribar
Thank you very much for the explanation. I was puzzled why let's say input tag number requires this syntax: input type = 'number' and it breaks when written number @@reviewform.number, name: 'number. And the opposite is true for textarea. regards, seba On 12. 05. 2014 19:44, Bluebie