Ticket #594 (closed defect: fixed)
aButtonSlot - Edit View Form Markup is not good
| Reported by: | johnnyoffline | Owned by: | johnnyoffline |
|---|---|---|---|
| Priority: | major | Milestone: | 1.5 |
| Component: | apostrophePlugin | Version: | trunk |
| Keywords: | slots, 1.5rc, aButtonSlot | Cc: | johnnyoffline, rickybanister, jake, geoffd, dordille |
| Symfony version: | 1.4 |
Description
Tom,
I don't really recognize what's going on in this partial to break it up and use the correct apostrophe sanctioned form markup.
It's outputting the form without enough markup in the right places, causing formatting to look bunk.
Can you explain this to me:
<?php
// Compatible with sf_escaping_strategy: true
$form = isset($form) ? $sf_data->getRaw('form') : null;
?>
<?php use_helper('I18N') ?>
<?php if ($form['url']->hasError()): ?>
<div class="a-error"><?php echo __('Invalid URL. A valid example: http://www.punkave.com/', null, 'apostrophe') ?></div>
<?php endif ?>
<div class="a-form-row"><?php echo __('URL: %r%', array('%r%' => $form['url']->render()), 'apostrophe') ?></div>
<div class="a-form-row"><?php echo __('Title: %t%', array('%t%' => $form['title']->render()), 'apostrophe') ?></div>
<?php echo $form->renderHiddenFields() ?>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


