Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 74af1c9

Browse files
author
Jamie Snape
committed
Add missing HTML form labels in tracker module
1 parent 5cc01db commit 74af1c9

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

modules/tracker/views/producer/edit.phtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,25 @@
3030
method="POST">
3131
<div class="formRow">
3232
<label for="displayName">Name</label>
33-
<input type="text" name="displayName" value="<?php echo $this->producer->getDisplayName(); ?>"/>
33+
<input type="text" id="displayName" name="displayName" value="<?php echo $this->producer->getDisplayName(); ?>"/>
3434
</div>
3535
<div class="formRow">
3636
<label for="description">Description</label>
37-
<textarea class="description" name="description"><?php echo $this->producer->getDescription(); ?></textarea>
37+
<textarea class="description" id="description" name="description"><?php echo $this->producer->getDescription(); ?></textarea>
3838
</div>
3939
<div class="formRow">
4040
<label for="repository">Repository URL</label>
41-
<input type="text" name="repository" value="<?php echo $this->producer->getRepository(); ?>"/>
41+
<input type="text" id="repository" name="repository" value="<?php echo $this->producer->getRepository(); ?>"/>
4242
</div>
4343
<div class="formRow">
4444
<label for="revisionUrl">Revision URL</label>
45-
<input type="text" name="revisionUrl" value="<?php echo $this->producer->getRevisionUrl(); ?>"/>
45+
<input type="text" id="revisionUrl" name="revisionUrl" value="<?php echo $this->producer->getRevisionUrl(); ?>"/>
4646
</div>
4747
<div class="formRow">
4848
<label for="executableName">Executable Name</label>
49-
<input type="text" name="executableName" value="<?php echo $this->producer->getExecutableName(); ?>"/>
49+
<input type="text" id="executableName" name="executableName" value="<?php echo $this->producer->getExecutableName(); ?>"/>
5050
</div>
51-
<input type="hidden" name="producerId" value="<?php echo $this->producer->getKey(); ?>"/>
51+
<input type="hidden" id="producerId" name="producerId" value="<?php echo $this->producer->getKey(); ?>"/>
5252

5353
<div class="submitButtonContainer">
5454
<input type="submit" class="globalButton" value="Save"/>

modules/tracker/views/trend/edit.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jquery.for
3232
method="POST">
3333
<div class="formRow">
3434
<label for="metricName">Metric name</label>
35-
<input type="text" name="metricName" value="<?php echo $this->escape($this->trend->getMetricName()); ?>"
35+
<input type="text" id="metricName" name="metricName" value="<?php echo $this->escape($this->trend->getMetricName()); ?>"
3636
qtip="The metric name that submission clients use to identify this trend"/>
3737
</div>
3838
<div class="formRow">
3939
<label for="displayName">Display name</label>
40-
<input type="text" name="displayName" value="<?php echo $this->escape($this->trend->getDisplayName()); ?>"
40+
<input type="text" id="displayName" name="displayName" value="<?php echo $this->escape($this->trend->getDisplayName()); ?>"
4141
qtip="The title that is displayed in Midas for this trend"/>
4242
</div>
4343
<div class="formRow">
4444
<label for="unit">Unit</label>
45-
<input type="text" name="unit" value="<?php echo $this->escape($this->trend->getUnit()); ?>"
45+
<input type="text" id="unit" name="unit" value="<?php echo $this->escape($this->trend->getUnit()); ?>"
4646
qtip="The unit of measurement for this metric (optional)"/>
4747
</div>
4848
<div class="formRow">

modules/tracker/views/trend/notify.phtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
<form id="thresholdNotifyForm" class="genericForm" method="POST"
2727
action="<?php echo $this->webroot ?>/tracker/trend/notifysubmit">
2828
<div>
29-
<input type="radio" id="noNotify" name="doNotify" value="no"/>Do not send me emails for this trend
29+
<input type="radio" id="noNotify" name="doNotify" value="no"/><label for="noNotify">Do not send me emails for this trend</label>
3030
</div>
3131
<div>
32-
<input type="radio" id="yesNotify" name="doNotify" value="yes"/>Send me an email alert
32+
<input type="radio" id="yesNotify" name="doNotify" value="yes"/><label for="yesNotify">Send me an email alert</label>
3333
</div>
3434
<div class="thresholdInfoContainer">
3535
When submitted value is
@@ -39,7 +39,7 @@
3939
<option value="&gt;=">&gt;=</option>
4040
<option value="&lt;=">&lt;=</option>
4141
</select>
42-
<input type="text" class="thresholdValue" name="value"
42+
<input type="text" class="thresholdValue" id="value" name="value"
4343
<?php
4444
if ($this->setting) {
4545
echo ' value="'.$this->escape($this->setting->getValue()).'"';

modules/tracker/views/trend/view.phtml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,19 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jqplot/jqp
174174
<table class="yValuesTable">
175175
<tbody>
176176
<tr>
177-
<th>Y range:</th>
178-
<td><input class="yMin" type="text"/></td>
179-
<td>to</td>
180-
<td><input class="yMax" type="text"/></td>
177+
<th><label for="yMin">Y range:</label></th>
178+
<td><input id="yMin" class="yMin" type="text"/></td>
179+
<td><label for="yMax">to</label></td>
180+
<td><input id="yMax" class="yMax" type="text"/></td>
181181
</tr>
182182
<?php
183183
if ($this->rightTrend) {
184184
?>
185185
<tr>
186-
<th>Y2 range:</th>
187-
<td><input class="y2Min" type="text"/></td>
188-
<td>to</td>
189-
<td><input class="y2Max" type="text"/></td>
186+
<th><label for="y2Min">Y2 range:</label></th>
187+
<td><input id="y2Min" class="y2Min" type="text"/></td>
188+
<td><label for="y2Max">to</label></td>
189+
<td><input id="y2Max" type="text"/></td>
190190
</tr>
191191
<?php
192192
}

0 commit comments

Comments
 (0)