fix failureurl pages

This commit is contained in:
Kaoru FUZITA 2015-11-12 21:13:51 +09:00
parent ee54327fa1
commit f6425c8e57
2 changed files with 67 additions and 72 deletions

View file

@ -13,20 +13,14 @@
<jsp:param name="menuCategoryType" value="log" />
<jsp:param name="menuType" value="failureUrl" />
</jsp:include>
<div class="content-wrapper">
<%-- Content Header --%>
<section class="content-header">
<h1>
<la:message key="labels.failure_url_title_details" />
</h1>
<jsp:include page="/WEB-INF/view/common/admin/crud/breadcrumb.jsp"></jsp:include>
</section>
<section class="content">
<%-- Form --%>
<la:form>
<la:hidden property="crudMode" />
<c:if test="${crudMode==2 || crudMode==3 || crudMode==4}">
@ -55,6 +49,7 @@
<div class="btn-group pull-right">
<la:link href="/admin/failureurl"
styleClass="btn btn-primary btn-xs">
<i class="fa fa-th-list"></i>
<la:message key="labels.failure_url_link_list" />
</la:link>
</div>
@ -68,84 +63,82 @@
</la:info>
<la:errors />
</div>
<%-- Form Fields --%>
<table class="table table-bordered">
<tbody>
<c:if test="${crudMode==2 || crudMode==3 || crudMode==4}">
<div class="table-responsive">
<table class="table table-bordered">
<tbody>
<c:if test="${crudMode==2 || crudMode==3 || crudMode==4}">
<tr>
<th><la:message key="labels.failure_url_id" /></th>
<td>${f:h(id)}<la:hidden property="id" /></td>
</tr>
</c:if>
<tr>
<th style="width: 150px;"><la:message
key="labels.failure_url_id" /></th>
<td style="width: 350px;">${f:h(id)}<la:hidden
property="id" /></td>
<th><la:message key="labels.failure_url_url" /></th>
<td>${f:h(url)} <la:hidden property="url" />
</td>
</tr>
</c:if>
<tr>
<th><la:message key="labels.failure_url_url" /></th>
<td><div style="width: 350px; overflow-x: auto;">
${f:h(url)}
<la:hidden property="url" />
</div></td>
</tr>
<tr>
<th><la:message key="labels.failure_url_thread_name" /></th>
<td>${f:h(threadName)}<la:hidden property="threadName" /></td>
</tr>
<tr>
<th><la:message key="labels.failure_url_error_name" /></th>
<td>${f:h(errorName)}<la:hidden property="errorName" /></td>
</tr>
<tr>
<th><la:message key="labels.failure_url_error_log" /></th>
<td><div style="width: 350px; overflow-x: auto;">
${f:br(f:nbsp(f:h(errorLog)))}
<la:hidden property="errorLog" />
</div></td>
</tr>
<tr>
<th><la:message key="labels.failure_url_error_count" /></th>
<td>${f:h(errorCount)}<la:hidden property="errorCount" /></td>
</tr>
<tr>
<th><la:message
key="labels.failure_url_last_access_time" /></th>
<td>${f:h(lastAccessTime)}<la:hidden
property="lastAccessTime" /></td>
</tr>
<tr>
<th><la:message
key="labels.failure_url_web_config_name" /></th>
<td>${f:h(webConfigName)}</td>
</tr>
<tr>
<th><la:message
key="labels.failure_url_file_config_name" /></th>
<td>${f:h(fileConfigName)}</td>
</tr>
</tbody>
</table>
<tr>
<th><la:message key="labels.failure_url_thread_name" /></th>
<td>${f:h(threadName)}<la:hidden property="threadName" /></td>
</tr>
<tr>
<th><la:message key="labels.failure_url_error_name" /></th>
<td>${f:h(errorName)}<la:hidden property="errorName" /></td>
</tr>
<tr>
<th><la:message key="labels.failure_url_error_log" /></th>
<td>${f:br(f:nbsp(f:h(errorLog)))} <la:hidden
property="errorLog" />
</td>
</tr>
<tr>
<th><la:message key="labels.failure_url_error_count" /></th>
<td>${f:h(errorCount)}<la:hidden property="errorCount" /></td>
</tr>
<tr>
<th><la:message
key="labels.failure_url_last_access_time" /></th>
<td>${f:h(lastAccessTime)}<la:hidden
property="lastAccessTime" /></td>
</tr>
<tr>
<th><la:message
key="labels.failure_url_web_config_name" /></th>
<td>${f:h(webConfigName)}</td>
</tr>
<tr>
<th><la:message
key="labels.failure_url_file_config_name" /></th>
<td>${f:h(fileConfigName)}</td>
</tr>
</tbody>
</table>
</div>
</div>
<%-- Box Footer --%>
<!-- /.box-body -->
<div class="box-footer">
<c:if test="${crudMode == 3}">
<button type="submit" class="btn" name="back"
<button type="submit" class="btn" name="list"
value="<la:message key="labels.crud_button_back" />">
<i class="fa fa-arrow-circle-left"></i>
<la:message key="labels.crud_button_back" />
</button>
<button type="submit" class="btn btn-danger" name="delete"
value="<la:message key="labels.crud_button_delete" />">
<i class="fa fa-trash"></i>
<la:message key="labels.crud_button_delete" />
</button>
</c:if>
<c:if test="${crudMode == 4}">
<button type="submit" class="btn" name="back"
<button type="submit" class="btn" name="list"
value="<la:message key="labels.crud_button_back" />">
<i class="fa fa-arrow-circle-left"></i>
<la:message key="labels.crud_button_back" />
</button>
<button type="button" class="btn btn-danger" name="delete"
data-toggle="modal" data-target="#confirmToDelete"
value="<la:message key="labels.crud_button_delete" />">
<i class="fa fa-trash"></i>
<la:message key="labels.crud_button_delete" />
</button>
<div class="modal modal-danger fade" id="confirmToDelete"
@ -183,7 +176,9 @@
</div>
</c:if>
</div>
<!-- /.box-footer -->
</div>
<!-- /.box -->
</div>
</div>
</la:form>

