first implementation of error-reporting

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-29 11:09:16 +01:00
parent 6f61c7b5e7
commit defdaeee2e
5 changed files with 185 additions and 2 deletions

View File

@@ -0,0 +1,44 @@
$header
<article>
<header>
<h2>
<img src="templates/{$theme}/assets/img/icons/display_big.png" alt="" />&nbsp;
Send error report
</h2>
</header>
<section>
<form method="post" action="{$linker->getLink(array('section' => 'index'))}" enctype="application/x-www-form-urlencoded">
<fieldset>
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="send" value="send" />
<table class="bradius">
<thead>
<tr>
<td>
<p>Thank you for reporting this error and helping us to make froxlor better.</p>
<p>This is the e-mail that will be sent to the froxlor developer team:</p>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>{$mail_html}</code>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td align="center">
<input class="bottom" type="submit" value="Send report" />
</td>
</tr>
</tfoot>
</table>
</fieldset>
</form>
</section>
</article>
$footer

View File

@@ -0,0 +1,44 @@
$header
<article>
<header>
<h2>
<img src="templates/{$theme}/assets/img/icons/display_big.png" alt="" />&nbsp;
Send error report
</h2>
</header>
<section>
<form method="post" action="{$linker->getLink(array('section' => 'index'))}" enctype="application/x-www-form-urlencoded">
<fieldset>
<input type="hidden" name="s" value="$s" />
<input type="hidden" name="page" value="$page" />
<input type="hidden" name="send" value="send" />
<table class="bradius">
<thead>
<tr>
<td>
<p>Thank you for reporting this error and helping us to make froxlor better.</p>
<p>This is the e-mail that will be sent to the froxlor developer team:</p>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>{$mail_html}</code>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td align="center">
<input class="bottom" type="submit" value="Send report" />
</td>
</tr>
</tfoot>
</table>
</fieldset>
</form>
</section>
</article>
$footer

View File

@@ -34,8 +34,14 @@
<p>&nbsp;</p>
</div>
</div>
<aside class="right">
<a href="#" title="Click here to go back" id="historyback">Go back</a>
<aside>
<div style="float:left;">
<a href="#" title="Click here to go back" id="historyback">Go back</a>
</div>
<div style="float:right;">
<a href="<LINK>" title="Click here to report error">Report error</a>
</div>
<div style="clear:both;"></div>
</aside>
</section>