1
|
|
|
|
2
|
|
|
<div id="page-wrapper"> |
3
|
|
|
<div class="row"> |
4
|
|
|
<div class="col-lg-12"> |
5
|
|
|
<h1 class="page-header">Bugs</h1> |
6
|
|
|
</div> |
7
|
|
|
<!-- /.col-lg-12 --> |
8
|
|
|
</div> |
9
|
|
|
<!-- /.row --> |
10
|
|
|
<div class="row"> |
11
|
|
|
<div class="col-sm-2 col-lg-2"></div> |
12
|
|
|
<div class="col-sm-8 col-lg-8"> |
13
|
|
|
<div class="panel panel-default"> |
14
|
|
|
<div class="panel-heading"> |
15
|
|
|
<i class="fa fa-edit"></i> Report Bugs, Features & Enhancements |
16
|
|
|
</div> |
17
|
|
|
<div class="panel-body"> |
18
|
|
|
<div class="row"> |
19
|
|
|
<div class="col-lg-12"> |
20
|
|
|
|
21
|
|
View Code Duplication |
<?php if(empty(Session::get('report-bug-success'))){ ?> |
|
|
|
|
22
|
|
|
<form action="<?php echo PUBLIC_ROOT; ?>User/reportBug" id="form-bug" method="post"> |
23
|
|
|
<div class="form-group"> |
24
|
|
|
<label>Subject <span class="text-danger">*</span></label> |
25
|
|
|
<input type="text" name="subject" class="form-control" required maxlength="80" placeholder="Write the subject"> |
26
|
|
|
</div> |
27
|
|
|
|
28
|
|
|
<div class="form-group"> |
29
|
|
|
<label>Bug, Feature or Enhancement? <span class="text-danger">*</span></label> |
30
|
|
|
<select name="label" class="form-control" size="1"> |
31
|
|
|
<option value="bug">Bug</option> |
32
|
|
|
<option value="feature">Feature</option> |
33
|
|
|
<option value="enhancement">Enhancement</option> |
34
|
|
|
</select> |
35
|
|
|
<p class="help-block">Bug is an error you encountered</p> |
36
|
|
|
<p class="help-block">Feature is a new functionality you suggest to add</p> |
37
|
|
|
<p class="help-block">Enhancement is an existing feature, but you want to improve</p> |
38
|
|
|
</div> |
39
|
|
|
|
40
|
|
|
<div class="form-group"> |
41
|
|
|
<label>Message <span class="text-danger">*</span></label> |
42
|
|
|
<textarea class="form-control" name="message" required rows="20" maxlength="1800"></textarea> |
43
|
|
|
<p class="help-block"><em>The maximum number of characters allowed is <strong>1800</strong></em></p> |
44
|
|
|
</div> |
45
|
|
|
<div class="form-group"> |
46
|
|
|
<input type="hidden" name="csrf_token" value="<?= Session::generateCsrfToken(); ?>" /> |
47
|
|
|
</div> |
48
|
|
|
<div class="form-group form-actions text-right"> |
49
|
|
|
<button type="submit" name="submit" value="submit" class="btn btn-md btn-success"> |
50
|
|
|
<i class="fa fa-check"></i> Send |
51
|
|
|
</button> |
52
|
|
|
</div> |
53
|
|
|
</form> |
54
|
|
|
<?php } else { echo $this->renderSuccess(Session::getAndDestroy('report-bug-success')); } ?> |
55
|
|
|
<?php |
56
|
|
|
if(!empty(Session::get('report-bug-errors'))){ |
57
|
|
|
echo $this->renderErrors(Session::getAndDestroy('report-bug-errors')); |
58
|
|
|
} |
59
|
|
|
?> |
60
|
|
|
</div> |
61
|
|
|
<!-- /.col-lg-6 (nested) --> |
62
|
|
|
</div> |
63
|
|
|
<!-- /.row (nested) --> |
64
|
|
|
</div> |
65
|
|
|
<!-- /.panel-body --> |
66
|
|
|
</div> |
67
|
|
|
</div> |
68
|
|
|
<!-- END Newsfeed Block --> |
69
|
|
|
</div> |
70
|
|
|
<!-- /.row --> |
71
|
|
|
</div> |
72
|
|
|
<!-- /#page-wrapper --> |
73
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.