1 | <% |
---|
2 | /** |
---|
3 | * Term Editor overview template |
---|
4 | * |
---|
5 | * @author Jeroen Wesbeek |
---|
6 | * @since 20100422 |
---|
7 | * @package wizard |
---|
8 | * @see dbnp.studycapturing.TermEditorController |
---|
9 | * |
---|
10 | * Revision information: |
---|
11 | * $Rev: 590 $ |
---|
12 | * $Author: duh $ |
---|
13 | * $Date: 2010-06-18 15:20:08 +0000 (vr, 18 jun 2010) $ |
---|
14 | */ |
---|
15 | %> |
---|
16 | <%@ page contentType="text/html;charset=UTF-8" %> |
---|
17 | <html> |
---|
18 | <head> |
---|
19 | <meta name="layout" content="dialog"/> |
---|
20 | <style type="text/css"> |
---|
21 | #termForm { |
---|
22 | display: block; |
---|
23 | vertical-align: top; |
---|
24 | } |
---|
25 | #termForm #label { |
---|
26 | color:#006DBA; |
---|
27 | font-size:14px; |
---|
28 | font-weight:normal; |
---|
29 | display: inline-block; |
---|
30 | zoom: 1; /* IE 6 & 7 hack */ |
---|
31 | *display: inline; /* IE 6 & 7 hack */ |
---|
32 | } |
---|
33 | #termForm #term { |
---|
34 | display: inline-block; |
---|
35 | zoom: 1; /* IE 6 & 7 hack */ |
---|
36 | *display: inline; /* IE 6 & 7 hack */ |
---|
37 | } |
---|
38 | #termForm #button { |
---|
39 | display: inline-block; |
---|
40 | zoom: 1; /* IE 6 & 7 hack */ |
---|
41 | *display: inline; /* IE 6 & 7 hack */ |
---|
42 | } |
---|
43 | </style> |
---|
44 | <g:if env="production"> |
---|
45 | <script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.min.js')}"></script> |
---|
46 | </g:if><g:else> |
---|
47 | <script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.js')}"></script> |
---|
48 | </g:else> |
---|
49 | </head> |
---|
50 | <body> |
---|
51 | |
---|
52 | <g:if test="${errors}"> |
---|
53 | <span class="info"> |
---|
54 | <span class="error">Oops!</span> |
---|
55 | <g:each in="${errors}" var="error"> |
---|
56 | ${error}<br/> |
---|
57 | </g:each> |
---|
58 | </span> |
---|
59 | </g:if> |
---|
60 | <g:elseif test="${message}"> |
---|
61 | <span class="info"> |
---|
62 | <span class="known">Success</span> |
---|
63 | ${message} |
---|
64 | </span> |
---|
65 | </g:elseif> |
---|
66 | <g:else> |
---|
67 | <span class="info"> |
---|
68 | <span class="title">Add a term</span> |
---|
69 | Use the search box below to find the term you would like to add. |
---|
70 | </span> |
---|
71 | </g:else> |
---|
72 | |
---|
73 | <div id="termForm"> |
---|
74 | <g:form action="pages" name="wizardForm" id="wizardForm"> |
---|
75 | <div id="label">search term: </div> |
---|
76 | <div id="term"><g:textField name="term" rel="ontology-${ontologies}" size="40" /></div> |
---|
77 | <div id="button"><g:submitButton name="add" value="Add term" /></div> |
---|
78 | </g:form> |
---|
79 | </div> |
---|
80 | |
---|
81 | <script type="text/javascript"> |
---|
82 | $(document).ready(function() { |
---|
83 | // initialize the ontology chooser |
---|
84 | new OntologyChooser().init({showHide: $('div#button')}); |
---|
85 | }); |
---|
86 | </script> |
---|
87 | |
---|
88 | </body> |
---|
89 | </html> |
---|