$fields = array(
'Target' => array(
'type' => 'text',
- 'label-message' => 'ipadressorusername',
- 'tabindex' => '1',
+ 'label-message' => 'ipaddressorusername',
+ 'autofocus' => true,
'size' => '45',
'required' => true,
),
'Name' => array(
'type' => 'info',
- 'label-message' => 'ipadressorusername',
+ 'label-message' => 'ipaddressorusername',
),
'Reason' => array(
'type' => 'text',
$fields['Target']['default'] = "#{$this->target}";
break;
}
+ // target is hidden, so the reason is the first element
+ $fields['Target']['autofocus'] = false;
+ $fields['Reason']['autofocus'] = true;
}
} else {
$fields['Target']['default'] = $this->target;