I have a problem that I can't seam to solve using Zend. I want a form with
"many" inputs. I need to place them in two different colums. There's an
plain HTML example that shows what I want to do blow. Can any one help me.
How do I add two columns without using tables in Zend. Using a div doesn't
solve the problem since the div that comes after the form is placed at the
left of the last div. Not below, even if I only set the form divs to use
style="float:left;"
Can use the views and the phtml files for this.
Here's the HTML code to what i want to do in Zend.
<html>
<head>
<style type="text/css">
.myHead
{
max-width:650;
min-width:510;
}
.box
{
float:left;
max-width:300;
min-width:250;
border: 1px solid black;
}
.box2
{
float:none;
}
</style>
<title>Test formulär</title>
</head>
<body>
<h1>Test formulär</h1>
<form action="/php/foo.php" method="post">
<table>
<tr>
<td>
<div class="box">
<div>Namn: <input type="text" id="name" value="" /></div>
<div>Adress: <input type="text" id="address" value="" /></div>
<div>postNr: <input type="text" id="zip" value="" /></div>
<div>Ort: <input type="text" id="city" value="" /></div>
</div>
</td>
<td>
<div class="box">
<div>Name: <input type="text" id="couponname" value=""/></div>
<div>Kategori: <input type="select" id="category" value=""/></div>
<div><input type="checkbox" id="nonpublic" value="false"/> Icke
Publik</div>
<div><input type="checkbox" id="public" value="false" />
Publik</div>
</div>
</td>
</tr>
</table>
</form>
<div class="box2">
<div class="box2">
<p>Knappen skall kommma nedanför rutorna!</p>
<input type="submit" value="submit" label="Sök"/>
</div>
</div>
<h2>Här kommer listan med resultatet.</h2>
</body>
</html>
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/How-render-Zend-Form-to-html-table-tp662422p3047968.html
Sent from the Zend Framework mailing list archive at Nabble.com.