View file

@ -44,13 +44,11 @@
<label for="url" class="col-sm-2 control-label"><la:message
key="labels.failure_url_search_url" /></label>
<div class="col-sm-10">
<la:text property="url"
styleClass="form-control"></la:text>
<la:text property="url" styleClass="form-control"></la:text>
</div>
</div>
<div class="form-group row">
<label for="errorCountMin"
class="col-sm-2 control-label"><la:message
<label for="errorCountMin" class="col-sm-2 control-label"><la:message
key="labels.failure_url_search_error_count" /></label>
<div class="col-xs-2">
<la:text property="errorCountMin" size="2"
@ -63,12 +61,10 @@
</div>
</div>
<div class="form-group">
<label for="errorName"
class="col-sm-2 control-label"><la:message
<label for="errorName" class="col-sm-2 control-label"><la:message
key="labels.failure_url_search_error_name" /></label>
<div class="col-sm-10">
<la:text property="errorName"
styleClass="form-control"></la:text>
<la:text property="errorName" styleClass="form-control"></la:text>
</div>
</div>
<div class="form-group">
@ -103,6 +99,8 @@
<thead>
<tr>
<th><la:message key="labels.failure_url_url" /></th>
<th><la:message
key="labels.failure_url_search_error_name" /></th>
<th><la:message
key="labels.failure_url_last_access_time" /></th>
</tr>
@ -113,6 +111,7 @@
<tr class="${s.index % 2 == 0 ? 'row1' : 'row2'}"
data-href="details/4/${f:u(data.id)}">
<td>${f:h(data.url)}</td>
<td>${f:h(data.errorName)}</td>
<td><fmt:formatDate
value="${fe:date(data.lastAccessTime)}"
pattern="yyyy-MM-dd'T'HH:mm:ss" /></td>
@ -167,6 +166,7 @@
<div class="col-sm-12 center">
<button type="button" class="btn btn-danger"
data-toggle="modal" data-target="#confirmToDeleteAll">
<i class="fa fa-trash"></i>
<la:message key="labels.failure_url_delete_all_link" />
</button>
</div>