Kann mir jemand einen Tip geben, wie man über einen Dekrator an die Labels der einzelnen Optionen kommt?
Und würde das einem Radio Element dan genauso funktionieren?
So sieht mein Dekorator aus:
Und das macht das ZF zur Zeit drausCode:$element->setDecorators(array( array( 'Description', array('tag' => 'div', 'class' => 'description')), 'ViewHelper', 'Errors', array( 'HtmlTag', array('tag' => 'dd') ), array( 'Label', array('tag' => 'dt') ), ));
Und das hätte ich gern für eine einzelen OptionCode:<dt><label for = "mcb" class = "required">Label MultiCheckbox</label> </dt> <dd><div class = "description"> Description MultiCheckbox </div> <label style = "white-space: nowrap;"><input type = "checkbox" name = "mcb[]" id = "mcb-foo" value = "foo" /> Foo Option</label> <br /> <label style = "white-space: nowrap;"><input type = "checkbox" name = "mcb[]" id = "mcb-bar" value = "bar" /> Bar Option</label> <br /> <label style = "white-space: nowrap;"><input type = "checkbox" name = "mcb[]" id = "mcb-baz" value = "baz" /> Baz Option</label> <br /> <label style = "white-space: nowrap;"><input type = "checkbox" name = "mcb[]" id = "mcb-bat" value = "bat" /> Bat Option</label> </dd>
Ich vermute ich muß das dem ViewHelper mit auf dem Weg geben, aber ich weis nicht wie.Code:<div class="MCB"> <label class="MCBLABEL" style = "white-space: nowrap;"> <input class="MCBOPTION" type = "checkbox" name = "mcb[]" id = "mcb-foo" value = "foo" />Foo Option </label> </div>
Warum das ganze? Ich möchte das Aussehen über CSS definieren können.
Danke für eure Hilfe



LinkBack URL
About LinkBacks



Zitieren

Lesezeichen