Login   Register  
PHP Classes
elePHPant
Icontem

Missing features

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      TM::Apeform  >  All threads  >  Missing features  >  (Un) Subscribe thread alerts  
Subject:Missing features
Summary:add an css class to a object, add different colors for 2 rows
Messages:2
Author:Martin
Date:2006-05-14 22:44:02
Update:2006-06-09 07:23:15
 

  1. Missing features   Reply   Report abuse  
Picture of Martin
Martin
2006-05-14 22:44:02
This class are almost perfect! Really nice thank you.

Some features are missing imo.

First:
I cant find any way to add an css class on a object. Fx <input type="text" class="????"> this isnt possible.

Second:
Sometimes designers want different colors on 2 rows.
Fx
First row:
<tr>
<td style="background-color:blue;">{label}</td>
<td style="background-color:blue;">{input}</td>
</tr>
Second row:
<tr>
<td style="background-color:yellow;">{label}</td>
<td style="background-color:yellow;">{input}</td>
</tr>

This would be a really nice addiction for the almost perfect form generator.

  2. Re: Missing features   Reply   Report abuse  
Picture of Thiemo Mättig
Thiemo Mättig
2006-06-09 07:23:15 - In reply to message 1 from Martin
It's possible to change the template to set some style or a class:

$form->templates['input'] = "<tr><td>{label}</td><td class="cell">{input}</td></tr>";

And then use a CSS selector like this:

.cell input[type=text] { background-color: red; }

Of course this will be the same for all rows. Different styles per row are possible in the professional version (not published yet).