summaryrefslogtreecommitdiff
path: root/views/admin/form
diff options
context:
space:
mode:
Diffstat (limited to 'views/admin/form')
-rw-r--r--views/admin/form/input.phtml23
-rw-r--r--views/admin/form/select.phtml23
2 files changed, 43 insertions, 3 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'])) { ?>
diff --git a/views/admin/form/select.phtml b/views/admin/form/select.phtml
index f0466c8..34993d0 100644
--- a/views/admin/form/select.phtml
+++ b/views/admin/form/select.phtml
@@ -6,7 +6,28 @@
<div class="wpsg_field_wrap">
- <select id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" class="form-control input-sm" <?php echo $this->view['atts_select']; ?>>
+ <select
+ id="<?php echo $this->view['field_id']; ?>"
+ name="<?php echo $this->view['field_name']; ?>"
+ tabindex="<?php
+
+ if (!isset($GLOBALS['wpsg']['tabindex']))
+ {
+
+ $GLOBALS['wpsg']['tabindex'] = 10;
+
+ }
+ else
+ {
+
+ $GLOBALS['wpsg']['tabindex'] += 10;
+
+ }
+
+ echo $GLOBALS['wpsg']['tabindex'];
+
+ ?>"
+ class="form-control input-sm" <?php echo $this->view['atts_select']; ?>>
<?php