Commit 742af268 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1262: Show user profile as logon indicator

Task-Url: https://pm.winseda.de/issues/1262
parent 70633c7c
......@@ -2,25 +2,23 @@
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<s:url value="${actionPath}" var="saveUrl" />
<form method="POST" action="${saveUrl}" class="form-horizontal" >
<form method="POST" action="${saveUrl}">
<div class="form-header">
<h3 id="form-header-title"><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.set_oaipmh_prefix" /></h3>
<h2 id="form-header-title"><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.set_oaipmh_prefix" /></h2>
<input type="hidden" id="datasourceId" name="datasourceId" value="${datasourceId}" />
<input type="hidden" id="endpointId" name="endpointId" value="${endpointId}" />
<input type="hidden" id="schemaId" name="schemaId" value="${schemaId}" />
</div>
<div class="form-content">
<div class="form-group">
<label class="control-label col-sm-5" for="oai_prefix"><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.oaipmh_prefix" /></label>
<div class="col-sm-7">
<div class="form-group row">
<label class="col-form-label col-5" for="oai_prefix"><s:message code="~eu.dariah.de.minfba.search.metamodel_view.model.oaipmh_prefix" /></label>
<div class="col-7">
<input type="text" class="form-control" name="oaiPrefix" id="oaiPrefix" value="${prefix}" />
</div>
</div>
</div>
<div class="form-footer form-group">
<div class="col-sm-12">
<button class="btn btn-default cancel form-btn-cancel" type="reset"><s:message code="~eu.dariah.de.minfba.common.actions.cancel" /></button>
<button class="btn btn-primary start form-btn-submit" type="submit"><s:message code="~eu.dariah.de.minfba.common.actions.save" /></button>
</div>
<div class="form-footer">
<button class="btn btn-default cancel form-btn-cancel" type="reset"><s:message code="~eu.dariah.de.minfba.common.actions.cancel" /></button>
<button class="btn btn-primary start form-btn-submit" type="submit"><s:message code="~eu.dariah.de.minfba.common.actions.save" /></button>
</div>
</form>
......@@ -127,10 +127,11 @@
<c:set var="prefix_state" value="state-warning" />
</c:otherwise>
</c:choose>
<span class="oaipmh-metadata-prefix">${prefix}</span>&nbsp;
<c:if test="${_auth.level >= 100}">
<div class="inline-button ${prefix_state}" onclick="editor.editPrefix('${ep.id}','${ds.id}','${ds.remoteAlias}', '.oaipmh-metadata-prefix');">
<i class="fa fa-pencil-square-o"></i> <span class="oaipmh-metadata-prefix">${prefix}</span>
</div>
<button class="btn btn-inline ${prefix_state}" onclick="editor.editPrefix('${ep.id}','${ds.id}','${ds.remoteAlias}', '.oaipmh-metadata-prefix');">
<i class="far fa-edit"></i>
</button>
</c:if>
</li>
</c:if>
......
......@@ -7,19 +7,19 @@
<div class="container<c:if test="${fluidLayout==true}">-fluid</c:if>">
<div class="row">
<div id="notifications-area" class="col-10 offset-1"></div>
<div class="col-12">
<h1><s:message code="~de.unibamberg.minf.common.user_profile" /></h1>
<div class="col-10 offset-1 col-lg-6 offset-lg-3">
<h1><s:message code="~eu.dariah.de.minfba.common.titles.user_profile" /></h1>
<c:choose>
<c:when test="${_auth!=null && _auth.auth==true}">
<form>
<div class="form-group">
<label for="authorizedAs"><s:message code="~de.unibamberg.minf.common.user_profile.autorized_as" /></label>
<label for="authorizedAs"><s:message code="~eu.dariah.de.minfba.common.titles.user_profile.autorized_as" /></label>
<input type="text" readonly class="form-control-plaintext" id="authorizedAs" value="${_auth.displayName}">
</div>
</form>
</c:when>
<c:otherwise>
<p><s:message code="~de.unibamberg.minf.common.user_profile.not_logged_in" /></p>
<p><s:message code="~eu.dariah.de.minfba.common.titles.user_profile.not_logged_in" /></p>
</c:otherwise>
</c:choose>
</div>
......
......@@ -12,13 +12,13 @@
<div class="carousel-inner" role="listbox"></div>
<!-- Controls -->
<a class="left carousel-control" href="#search-results-image-carousel-~{index}" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#search-results-image-carousel-~{index}" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
<a class="carousel-control-prev" href=#search-results-image-carousel-~{index}" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#search-results-image-carousel-~{index}" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
......
......@@ -96,6 +96,11 @@
</c:otherwise>
</c:choose>
</li>
<c:if test="${_auth!=null && _auth.auth==true}">
<li class="nav-item">
<a class="nav-link" href="<s:url value='/user' />" title="${_auth.displayName}"><span class="ti-user"></span></a>
</li>
</c:if>
<li class="nav-item dropdown navbar-separator">
<a class="nav-link navbar-logo" href="#" id="portalDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
......
Supports Markdown
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