source: trunk/grails-app/views/publication/create.gsp @ 1545

Last change on this file since 1545 was 1430, checked in by work@…, 13 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 4.4 KB
Line 
1
2<%@ page import="dbnp.studycapturing.Publication" %>
3<html>
4    <head>
5        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6        <meta name="layout" content="main" />
7        <g:set var="entityName" value="${message(code: 'publication.label', default: 'Publication')}" />
8        <title><g:message code="default.create.label" args="[entityName]" /></title>
9    </head>
10    <body>
11        <div class="body">
12            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
13            <g:if test="${flash.message}">
14            <div class="message">${flash.message}</div>
15            </g:if>
16            <g:hasErrors bean="${publicationInstance}">
17            <div class="errors">
18                <g:renderErrors bean="${publicationInstance}" as="list" />
19            </div>
20            </g:hasErrors>
21            <g:form action="save" method="post" >
22                <div class="dialog">
23                    <table>
24                        <tbody>
25                       
26                            <tr class="prop">
27                                <td valign="top" class="name">
28                                    <label for="title"><g:message code="publication.title.label" default="Title" /></label>
29                                </td>
30                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'title', 'errors')}">
31                                    <g:textField name="title" value="${publicationInstance?.title}" />
32                                </td>
33                            </tr>
34                           
35                            <tr class="prop">
36                                <td valign="top" class="name">
37                                    <label for="authorsList"><g:message code="publication.authorsList.label" default="Authors List" /></label>
38                                </td>
39                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'authorsList', 'errors')}">
40                                    <g:textField name="authorsList" value="${publicationInstance?.authorsList}" />
41                                </td>
42                            </tr>
43                       
44                            <tr class="prop">
45                                <td valign="top" class="name">
46                                    <label for="comments"><g:message code="publication.comments.label" default="Comments" /></label>
47                                </td>
48                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'comments', 'errors')}">
49                                    <g:textField name="comments" value="${publicationInstance?.comments}" />
50                                </td>
51                            </tr>
52                       
53                            <tr class="prop">
54                                <td valign="top" class="name">
55                                    <label for="pubMedID"><g:message code="publication.pubMedID.label" default="Pub Med ID" /></label>
56                                </td>
57                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'pubMedID', 'errors')}">
58                                    <g:textField name="pubMedID" value="${publicationInstance?.pubMedID}" />
59                                </td>
60                            </tr>
61
62                            <tr class="prop">
63                                <td valign="top" class="name">
64                                    <label for="DOI"><g:message code="publication.DOI.label" default="DOI" /></label>
65                                </td>
66                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'DOI', 'errors')}">
67                                    <g:textField name="DOI" value="${publicationInstance?.DOI}" />
68                                </td>
69                            </tr>
70
71                        </tbody>
72                    </table>
73                </div>
74                <div class="buttons">
75                   <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
76                   <span class="button"><g:link class="cancel" action="list">Cancel</g:link></span>
77                </div>
78            </g:form>
79        </div>
80    </body>
81</html>
Note: See TracBrowser for help on using the repository browser.