aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordedeibel2018-12-18 23:43:55 +0100
committerdedeibel2018-12-19 22:07:30 +0100
commit909c562183a3051f1cda85ec3e3d19f1355ccded (patch)
tree445c27e393ff080026f49b7989c9eda0cfeec8f4
parentd4b6e004b24d43ccb98f83b79de1d075d748d837 (diff)
Feeback Message as Textarea. Add audio/video async as option.
-rw-r--r--model/Feedback.php4
-rw-r--r--template/assemblies/feedback.phtml8
2 files changed, 10 insertions, 2 deletions
diff --git a/model/Feedback.php b/model/Feedback.php
index 16791eb..f47491b 100644
--- a/model/Feedback.php
+++ b/model/Feedback.php
@@ -35,6 +35,8 @@ class Feedback
VALUES (:reported, :datetime, :net, :os, :player, :stream, :ipproto_v4, :ipproto_v6, :provider, :issues, :issuetext)
');
+ $issuetext = preg_replace('/\r?\n/', ' ', $info['issuetext']);
+
$stm->execute(array(
'reported' => time(),
'datetime' => strtotime($info['datetime']),
@@ -46,7 +48,7 @@ class Feedback
'ipproto_v6' => isset($info['ipproto']) && is_array($info['ipproto']) && in_array('v6', $info['ipproto']),
'provider' => $info['provider'],
'issues' => isset($info['issues']) && is_array($info['issues']) ? implode(',', $info['issues']) : '',
- 'issuetext' => $info['issuetext'],
+ 'issuetext' => $issuetext,
));
}
diff --git a/template/assemblies/feedback.phtml b/template/assemblies/feedback.phtml
index 7577f22..f03148c 100644
--- a/template/assemblies/feedback.phtml
+++ b/template/assemblies/feedback.phtml
@@ -6,7 +6,8 @@
<div class="col-sm-6 col">
<div class="form-group">
<label for="issuetext">Message / Symptoms*</label>
- <input type="text" value="" name="issuetext" id="issuetext" class="form-control" />
+ <textarea rows="2" value="" name="issuetext" id="issuetext" class="form-control" style="resize: vertical;"
+ ></textarea>
</div>
</div>
@@ -143,6 +144,11 @@
<input type="checkbox" name="issues[]" value="Artifacts" /> Artifacts
</label>
</div>
+ <div class="checkbox">
+ <label>
+ <input type="checkbox" name="issues[]" value="AV Async" /> Audio/Video async
+ </label>
+ </div>
</div>
</div>