Commit 99bedc93 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1257: Migrate administrative views

Task-Url: https://pm.winseda.de/issues/1257
parent 79c0cdd7
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<ul class="breadcrumb">
<li class="active"><s:message code="~eu.dariah.de.minfba.common.titles.administration" /></li>
<li class="active"><s:message code="~eu.dariah.de.minfba.search.view.titles.collection_management" /></li>
</ul>
<div id="main-content">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="collections-table-container" class="col-lg-12">
<h2 class="pull-left">
<div class="col-12">
<h1>
<s:message code="~eu.dariah.de.minfba.search.view.titles.collection_management" />
<c:if test="${_auth==null || _auth.auth==false || _auth.level < 100}"><small>&nbsp;<span class="glyphicon glyphicon-lock pull-right" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></span></small></c:if>
</h2>
<div class="pull-right">
<c:if test="${_auth.level >= 100}">
<button id="btn-resync-colreg" class="btn btn-default btn-sm">
<i class="fa fa-refresh fa-fw"></i> <s:message code="~eu.dariah.de.minfba.common.actions.synchronize" />
</button>
</c:if>
<div class="data-table-filter pull-left">
<input type="text" class="form-control input-sm" placeholder='<s:message code="~eu.dariah.de.minfba.common.data_tables.filter_paceholder" />'>
<c:if test="${_auth==null || _auth.auth==false}"><small>&nbsp;<i class="fas fa-lock" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></i></small></c:if>
</h1>
<div id="collections-table-container" class="col-12">
<div class="row">
<div class="${_auth.level >= 100 ? 'col-sm-12 col-md-8' : 'col-12'}">
<div class="data-table-count float-left">
<label><s:message code="~eu.dariah.de.minfba.common.labels.show" />:
<select class="custom-select custom-select-sm form-control form-control-sm" aria-controls="collections-table">
<option>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
<option><s:message code="~eu.dariah.de.minfba.common.data_tables.show_all" /></option>
</select>
</label>
</div>
<div class="data-table-filter float-left">
<label><s:message code="~eu.dariah.de.minfba.common.data_tables.filter_paceholder" />:
<input type="text" class="form-control form-control-sm" aria-controls="collections-table">
</label>
</div>
</div>
<c:if test="${_auth.level >= 100}">
<div class="col-sm-12 col-md-4">
<div style="text-align: right;">
<button id="btn-resync-colreg" class="btn btn-primary">
<i class="fas fa-sync-alt"></i> <s:message code="~eu.dariah.de.minfba.common.actions.synchronize" />
</button>
</div>
</div>
</c:if>
</div>
<div class="row">
<div class="col-sm-12">
<table id="collections-table" class="state-table table table-striped state-table-navigatable table-bordered" style="width:100%" role="grid">
<thead>
<tr>
<th><s:message code="~eu.dariah.de.minfba.common.status" /></th> <!-- Badge column -->
<th><s:message code="~eu.dariah.de.minfba.search.model.dataset.documents" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.url" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.api_type" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td colspan="6" class="dataTables_empty" valign="top"><s:message code="~eu.dariah.de.minfba.common.data_tables.no_data_fetched_yet" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="data-table-count pull-left">
<select class="form-control input-sm">
<option>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
<option><s:message code="~eu.dariah.de.minfba.common.data_tables.show_all" /></option>
</select>
</div>
</div>
<div class="clearfix">
<table id="collections-table" class="state-table state-table-selectable table-striped">
<thead>
<tr>
<th><s:message code="~eu.dariah.de.minfba.common.status" /></th> <!-- Badge column -->
<th><s:message code="~eu.dariah.de.minfba.search.model.dataset.documents" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.url" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.endpoint.api_type" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td colspan="6" class="dataTables_empty" valign="top"><s:message code="~eu.dariah.de.minfba.common.data_tables.no_data_fetched_yet" /></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
......
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<div class="list-group options active" style="overflow: hidden;">
<h4 class="sidebar-title"><s:message code="~eu.dariah.de.minfba.colreg.view.titles.colreg" /> (<s:message code="~eu.dariah.de.minfba.search.view.api" />)</h4>
<nav class="sidebar-block">
<h2><s:message code="~eu.dariah.de.minfba.colreg.view.titles.colreg" /> (<s:message code="~eu.dariah.de.minfba.search.view.api" />)</h2>
<div class="list-group-item">
<div id="colreg-status-container" class="alert alert-sm alert-default" role="alert">
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.url" />:</h5> <a href="${colregUrl}" target="_blank">${colregUrl}</a><br />
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.status" />:</h5><span id="colreg-status"><i class="fa fa-question" aria-hidden="true"></i></span><br />
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.last_sync" />:</h5><span id="colreg-last-sync">&nbsp;</span>
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.next_sync" />:</h5><span id="colreg-next-sync">&nbsp;</span>
</div>
</div>
</div>
\ No newline at end of file
<ul id="colreg-status-container" class="status-container">
<li><s:message code="~eu.dariah.de.minfba.search.view.api.url" />: <a href="${colregUrl}" target="_blank">${colregUrl}</a></li>
<li><s:message code="~eu.dariah.de.minfba.search.view.api.status" />: <span id="colreg-status"></span></li>
<li><s:message code="~eu.dariah.de.minfba.search.view.api.last_sync" />: <span id="colreg-last-sync">&nbsp;</span></li>
<li><s:message code="~eu.dariah.de.minfba.search.view.api.next_sync" />: <span id="colreg-next-sync">&nbsp;</span></li>
</ul>
</nav>
......@@ -4,58 +4,65 @@
<tiles:importAttribute name="fluidLayout" />
<ul class="breadcrumb">
<li class="active"><s:message code="~eu.dariah.de.minfba.common.titles.administration" /></li>
<li class="active"><s:message code="~eu.dariah.de.minfba.search.view.titles.datamodel_management" /></li>
</ul>
<div id="main-content">
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="datamodels-table-container" class="col-sm-12">
<h2 class="pull-left">
<div class="col-12">
<h1>
<s:message code="~eu.dariah.de.minfba.search.view.titles.datamodel_management" />
<c:if test="${_auth==null || _auth.auth==false}"><small>&nbsp;<span class="glyphicon glyphicon-lock pull-right" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></span></small></c:if>
</h2>
<div class="pull-right">
<c:if test="${_auth.level >= 100}">
<button id="btn-sync" class="btn btn-default btn-sm">
<i class="fa fa-refresh fa-fw"></i> <s:message code="~eu.dariah.de.minfba.common.actions.synchronize" />
</button>
</c:if>
<div class="data-table-filter pull-left">
<input type="text" class="form-control input-sm" placeholder='<s:message code="~eu.dariah.de.minfba.common.data_tables.filter_paceholder" />'>
<c:if test="${_auth==null || _auth.auth==false}"><small>&nbsp;<i class="fas fa-lock" data-toggle="tooltip" data-placement="left" title="<s:message code="~eu.dariah.de.minfba.common.notification.limited_access" />"></i></small></c:if>
</h1>
<div id="datamodels-table-container" class="col-12">
<div class="row">
<div class="${_auth.level >= 100 ? 'col-sm-12 col-md-8' : 'col-12'}">
<div class="data-table-count float-left">
<label><s:message code="~eu.dariah.de.minfba.common.labels.show" />:
<select class="custom-select custom-select-sm form-control form-control-sm" aria-controls="datamodels-table">
<option>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
<option><s:message code="~eu.dariah.de.minfba.common.data_tables.show_all" /></option>
</select>
</label>
</div>
<div class="data-table-filter float-left">
<label><s:message code="~eu.dariah.de.minfba.common.data_tables.filter_paceholder" />:
<input type="text" class="form-control form-control-sm" aria-controls="datamodels-table">
</label>
</div>
</div>
<c:if test="${_auth.level >= 100}">
<div class="col-sm-12 col-md-4">
<div style="text-align: right;">
<button id="btn-sync" class="btn btn-primary">
<i class="fas fa-sync-alt"></i> <s:message code="~eu.dariah.de.minfba.common.actions.synchronize" />
</button>
</div>
</div>
</c:if>
</div>
<div class="row">
<div class="col-sm-12">
<table id="datamodels-table" class="state-table table table-striped table-bordered" style="width:100%" role="grid">
<thead>
<tr>
<th></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.index_name" /></th>
<th><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.document_count" /></th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td colspan="5" class="dataTables_empty" valign="top"><s:message code="~eu.dariah.de.minfba.common.data_tables.no_data_fetched_yet" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="data-table-count pull-left">
<select class="form-control input-sm">
<option>10</option>
<option>25</option>
<option>50</option>
<option>100</option>
<option><s:message code="~eu.dariah.de.minfba.common.data_tables.show_all" /></option>
</select>
</div>
</div>
<div class="clearfix">
<table id="datamodels-table" class="state-table table-striped">
<thead>
<tr>
<th></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.name" /></th>
<th><s:message code="~eu.dariah.de.minfba.metamodel.model.index_name" /></th>
<th><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.document_count" /></th>
<th></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td colspan="5" class="dataTables_empty" valign="top"><s:message code="~eu.dariah.de.minfba.common.data_tables.no_data_fetched_yet" /></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<div class="list-group options active" style="overflow: hidden;">
<h4 class="sidebar-title"><s:message code="~eu.dariah.de.minfba.dme.view.titles.dme" /> (<s:message code="~eu.dariah.de.minfba.search.view.api" />)</h4>
<nav class="sidebar-block">
<h2><s:message code="~eu.dariah.de.minfba.dme.view.titles.dme" /> (<s:message code="~eu.dariah.de.minfba.search.view.api" />)</h2>
<div class="list-group-item">
<div id="dme-status-container" class="alert alert-sm alert-default" role="alert">
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.url" />:</h5> <a href="${dmeUrl}" target="_blank">${dmeUrl}</a><br />
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.status" />:</h5> <span id="dme-status"><i class="fa fa-question" aria-hidden="true"></i></span><br />
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.last_sync" />:</h5> <span id="dme-last-sync">&nbsp;</span>
<h5><s:message code="~eu.dariah.de.minfba.search.view.api.next_sync" />:</h5> <span id="dme-next-sync">&nbsp;</span>
</div>
</div>
</div>
\ No newline at end of file
<ul id="dme-status-container" class="status-container">
<li><s:message code="~eu.dariah.de.minfba.search.view.api.url" />: <a href="${dmeUrl}" target="_blank">${dmeUrl}</a></li>
<li><s:message code="~eu.dariah.de.minfba.search.view.api.status" />: <span id="dme-status"></span></li>
<li><s:message code="~eu.dariah.de.minfba.search.view.api.last_sync" />: <span id="dme-last-sync">&nbsp;</span></li>
<li><s:message code="~eu.dariah.de.minfba.search.view.api.next_sync" />: <span id="dme-next-sync">&nbsp;</span></li>
</ul>
</nav>
......@@ -169,3 +169,6 @@
<input id="currentUrl" type="hidden" value="${requestScope['javax.servlet.forward.request_uri']}" />
<input id="baseUrl" type="hidden" value="<s:url value="/" />" />
<input id="baseUrl2" type="hidden" value="<s:url value="/{}" />" />
<input type="hidden" id="uauth" value="${_auth!=null && _auth.auth==true}" />
<input type="hidden" id="ulevel" value="${_auth.level}" />
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment