Views for ExecutionEnvironmentsController

src/main/webapp/WEB-INF/views/ExecutionEnvironments/index.jsp:

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://easyweb4j.sourceforge.net/easyweb4j" prefix="e" %>

<a href="${contextRoot}/ExecutionEnvironments/add">Add New</a>
<p />
<span style="color: green">${flash['environmentSuccess']}</span>
<p />
<table>
    <tr>
        <th>Name</th>
        <th>Description</th>
        <th></th>
    </tr>
    <c:forEach items="${environments}" var="environment">
        <tr>
            <td>
                <c:out value="${environment.name}" />
            </td>
            <td>
                <c:out value="${environment.description}" />
            </td>
            <td>
               <a href="${contextRoot}/ExecutionEnvironments/edit/${environment.id}">Edit</a>
               <e:postLink onclick="if(!window.confirm('Are you sure?')) return false;" 
                           href="${contextRoot}/ExecutionEnvironments/delete/${environment.id}">
                   Delete
               </e:postLink>
            </td>
        </tr>
    </c:forEach>
</table>

src/main/webapp/WEB-INF/views/ExecutionEnvironments/environmentForm.jsp:

<%@taglib uri="http://easyweb4j.sourceforge.net/easyweb4j" prefix="e" %>

<label for="name">Name:</label>
<input type="text" id="name" name="environment.name" value="${environment.name}" />
<span style="color: red"><e:message key="${environment.errors['name']}" /></span>

<p />

<label for="description">Description:</label>
<input type="text" id="description" name="environment.description" value="${environment.description}" />
<span style="color: red"><e:message key="${environment.errors['description']}" /></span>

<p />

<input type="submit" value="Save" />
<a href="${contextRoot}/ExecutionEnvironments">Back</a>

src/main/webapp/WEB-INF/views/ExecutionEnvironments/add.jsp:

<form action="${contextRoot}/ExecutionEnvironments/create" method="post">
    <%@include file="environmentForm.jsp" %>
</form>

src/main/webapp/WEB-INF/views/ExecutionEnvironments/edit.jsp:

<form action="${contextRoot}/ExecutionEnvironments/update/${environment.id}" method="post">
    <%@include file="environmentForm.jsp" %>
</form>