diff options
Diffstat (limited to 'views/admin/form/input.phtml')
| -rw-r--r-- | views/admin/form/input.phtml | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/views/admin/form/input.phtml b/views/admin/form/input.phtml index aad0896..3a936a6 100644 --- a/views/admin/form/input.phtml +++ b/views/admin/form/input.phtml @@ -8,8 +8,27 @@ <input
type="text"
class="form-control input-sm"
- name="<?php echo $this->view['field_name']; ?>"
- value="<?php echo wpsg_hspc($this->view['field_value']); ?>"
+ name="<?php echo $this->view['field_name']; ?>"
+ autofocus="true"
+ tabindex="<?php
+
+ if (!isset($GLOBALS['wpsg']['tabindex']))
+ {
+
+ $GLOBALS['wpsg']['tabindex'] = 10;
+
+ }
+ else
+ {
+
+ $GLOBALS['wpsg']['tabindex'] += 10;
+
+ }
+
+ echo $GLOBALS['wpsg']['tabindex'];
+
+ ?>"
+ value="<?php echo wpsg_hspc($this->view['field_value']); ?>"
id="<?php echo $this->view['field_id']; ?>"
placeholder="<?php echo wpsg_getStr($this->view['field_config']['placeholder']); ?>"
<?php if (wpsg_isTrue($this->view['field_config']['readonly'])) { ?>
|
