PageRenderTime 42ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 20ms app.codeStats 0ms

/grails-app/views/auxiliar/_form.gsp

http://github.com/jdmr/mateo
text | 37 lines | 31 code | 6 blank | 0 comment | 0 complexity | d67fafb670a71f72e745a418108b18d0 MD5 | raw file
 1<%@ page import="contabilidad.Auxiliar" %>
 2
 3
 4
 5<div class="fieldcontain ${hasErrors(bean: auxiliar, field: 'numero', 'error')} required">
 6	<label for="numero">
 7		<g:message code="auxiliar.numero.label" default="Numero" />
 8		<span class="required-indicator">*</span>
 9	</label>
10	<g:textField name="numero" maxlength="32" required="" value="${auxiliar?.numero}"/>
11</div>
12
13<div class="fieldcontain ${hasErrors(bean: auxiliar, field: 'descripcion', 'error')} required">
14	<label for="descripcion">
15		<g:message code="auxiliar.descripcion.label" default="Descripcion" />
16		<span class="required-indicator">*</span>
17	</label>
18	<g:textField name="descripcion" maxlength="128" required="" value="${auxiliar?.descripcion}"/>
19</div>
20
21<div class="fieldcontain ${hasErrors(bean: auxiliar, field: 'tags', 'error')} required">
22	<h3>
23		<g:message code="auxiliar.tags.label" default="tags" />
24	</h3>
25    <ul name="tags">
26      <g:each in="${auxiliar?.cuentas}">
27        <li>${it.descripcion}</li>
28      </g:each>
29    </ul>
30</div>
31
32<r:script>
33    $(document).ready(function() {
34        $("ul[name='tags']").tagit({select:true, tagSource: "${g.createLink(action: 'tags')}"});
35        $('#numero').focus();
36    });
37</r:script>