Commit 3b981a16 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

1007: Implement element collection feature

Task-Url: https://pm.winseda.de/issues/1007
parent bebcd497
<%@ 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="elementCollection" class="form-horizontal" >
<div class="form-header">
<h3 id="form-header-title"><c:choose>
<c:when test="${elementCollection.id==null}">
<s:message code="~eu.dariah.de.minfba.common.titles.element_collection.new" />
</c:when>
<c:otherwise>
<s:message code="~eu.dariah.de.minfba.common.titles.element_collection.edit" />
</c:otherwise>
</c:choose></h3>
<sf:hidden path="id"/>
</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">
<sf:textarea path="name" rows="4" class="form-control" id="elementCollection_name" />
<sf:errors path="name" cssClass="error" />
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-3" for="elementCollection_description"><s:message code="~eu.dariah.de.minfba.metamodel.common.description" />:</label>
<div class="col-sm-9">
<sf:textarea path="description" rows="4" class="form-control" id="elementCollection_description" />
<sf:errors path="description" cssClass="error" />
</div>
</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.save" /></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