Ticket #223 (closed enhancement: fixed)
jforms, plugin block formcontrols: possibilité d'indiquer une liste de ctrl à afficher
| Reported by: | mike | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Jelix 1.0beta3 |
| Component: | jelix:forms | Version: | trunk |
| Severity: | normal | Keywords: | forms tpl plugins |
| Cc: | Php version: | ||
| Review: | Hosting Provider: | ||
| Blocked By: | Documentation needed: | ||
| Blocking: | #35 |
Description
Suite à la discussion sur le forum http://jelix.org/forums/read.php?5,1071, prévoir la possiblité de passer une liste de contrôles à afficher au block {formcontrols}. Ceci permettrait d'afficher les contrôles comme on le souhaite. Ceci permet de completer la fonctionnalité du ticket #184.
Exemple d'utilisation:
{form $form ... }
{formcontrols array('login','email','ville')}
<p><b>{ctrl_label}</b>{ctrl_control}</p>
{/formcontrols}
<table>
{formcontrols}
<tr><td>{ctrl_label}</td><td>{ctrl_control}</td></tr>
{/formcontrols}
</table>
{/form}
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
