Skip to content

Commit

Permalink
finished form validation on issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremythuff committed Aug 18, 2015
1 parent 7ffac87 commit 5092c99
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions ajax_forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,17 +588,18 @@
<tr>
<td colspan="2">
<h1> Report New Problem</h1>
<span class='smallDarkRedText'>* required fields</span>
</td>
</tr>
<tr>
<td><label>Organization:</label></td>
<td><label>Organization:&nbsp;&nbsp;<span class='bigDarkRedText'>*</span></label></td>
<td>
<p><?php echo $organization->name; ?></p>
<span id='span_error_organizationId' class='smallDarkRedText'>
<span id='span_error_organizationId' class='smallDarkRedText'></span>
</td>
</tr>
<tr>
<td><label>Contact:</label></td>
<td><label>Contact:&nbsp;&nbsp;<span class='bigDarkRedText'>*</span></label></td>
<td>
<select multiple style="min-height: 60px;" type='text' id='contactIDs' name='contactIDs[]'>
<?php
Expand All @@ -609,7 +610,7 @@

?>
</select>
<span id='span_error_contactName' class='smallDarkRedText'>
<span id='span_error_contactName' class='smallDarkRedText'></span>
</td>
</tr>
<tr>
Expand All @@ -623,7 +624,7 @@
<td><label>CC myself:</label></td>
<td>
<input type='checkbox' id='ccCreator' name='ccCreator' class='changeInput' />
<span id='span_error_ccCreator' class='smallDarkRedText'>
<span id='span_error_ccCreator' class='smallDarkRedText'></span>
</td>
</tr>
<tr>
Expand All @@ -635,25 +636,25 @@
Current CCs: <span id="currentEmails"></span>
</p>
<input type="hidden" id='ccEmails' name='ccEmails' value='' class='changeInput' />
<span id='span_error_contactIDs' class='smallDarkRedText'>
<span id='span_error_contactIDs' class='smallDarkRedText'></span>
</td>
</tr>
<tr>
<td><label>Subject:</label></td>
<td><label>Subject:&nbsp;&nbsp;<span class='bigDarkRedText'>*</span></label></td>
<td>
<input type='text' id='subjectText' name='issue[subjectText]' value='' class='changeInput' />
<span id='span_error_subjectText' class='smallDarkRedText'>
<span id='span_error_subjectText' class='smallDarkRedText'></span>
</td>
</tr>
<tr>
<td><label>Body:</label></td>
<td><label>Body:&nbsp;&nbsp;<span class='bigDarkRedText'>*</span></label></td>
<td>
<textarea id='bodyText' name='issue[bodyText]' value='' />
<span id='span_error_bodyText' class='smallDarkRedText'>
<span id='span_error_bodyText' class='smallDarkRedText'></span>
</td>
</tr>
<tr>
<td><label>Applies to:</label></td>
<td><label>Applies to:&nbsp;&nbsp;<span class='bigDarkRedText'>*</span></label></td>
<td>
<div>
<input type="checkbox" class="issueResources" name="organizationID" value="<?php echo $organization->organizationID;?>" /> <label for="allResources">Applies to all resources of <?php echo $organization->name; ?></label>
Expand All @@ -670,7 +671,7 @@
}
?>
</select>
<span id='span_error_resourceIDs' class='smallDarkRedText'>
<span id='span_error_resourceIDs' class='smallDarkRedText'></span>
</td>
</tr>
</table>
Expand Down

0 comments on commit 5092c99

Please sign in to comment.