|
30 | 30 | <label for="cellLine"><g:message code="cellLineData.cellLine.label" default="Cell Line" /></label> |
31 | 31 | </td> |
32 | 32 | <td valign="top" class="value ${hasErrors(bean: cellLineDataInstance, field: 'cellLine', 'errors')}"> |
33 | | - <g:select name="cellLine.id" from="${org.openlab.genetracker.CellLine.list(sort:'label')}" optionKey="id" value="${cellLineDataInstance?.cellLine?.id}" /> |
| 33 | + <g:select class="select2" name="cellLine.id" from="${org.openlab.genetracker.CellLine.list(sort:'label')}" optionKey="id" value="${cellLineDataInstance?.cellLine?.id}" /> |
34 | 34 | </td> |
35 | 35 | </tr> |
36 | 36 |
|
|
39 | 39 | <label for="acceptor"><g:message code="cellLineData.acceptor.label" default="Acceptor" /></label> |
40 | 40 | </td> |
41 | 41 | <td valign="top" class="value ${hasErrors(bean: cellLineDataInstance, field: 'acceptor', 'errors')}"> |
42 | | - <g:select name="acceptor.id" from="${org.openlab.genetracker.vector.Acceptor.list(sort:'label')}" optionKey="id" noSelection="['':'']" value="${cellLineDataInstance?.acceptor?.id}" /> |
| 42 | + <g:select class="select2" name="acceptor.id" from="${org.openlab.genetracker.vector.Acceptor.list(sort:'label')}" optionKey="id" noSelection="['':'']" value="${cellLineDataInstance?.acceptor?.id}" /> |
43 | 43 | </td> |
44 | 44 | </tr> |
45 | 45 |
|
|
53 | 53 | ${cellLineDataInstance.firstRecombinant} |
54 | 54 | </g:if> |
55 | 55 | <g:else> |
56 | | - <g:select noSelection="['':'']" onChange="${remoteFunction(action: 'updateFirstVector', update: 'firstVectorSpan', params:'\'firstGene=\'+this.value')}" name="firstRecombinantGene.id" from="${org.openlab.genetracker.Gene.list(sort:'name')}" optionKey="id" /> |
| 56 | + <g:select class="select2" noSelection="['':'']" onChange="${remoteFunction(action: 'updateFirstVector', update: 'firstVectorSpan', params:'\'firstGene=\'+this.value')}" name="firstRecombinantGene.id" from="${org.openlab.genetracker.Gene.list(sort:'name')}" optionKey="id" /> |
57 | 57 | <span id="firstVectorSpan">${cellLineDataInstance?.firstRecombinant?.vector?:"Select a gene"}</span> |
58 | 58 | </g:else> |
59 | 59 | </td> |
|
69 | 69 | ${cellLineDataInstance.secondRecombinant} |
70 | 70 | </g:if> |
71 | 71 | <g:else> |
72 | | - <g:select noSelection="['':'']" onChange="${remoteFunction(action: 'updateSecondVector', update: 'secondVectorSpan', params:'\'secondGene=\'+this.value')}" name="firstRecombinantGene.id" from="${org.openlab.genetracker.Gene.list(sort:'name')}" optionKey="id" value="${cellLineDataInstance?.secondRecombinant?.gene?.id}" /> |
| 72 | + <g:select class="select2" noSelection="['':'']" onChange="${remoteFunction(action: 'updateSecondVector', update: 'secondVectorSpan', params:'\'secondGene=\'+this.value')}" name="firstRecombinantGene.id" from="${org.openlab.genetracker.Gene.list(sort:'name')}" optionKey="id" value="${cellLineDataInstance?.secondRecombinant?.gene?.id}" /> |
73 | 73 | <span id="secondVectorSpan">${cellLineDataInstance?.secondRecombinant?.vector?:"Select a gene"}</span> |
74 | 74 | </g:else> |
75 | 75 | </td> |
|
80 | 80 | <label for="cultureMedia"><g:message code="cellLineData.cultureMedia.label" default="Culture Media" /></label> |
81 | 81 | </td> |
82 | 82 | <td valign="top" class="value ${hasErrors(bean: cellLineDataInstance, field: 'cultureMedia', 'errors')}"> |
83 | | - <g:select name="cultureMedia.id" from="${org.openlab.genetracker.CultureMedia.list(sort:'label')}" optionKey="id" value="${cellLineDataInstance?.cultureMedia?.id}" noSelection="['null': '']" /> |
| 83 | + <g:select class="select2" name="cultureMedia.id" from="${org.openlab.genetracker.CultureMedia.list(sort:'label')}" optionKey="id" value="${cellLineDataInstance?.cultureMedia?.id}" noSelection="['null': '']" /> |
84 | 84 | </td> |
85 | 85 | </tr> |
86 | 86 |
|
|
0 commit comments