[Form] Removed obsolete code. Use the 'attr' var instead
This commit is contained in:
parent
9582221862
commit
a05575bba1
@ -11,7 +11,6 @@
|
||||
name="<?php echo $view->escape($name) ?>"
|
||||
<?php if ($read_only): ?> disabled="disabled"<?php endif ?>
|
||||
<?php if ($multiple): ?> multiple="multiple"<?php endif ?>
|
||||
<?php if ($class): ?> class="<?php echo $class ?>"<?php endif ?>
|
||||
>
|
||||
<?php if (!$multiple && !$required): ?><option value=""><?php echo $empty_value; ?></option><?php endif; ?>
|
||||
<?php if (count($preferred_choices) > 0): ?>
|
||||
|
@ -5,7 +5,6 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($class): ?>class="<?php echo $class ?>"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
/>
|
||||
<?php else: ?>
|
||||
|
@ -2,7 +2,6 @@
|
||||
<?php echo $view['form']->attributes() ?>
|
||||
name="<?php echo $view->escape($name) ?>"
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($class): ?>class="<?php echo $class; ?>"<?php endif; ?>
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
/>
|
@ -4,7 +4,6 @@
|
||||
name="<?php echo $view->escape($form['file']->get('name')) ?>"
|
||||
<?php if ($form['file']->get('disabled')): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($form['file']->get('required')): ?>required="required"<?php endif ?>
|
||||
<?php if ($form['file']->get('class')): ?>class="<?php echo $form['file']->get('class') ?>"<?php endif ?>
|
||||
/>
|
||||
|
||||
<?php echo $view['form']->widget($form['token']) ?>
|
||||
|
@ -4,5 +4,4 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($class): ?>class="<?php echo $class ?>"<?php endif ?>
|
||||
/>
|
@ -4,6 +4,5 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($class): ?>class="<?php echo $class ?>"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
/>
|
@ -4,6 +4,5 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($class): ?>class="<?php echo $class ?>"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
/>
|
@ -5,5 +5,4 @@
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($checked): ?>checked="checked"<?php endif ?>
|
||||
<?php if ($class): ?>class="<?php echo $class ?>"<?php endif ?>
|
||||
/>
|
||||
|
@ -2,7 +2,6 @@
|
||||
<?php echo $view['form']->attributes() ?>
|
||||
name="<?php echo $view->escape($name) ?>"
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($class): ?>class="<?php echo $class; ?>"<?php endif; ?>
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($max_length): ?>maxlength="<?php echo $max_length ?>"<?php endif ?>
|
||||
|
@ -3,5 +3,4 @@
|
||||
name="<?php echo $view->escape($name) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($class): ?>class="<?php echo $class ?>"<?php endif ?>
|
||||
><?php echo $view->escape($value) ?></textarea>
|
||||
|
@ -4,5 +4,4 @@
|
||||
value="<?php echo $view->escape($value) ?>"
|
||||
<?php if ($read_only): ?>disabled="disabled"<?php endif ?>
|
||||
<?php if ($required): ?>required="required"<?php endif ?>
|
||||
<?php if ($class): ?>class="<?php echo $class ?>"<?php endif ?>
|
||||
/>
|
Reference in New Issue
Block a user