source: trunk/grails-app/views/termEditor/pages/terms.gsp @ 1430

Last change on this file since 1430 was 1430, checked in by work@…, 9 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 2.4 KB
Line 
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: 1430 $
12         * $Author: work@osx.eu $
13         * $Date: 2011-01-21 20:05:36 +0000 (vr, 21 jan 2011) $
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  <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.ui.autocomplete.html.min.js')}"></script>
47</g:if><g:else>
48  <script type="text/javascript" src="${resource(dir: 'js', file: 'jquery.ui.autocomplete.html.js')}"></script>
49  <script type="text/javascript" src="${resource(dir: 'js', file: 'ontology-chooser.js')}"></script>
50</g:else>
51 </head>
52 <body>
53
54        <g:if test="${errors}">
55                <span class="info">
56                        <span class="error">Oops!</span>
57                        <g:each in="${errors}" var="error">
58                                ${error}<br/>
59                        </g:each>
60                </span>
61        </g:if>
62        <g:elseif test="${message}">
63                <span class="info">
64                        <span class="known">Success</span>
65                        ${message}
66                </span>
67        </g:elseif>
68        <g:else>
69                <span class="info">
70                        <span class="title">Add a term</span>
71                        Use the search box below to find the term you would like to add.
72                </span>
73        </g:else>
74
75        <div id="termForm">
76        <g:form action="pages" name="wizardForm" id="wizardForm">
77                <div id="label">search term: </div>
78                <div id="term"><g:textField name="term" rel="ontology-${ontologies}" size="40" /></div>
79                <div id="button"><g:submitButton name="add" value="Add term" /></div>
80        </g:form>
81        </div>
82
83        <script type="text/javascript">
84                $(document).ready(function() {
85                // initialize the ontology chooser
86                new OntologyChooser().init({
87                            showHide: $('div#button'),
88                            spinner: "${resource(dir: 'images', file: 'spinner.gif')}"
89                    });
90                });
91        </script>
92
93 </body>
94</html>
Note: See TracBrowser for help on using the repository browser.