[Cppcms-users] Form Rendering
Brought to you by:
artyom-beilis
From: Markus R. <us...@ma...> - 2012-05-22 16:16:38
|
Hi! 1.) I would like to render a form and make a layout of them using css. As I see, there are currently following options: html_list_type { as_p = 0, as_table = 1, as_ul = 2, as_dl = 3, as_space = 4 } as shown in: http://cppcms.com/cppcms_ref/latest/structcppcms_1_1form__flags.html#a0c305033878375311a7d5df068eef974 Is it possible to render them as_div to get <div> sections? 2.) Even if I add forms to forms it seems like that they seem to be rendered completely flat. Is it possible to somehow have the same structure in the html output like the the forms have? e.g. I would like to generate following html: <div> <div> element1 element2 </div> <div> element3 element4 </div> </div> out of: form1.add(element1); form1.add(element2); add(form1); form2.add(element3); form2.add(element4); add(form2); (the othermost <div> is from the template) best regards Markus |