Skip to content

Commit 2d70fc2

Browse files
committed
Add explanation text to packet form fields
1 parent 6622771 commit 2d70fc2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/templates/Packet/Form.inc.phtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ use \CarlBennett\MVC\Libraries\Common; ?>
1616
</div>
1717
</div><div class="col-lg-3">
1818
<div class="form-group">
19-
<label class="font-weight-bold" for="packet_id">Id:</label>
19+
<label class="font-weight-bold" for="packet_id">Id: <span class="small text-muted">(supports prefixes like &amp;h, 0x, etc.)</span></label>
2020
<input class="bg-dark border border-primary form-control text-light" type="text" name="packet_id" id="packet_id" placeholder="Enter the message id here" tabindex="1" required autofocus="autofocus" value="<?=filter_var($form_fields['packet_id'] ?? null, FILTER_SANITIZE_FULL_SPECIAL_CHARS)?>"/>
2121
</div>
2222
</div><div class="col-lg-4">
2323
<div class="form-group">
24-
<label class="font-weight-bold" for="name">Name:</label>
24+
<label class="font-weight-bold" for="name">Name: <span class="small text-muted">(e.g. SID_NULL)</span></label>
2525
<input class="bg-dark border border-primary form-control text-light" type="text" name="name" id="name" placeholder="Enter the message name here" tabindex="2" required value="<?=$form_fields['name'] ?? ''?>"/>
2626
</div>
2727
</div><div class="col-lg-2">
@@ -34,11 +34,11 @@ use \CarlBennett\MVC\Libraries\Common; ?>
3434
</div>
3535
</div>
3636
<div class="form-group">
37-
<label class="font-weight-bold" for="format">Format:</label>
37+
<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>
3838
<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>
3939
</div>
4040
<div class="form-group">
41-
<label class="font-weight-bold">Used by:</label>
41+
<label class="font-weight-bold">Used by: <span class="small text-muted">(products that currently use or have used this packet)</span></label>
4242
<table class="table table-borderless table-sm">
4343
<thead></thead><tbody>
4444
<? $p_ubound = count($form_products);
@@ -55,7 +55,7 @@ use \CarlBennett\MVC\Libraries\Common; ?>
5555
</table>
5656
</div>
5757
<div class="form-group">
58-
<label class="font-weight-bold" for="remarks">Remarks:</label>
58+
<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>
5959
<span class="float-right">
6060
<div class="custom-control custom-switch">
6161
<input class="custom-control-input" type="checkbox" name="markdown" id="markdown" tabindex="5"

0 commit comments

Comments
 (0)