source: trunk/grails-app/views/simpleWizard/simpleWizard/study.gsp @ 1678

Last change on this file since 1678 was 1678, checked in by robert@…, 13 years ago

Added entity names above table editor in simple wizard and added template description to template select boxes (#378)

File size: 3.7 KB
Line 
1<html>
2<head>
3        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4        <meta name="layout" content="main" />
5        <title>Simple study wizard</title>
6       
7        <g:render template="javascripts" />
8</head>
9<body>
10        <div class="simpleWizard studypage">
11                <h1>Study</h1>
12               
13                <g:if test="${flash.error}">
14                        <div class="errormessage">
15                                ${flash.error.toString().encodeAsHTML()}
16                        </div>
17                </g:if>
18                <g:if test="${flash.message}">
19                        <div class="message">
20                                ${flash.message.toString().encodeAsHTML()}
21                        </div>
22                </g:if>         
23               
24                <span class="info">
25                        <span class="title">Define the basic properties of your study</span>
26                        Enter all the basic information of your study. Keep in mind that the more specific the information that is
27                        filled out, the more valuable the system will be.
28                </span>
29               
30                <g:if test="${flash.validationErrors}">
31                        <div class="errormessage">
32                                <g:each var="error" in="${flash.validationErrors}">
33                                        ${error.value}<br />
34                                </g:each>
35                        </div>
36                </g:if> 
37                 
38                <g:form class="simpleWizard" name="study" action="simpleWizard">
39                        <input type="hidden" name="_eventId" value="refresh" />
40                        <div class="meta">
41                                <div id="publications" class="component">
42                                        <h2>Publications</h2>
43                                        <div class="content">
44                                                <af:publicationSelectElement noForm="true" name="publication" value="${study?.publications}"/>
45                                        </div>
46                                </div>
47                                <div id="contacts" class="component">
48                                        <h2>Contacts</h2>
49                                        <div class="content">
50                                                <af:contactSelectElement name="contacts" value="${study?.persons}"/>
51                                        </div>
52                                </div>
53                                <div id="authorization" class="component">
54                                        <h2>Authorization</h2>
55                                        <div class="content">
56                                                <div class="element">
57                                                        <div class="description">Public</div>
58                                                        <div class="input"><g:checkBox name="publicstudy" value="${study?.publicstudy}"/></div>
59                                                        <div class="helpIcon"></div>
60                                                        <div class="helpContent">Public studies are visible to anonymous users, not only to the readers specified below.</div>
61                                                </div>
62                                                <div class="element">
63                                                        <div class="description">Published</div>
64                                                        <div class="input"><g:checkBox name="published" value="${study?.published}"/></div>
65                                                       
66                                                        <div class="helpIcon"></div>
67                                                        <div class="helpContent">Determines whether this study is published (accessible for the study readers and, if the study is public, for anonymous users).</div>
68                                                </div>
69                               
70                                                <af:userSelectElement name="readers" noForm="true" description="Readers" value="${study?.readers}"/>
71                                                <af:userSelectElement name="writers" noForm="true" description="Writers" value="${study?.writers}"/>
72                                        </div>
73                                </div>
74                        </div>
75                       
76                        <af:templateElement name="template" description="Template"
77                                value="${study?.template}" entity="${dbnp.studycapturing.Study}"
78                                addDummy="true" onChange="if(\$( this ).val() != '') { submitForm( 'study' ); }">
79                                Choose the type of study you would like to create.
80                                Depending on the chosen template specific fields can be filled out. If none of the templates contain all the necessary fields, a new template can be defined (based on other templates).
81                        </af:templateElement>
82               
83                        <g:if test="${study}">
84                                <g:if test="${study.template?.description}">
85                                        <div class="element">
86                                                <div class="templatedescription">
87                                                        ${study.template?.description?.encodeAsHTML()}
88                                                </div>
89                                        </div>
90                                </g:if>
91                                <af:templateElements ignore="published" entity="${study}" />
92                        </g:if>
93               
94                        <br clear="all" />
95
96                        <p class="options">
97                                <a href="#" onClick="submitForm( 'study', 'next' ); return false;" class="next">Next</a>
98                        </p>
99                       
100                </g:form>
101               
102                <af:publicationDialog name="publication" />
103                <af:userDialog name="readers" />
104                <af:userDialog name="writers" />
105        </div>
106</body>
107</html>
Note: See TracBrowser for help on using the repository browser.