Add winery source code
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.repository / src / main / webapp / WEB-INF / tags / parameters / parametersHTML.tag
1 <%--
2 /*******************************************************************************
3  * Copyright (c) 2012-2013 University of Stuttgart.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * and the Apache License 2.0 which both accompany this distribution,
7  * and are available at http://www.eclipse.org/legal/epl-v10.html
8  * and http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Contributors:
11  *    Oliver Kopp - initial API and implementation and/or initial documentation
12  *******************************************************************************/
13 --%>
14 <%@tag description="Input or Output parameters" pageEncoding="UTF-8"%>
15
16 <%@attribute name="label" required="true" %>
17 <%@attribute name="inOrOut" required="true" %>
18 <%@attribute name="tableId" required="true" %>
19 <%@attribute name="baseURL" required="true" description="JavaScript expression for determining the baseURL"%>
20
21 <div class="row">
22         <div class="row listheading">
23                 <button class="rightbutton btn btn-danger btn-xs" type="button" onclick="delete${inOrOut}putParameter(${baseURL});" id="remove${inOrOut}ParBtn">Remove</button>
24                 <button class="rightbutton btn btn-primary btn-xs" type="button" onclick="create${inOrOut}putParameter(${baseURL});" id="add${inOrOut}ParBtn">Add</button>
25                 <label>${label}</label>
26         </div>
27         <table class="row" id="${tableId}">
28                 <thead>
29                         <tr>
30                         <th>Name</th>
31                         <th>Type</th>
32                         <th>Required</th>
33                         </tr>
34                 </thead>
35                 <tbody>
36                 </tbody>
37         </table>
38 </div>