Polish bug report page

This commit is contained in:
robin shen 2017-11-07 20:56:44 +08:00
parent 40f6b76221
commit 74dcf0fe7c
4 changed files with 19 additions and 4 deletions

View File

@ -31,6 +31,13 @@
$("#contact_email_error").hide();
}
if (!noError) {
$(".has-errors").show();
$(".submitting").hide();
} else {
$(".has-errors").hide();
$(".submitting").show();
}
return noError;
};
</script>
@ -41,11 +48,13 @@
exception. If you believe it is a bug of GitPlex, please send this
error using below form to help us improving quality of the product</div>
<form action="https://www.pmease.com/gitplex_bug_report" method="post">
<form action="https://www.gitplex.com/bug-report" method="post">
<div class="actions">
<input type="submit" value="Send Error Report" class="btn btn-primary" onclick="if (validateBugReport()) this.form.submit();return false;"></input>
<input wicket:id="dashboardTop" type="button" value="Back to Dashboard" class="btn btn-primary"></input>
</div>
<h4 class="alert alert-danger has-errors">Fix errors below</h4>
<h4 class="alert alert-info submitting">Submitting bug report...</h4>
<table class="table properties">
<tbody>
<tr>
@ -96,7 +105,7 @@
<input type="submit" value="Send Error Report" onclick="if (validateBugReport()) this.form.submit();return false;" class="btn btn-primary"></input>
<input wicket:id="dashboardBottom" type="button" value="Back to Dashboard" class="btn btn-primary"></input>
</div>
<input wicket:id="dashboardUrl" type="hidden" name="dashboard_url"></input>
<input wicket:id="backUrl" type="hidden" name="back_url"></input>
<input wicket:id="additionalInfo" type="hidden" name="additional_info"></input>
</form>
</div>

View File

@ -122,7 +122,7 @@ public class UnexpectedExceptionPage extends BaseErrorPage {
add(new BookmarkablePageLink<Void>("dashboardTop", DashboardPage.class));
add(new BookmarkablePageLink<Void>("dashboardBottom", DashboardPage.class));
add(new WebMarkupContainer("dashboardUrl") {
add(new WebMarkupContainer("backUrl") {
@Override
protected void onComponentTag(ComponentTag tag) {

View File

@ -25,7 +25,11 @@ body.error .center-box .detail>.body {
}
body.error .center-box textarea {
height: 800px;
height: 600px;
}
body.error .has-errors, body.error .submitting {
display: none;
}
body.error form .actions {
@ -34,6 +38,7 @@ body.error form .actions {
body.error td.name {
font-weight: bold;
color: #444;
width: 140px;
}
body.error form .error {
margin-top: 8px;

View File

@ -15,6 +15,7 @@ public class TestPage extends BasePage {
@Override
public void onClick() {
throw new RuntimeException("OOPS!");
}
});