Skip to content

Commit 22c769f

Browse files
committed
strain status
1 parent abe50e8 commit 22c769f

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

pegr/grails-app/views/strainAdmin/_form.gsp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99

1010
<div class=" ${hasErrors(bean: strain, field: 'name', 'error')} required">
11-
<label for="name">Strain</label>
11+
<label for="name">Name</label>
1212
<g:textField name="name" value="${strain?.name}"/>
1313
(use only alphanumeric characters and "-")
1414
</div>
@@ -40,6 +40,12 @@
4040

4141
</div>
4242

43+
<div class=" ${hasErrors(bean: strain, field: 'status', 'error')} ">
44+
<label for="status">Status</label>
45+
<g:select name="status" from="${pegr.DictionaryStatus.values()}" keys="${pegr.DictionaryStatus.values()*.name()}" value="${strain?.status}" noSelection="${['':'Select...']}"/>
46+
47+
</div>
48+
4349
<script type="text/javascript">
4450
jQuery(document).ready(function($) {
4551
$('#search').multipleselect({

pegr/grails-app/views/strainAdmin/index.gsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<td>${fieldValue(bean: strain, field: "parent")}</td>
6161
<td>${fieldValue(bean: strain, field: "genotype")}</td>
6262
<td>${fieldValue(bean: strain, field: "sourceLab")}</td>
63-
<td>${strain.status?: "Not Approved"}</td>
63+
<td>${strain.status}</td>
6464
</tr>
6565
</g:each>
6666
</tbody>

pegr/grails-app/views/strainAdmin/show.gsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</li>
5454
</g:if>
5555

56-
<li>Status: ${strain?.status?: "Not Approved"}</li>
56+
<li>Status: ${strain?.status}</li>
5757
</ul>
5858

5959
<g:form action='delete' method="DELETE" useToken="true">

0 commit comments

Comments
 (0)