Skip to content

Commit e283930

Browse files
committed
Fix tabindex properties in packet editor form
1 parent f7f9235 commit e283930

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/templates/Packet/Form.inc.phtml

+5-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ use \CarlBennett\MVC\Libraries\Common; ?>
5252
<div class="col-lg-6">
5353
<div class="form-group">
5454
<label class="font-weight-bold" for="application_layer">Application layer:</label>
55-
<select class="bg-dark border border-primary custom-select text-light" name="application_layer" id="application_layer" tabindex="7">
55+
<select class="bg-dark border border-primary custom-select text-light" name="application_layer" id="application_layer" tabindex="8">
5656
<? foreach (PacketAppLayer::getAllAsArray() as $id => $label)
5757
{
5858
printf('<option value="%s"%s>%s (%s)</option>',
@@ -65,7 +65,7 @@ use \CarlBennett\MVC\Libraries\Common; ?>
6565
</div>
6666
<div class="form-group">
6767
<label class="font-weight-bold" for="format">Format: <span class="small text-muted">(see <a rel="external" href="https://bnetdocs.org/document/19/notational-convention-sizes-types">Notational Convention</a> for help or <code>[blank]</code> for none)</span></label>
68-
<textarea class="bg-dark border border-primary form-control language-objectivec text-light text-monospace" style="height:120px;" name="format" id="format" placeholder="Enter the message format here" tabindex="3" required><?=filter_var($form_fields['format'] ?? null, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></textarea>
68+
<textarea class="bg-dark border border-primary form-control language-objectivec text-light text-monospace" style="height:120px;" name="format" id="format" placeholder="Enter the message format here" tabindex="9" required><?=filter_var($form_fields['format'] ?? null, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></textarea>
6969
</div>
7070
<div class="form-group">
7171
<label class="font-weight-bold">Used by: <span class="small text-muted">(products that currently use or have used this packet)</span></label>
@@ -88,15 +88,15 @@ use \CarlBennett\MVC\Libraries\Common; ?>
8888
<label class="font-weight-bold" for="remarks">Remarks: <span class="small text-muted">(a description of what, when, where, and why this packet is used, and any related info)</span></label>
8989
<span class="float-right">
9090
<div class="custom-control custom-switch">
91-
<input class="custom-control-input" type="checkbox" name="markdown" id="markdown" tabindex="5"
91+
<input class="custom-control-input" type="checkbox" name="markdown" id="markdown" tabindex="10"
9292
title="Use markdown or use raw HTML" value="1"<?=($form_fields['markdown'] ?? null ? ' checked' : '')?>/>
9393
<label class="custom-control-label" for="markdown" title="Use markdown or use raw HTML">Markdown</label>
9494
</div>
9595
</span>
96-
<textarea class="bg-dark border border-primary form-control text-light" style="height:200px;" name="remarks" id="remarks" placeholder="Enter the message remarks here" tabindex="4" required><?=filter_var($form_fields['remarks'] ?? null, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></textarea>
96+
<textarea class="bg-dark border border-primary form-control text-light" style="height:200px;" name="remarks" id="remarks" placeholder="Enter the message remarks here" tabindex="11" required><?=filter_var($form_fields['remarks'] ?? null, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?></textarea>
9797
</div>
9898
<div class="form-group text-center">
99-
<input class="btn btn-success" type="submit" value="Save" tabindex="9"/>
99+
<input class="btn btn-success" type="submit" value="Save" tabindex="12"/>
100100
</div>
101101
</form>
102102
<? if (isset($comments)) { $comment_parent_type = Comment::PARENT_TYPE_PACKET; $comment_parent_id = $form_fields['packet_id'] ?? null; require('./Comment/Section.inc.phtml'); } ?>

0 commit comments

Comments
 (0)