Commit 2c0df8e2 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1004: Implement manual grouping feature

Task-Url: https://pm.winseda.de/issues/1004
parent 49794465
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<s:url value="${actionPath}" var="saveUrl" />
<sf:form method="POST" action="${saveUrl}" modelAttribute="item" class="form-horizontal" >
<div class="form-header">
<h3 id="form-header-title"><s:message code="~eu.dariah.de.minfba.common.titles.element_collection.add_item" /></h3>
<sf:hidden path="id" />
<sf:hidden path="type" />
<sf:hidden path="index" />
</div>
<div class="form-content">
<fieldset>
<div class="form-group">
<label class="control-label col-sm-3" for="elementCollection_name"><s:message code="~eu.dariah.de.minfba.metamodel.common.name" />:</label>
<div class="col-sm-9">
<select id="elementCollectionId" name="elementCollectionId" class="form-control">
<c:forEach var="c" items="${availableCollections}">
<option value="${c.id}">${c.name}</option>
</c:forEach>
</select>
</div>
</div>
<c:if test="${fn:length(attachedCollections)>0}">
<div class="form-group">
<div class="col-sm-12">
<div class="alert alert-sm alert-info"><s:message code="~eu.dariah.de.minfba.common.titles.element_collection.part_of_following" />
<ul>
<c:forEach var="c" items="${attachedCollections}">
<li>${c.name}</li>
</c:forEach>
</ul>
</div>
</div>
</div>
</c:if>
</fieldset>
</div>
<div class="form-footer control-group">
<div class="controls">
<button class="btn cancel form-btn-cancel" type="reset"><span><s:message code="~eu.dariah.de.minfba.common.actions.cancel" /></span></button>
<button class="btn btn-primary start form-btn-submit" type="submit"><span><s:message code="~eu.dariah.de.minfba.common.actions.add" /></span></button>
</div>
</div>
</sf:form>
\ No newline at end of file
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<s:url value="${actionPath}" var="saveUrl" />
<sf:form method="POST" action="${saveUrl}" modelAttribute="item" class="form-horizontal" >
<div class="form-header">
<h3 id="form-header-title"><s:message code="~eu.dariah.de.minfba.common.titles.element_collection.remove_item" /></h3>
<sf:hidden path="id" />
<sf:hidden path="type" />
<sf:hidden path="index" />
</div>
<div class="form-content">
<fieldset>
<div class="form-group">
<c:choose>
<c:when test="${fn:length(availableCollections)>0}">
<label class="control-label col-sm-3" for="elementCollection_name"><s:message code="~eu.dariah.de.minfba.metamodel.common.name" />:</label>
<div class="col-sm-9">
<select id="elementCollectionId" name="elementCollectionId" class="form-control">
<c:forEach var="c" items="${availableCollections}">
<option value="${c.id}">${c.name}</option>
</c:forEach>
</select>
</div>
</c:when>
<c:otherwise>
<div class="col-sm-12">
<div class="alert alert-sm alert-info">
<s:message code="~eu.dariah.de.minfba.common.titles.element_collection.part_of_none" />
</div>
</div>
</c:otherwise>
</c:choose>
</div>
</fieldset>
</div>
<div class="form-footer control-group">
<div class="controls">
<button class="btn cancel form-btn-cancel" type="reset"><span><s:message code="~eu.dariah.de.minfba.common.actions.cancel" /></span></button>
<button class="btn btn-primary start form-btn-submit" type="submit"><span><s:message code="~eu.dariah.de.minfba.common.actions.delete" /></span></button>
</div>
</div>
</sf:form>
\ No newline at end of file
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