source: trunk/grails-app/views/publication/edit.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.5 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.edit.label" args="[entityName]" /></title>
9    </head>
10    <body>
11        <div class="body">
12            <h1><g:message code="default.edit.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 method="post" >
22                <g:hiddenField name="id" value="${publicationInstance?.id}" />
23                <g:hiddenField name="version" value="${publicationInstance?.version}" />
24                <div class="dialog">
25                    <table>
26                        <tbody>
27
28                            <tr class="prop">
29                                <td valign="top" class="name">
30                                  <label for="title"><g:message code="publication.title.label" default="Title" /></label>
31                                </td>
32                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'title', 'errors')}">
33                                    <g:textField name="title" value="${publicationInstance?.title}" />
34                                </td>
35                            </tr>
36
37                            <tr class="prop">
38                                <td valign="top" class="name">
39                                  <label for="authorsList"><g:message code="publication.authorsList.label" default="Authors List" /></label>
40                                </td>
41                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'authorsList', 'errors')}">
42                                    <g:textField name="authorsList" value="${publicationInstance?.authorsList}" />
43                                </td>
44                            </tr>
45                       
46                            <tr class="prop">
47                                <td valign="top" class="name">
48                                  <label for="comments"><g:message code="publication.comments.label" default="Comments" /></label>
49                                </td>
50                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'comments', 'errors')}">
51                                    <g:textField name="comments" value="${publicationInstance?.comments}" />
52                                </td>
53                            </tr>
54
55                            <tr class="prop">
56                                <td valign="top" class="name">
57                                  <label for="pubMedID"><g:message code="publication.pubMedID.label" default="Pub Med ID" /></label>
58                                </td>
59                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'pubMedID', 'errors')}">
60                                    <g:textField name="pubMedID" value="${publicationInstance?.pubMedID}" />
61                                </td>
62                            </tr>
63
64                            <tr class="prop">
65                                <td valign="top" class="name">
66                                  <label for="DOI"><g:message code="publication.DOI.label" default="DOI" /></label>
67                                </td>
68                                <td valign="top" class="value ${hasErrors(bean: publicationInstance, field: 'DOI', 'errors')}">
69                                    <g:textField name="DOI" value="${publicationInstance?.DOI}" />
70                                </td>
71                            </tr>
72
73                        </tbody>
74                    </table>
75                </div>
76                <div class="buttons">
77                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
78                    <span class="button"><g:actionSubmit class="cancel" action="show" value="Cancel" /></span>
79                </div>
80            </g:form>
81        </div>
82    </body>
83</html>
Note: See TracBrowser for help on using the repository browser.