Add winery source code
[vfc/nfvo/wfengine.git] / winery / org.eclipse.winery.repository / src / main / webapp / WEB-INF / tags / servicetemplates / boundarydefinitions / browseForX.tag
1 <%--
2 /*******************************************************************************
3  * Copyright (c) 2014 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
15 <%@tag pageEncoding="UTF-8"%>
16
17 <%@attribute name="XShort" description="The X to browse for. Short form. E.g., Req, Cap, ..." required="true" %>
18 <%@attribute name="XLong" description="The X to browse for. Long form. E.g., Requirement, Capability, ..." required="true" %>
19
20
21 <%-- Browse for property --%>
22 <div class="modal fade z1051" id="browseFor${XShort}Diag">
23         <div class="modal-dialog" style="width:1000px;">
24                 <div class="modal-content">
25                         <div class="modal-header">
26                                 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
27                                 <h4 class="modal-title">Choose a ${XLong}</h4>
28                         </div>
29
30                         <div class="modal-body">
31                                 <p class="text-info">Please click on the desired ${XLong}</p>
32                                 <iframe id="topologyTemplatePreview" class="topologyTemplatePreviewSizing" src="topologytemplate/?view=${XShort}Selection&script=${pageContext.request.contextPath}/js/boundaryDefinitionsXSelection.js"></iframe>
33                                 <form>
34                                         <fieldset>
35                                                 <div class="form-group">
36                                                         <label for="${XShort}RefeferenceField">Reference to the ${XLong} in the topology template</label>
37                                                         <input type="text" id="${XShort}ReferenceField" class="form-control newObjectRef" />
38                                                 </div>
39                                         </fieldset>
40                                 </form>
41                         </div>
42
43                         <div class="modal-footer">
44                                 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
45                                 <button type="button" class="btn btn-primary" onclick="set${XShort}Ref();">Set</button>
46                         </div>
47                 </div>
48         </div>
49 </div>