diff options
Diffstat (limited to 'srcs/phpmyadmin/templates/error')
| -rw-r--r-- | srcs/phpmyadmin/templates/error/generic.twig | 40 | ||||
| -rw-r--r-- | srcs/phpmyadmin/templates/error/report_form.twig | 32 |
2 files changed, 72 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/templates/error/generic.twig b/srcs/phpmyadmin/templates/error/generic.twig new file mode 100644 index 0000000..a47bce6 --- /dev/null +++ b/srcs/phpmyadmin/templates/error/generic.twig @@ -0,0 +1,40 @@ +<!DOCTYPE HTML> +<html lang="{{ lang }}" dir="{{ dir }}"> +<head> + <link rel="icon" href="favicon.ico" type="image/x-icon"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <title>phpMyAdmin</title> + <meta charset="utf-8"> + <style type="text/css"> + html { + padding: 0; + margin: 0; + } + body { + font-family: sans-serif; + font-size: small; + color: #000000; + background-color: #F5F5F5; + margin: 1em; + } + h1 { + margin: 0; + padding: 0.3em; + font-size: 1.4em; + font-weight: bold; + color: #ffffff; + background-color: #ff0000; + } + p { + margin: 0; + padding: 0.5em; + border: 0.1em solid red; + background-color: #ffeeee; + } + </style> +</head> +<body> +<h1>phpMyAdmin - {{ error_header }}</h1> +<p>{{ error_message|raw }}</p> +</body> +</html> diff --git a/srcs/phpmyadmin/templates/error/report_form.twig b/srcs/phpmyadmin/templates/error/report_form.twig new file mode 100644 index 0000000..c45d740 --- /dev/null +++ b/srcs/phpmyadmin/templates/error/report_form.twig @@ -0,0 +1,32 @@ +<form action="error_report.php" method="post" name="report_frm" id="report_frm" + class="ajax"> + <fieldset style="padding-top:0"> + + <p> + {% trans %} + This report automatically includes data about the error and information about relevant configuration settings. It will be sent to the phpMyAdmin team for debugging the error. + {% endtrans %} + </p> + + <div class="label"><label><strong> + {% trans "Can you tell us the steps leading to this error? It decisively helps in debugging:" %} + </strong></label> + </div> + <textarea class="report-description" name="description" + id="report_description"></textarea> + + <div class="label"><label><p> + {% trans "You may examine the data in the error report:" %} + </p></label></div> + <pre class="report-data">{{ report_data|raw }}</pre> + + <input type="checkbox" name="always_send" id="always_send_checkbox"> + <label for="always_send_checkbox"> + {% trans "Automatically send report next time" %} + </label> + + </fieldset> + + {{ hidden_inputs|raw }} + {{ hidden_fields|raw }} +</form> |
