Browse files

Merge pull request #44 from jackelinedantas/master

Bug links
  • Loading branch information...
2 parents 975cc96 + d1426e1 commit a0088e003a354b5c436cb5a22400a76c4e2014b2 @rodrigovilar committed May 1, 2012
View
95 grails-app/views/curso/_form.gsp
@@ -1,50 +1,57 @@
-<%@ page import="alocadorhorarios.Curso" %>
-
-
-
-<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'nome', 'error')} ">
- <label for="nome">
- <g:message code="curso.nome.label" default="Nome" />
-
- </label>
- <g:textField name="nome" value="${cursoInstance?.nome}"/>
-</div>
-
-<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'coordenador', 'error')} ">
- <label for="coordenador">
- <g:message code="curso.coordenador.label" default="Coordenador" />
-
- </label>
- <g:select id="coordenador" name="coordenador.id" from="${alocadorhorarios.Professor.list()}" optionKey="id" value="${cursoInstance?.coordenador?.id}" class="many-to-one" noSelection="['null': '']"/>
-</div>
-
-<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'viceCoordenador', 'error')} ">
- <label for="viceCoordenador">
- <g:message code="curso.viceCoordenador.label" default="Vice Coordenador" />
-
- </label>
- <g:select id="viceCoordenador" name="viceCoordenador.id" from="${alocadorhorarios.Professor.list()}" optionKey="id" value="${cursoInstance?.viceCoordenador?.id}" class="many-to-one" noSelection="['null': '']"/>
-</div>
-
-<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'quantidade', 'error')}" >
- <label for="quantidade">
- <g:message code="curso.quantidade.label" default="Quantidade"/>
-
- </label>
- <g:textField type="number" name="quantidade"/>
-</div>
-
-<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'periodos', 'error')} ">
- <label for="periodos">
- <g:message code="curso.periodos.label" default="Periodos" />
-
- </label>
+
+<%@ page import="alocadorhorarios.Curso" %>
+
+
+
+<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'nome', 'error')} ">
+ <label for="nome">
+ <g:message code="curso.nome.label" default="Nome" />
+
+ </label>
+ <g:textField name="nome" value="${cursoInstance?.nome}"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'coordenador', 'error')} ">
+ <label for="coordenador">
+ <g:message code="curso.coordenador.label" default="Coordenador" />
+
+ </label>
+ <g:select id="coordenador" name="coordenador.id" from="${alocadorhorarios.Professor.list()}"
+
+optionKey="id" value="${cursoInstance?.coordenador?.id}" class="many-to-one" noSelection="['null': '']"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'viceCoordenador', 'error')} ">
+ <label for="viceCoordenador">
+ <g:message code="curso.viceCoordenador.label" default="Vice Coordenador" />
+
+ </label>
+ <g:select id="viceCoordenador" name="viceCoordenador.id" from="${alocadorhorarios.Professor.list()}"
+
+optionKey="id" value="${cursoInstance?.viceCoordenador?.id}" class="many-to-one" noSelection="['null': '']"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'quantidade', 'error')}" >
+ <label for="quantidade">
+ <g:message code="curso.quantidade.label" default="Quantidade"/>
+
+ </label>
+ <g:textField type="number" name="quantidade"/>
+</div>
+
+<g:if test="${cursoInstance?.id}">
+<div class="fieldcontain ${hasErrors(bean: cursoInstance, field: 'periodos', 'error')} ">
+ <label for="periodos">
+ <g:message code="curso.periodos.label" default="Periodos" />
+
+ </label>
<ul class="one-to-many">
<g:each in="${cursoInstance?.periodos?}" var="p">
<li><g:link controller="periodo" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
</g:each>
</ul>
-
-</div>
-
+
+</div>
+</g:if>
+
View
74 grails-app/views/disciplina/_form.gsp
@@ -0,0 +1,74 @@
+<%@ page import="alocadorhorarios.Disciplina" %>
+
+
+
+<div class="fieldcontain ${hasErrors(bean: disciplinaInstance, field: 'nome', 'error')} ">
+ <label for="nome">
+ <g:message code="disciplina.nome.label" default="Nome" />
+
+ </label>
+ <g:textField name="nome" value="${disciplinaInstance?.nome}"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: disciplinaInstance, field: 'cargaHoraria', 'error')} required">
+ <label for="cargaHoraria">
+ <g:message code="disciplina.cargaHoraria.label" default="Carga Horaria" />
+ <span class="required-indicator">*</span>
+ </label>
+ <g:field type="number" name="cargaHoraria" min="15" max="250" required="" value="${fieldValue(bean: disciplinaInstance, field: 'cargaHoraria')}"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: disciplinaInstance, field: 'credito', 'error')} required">
+ <label for="credito">
+ <g:message code="disciplina.credito.label" default="Credito" />
+ <span class="required-indicator">*</span>
+ </label>
+ <g:field type="number" name="credito" min="3" max="25" required="" value="${fieldValue(bean: disciplinaInstance, field: 'credito')}"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: disciplinaInstance, field: 'departamento', 'error')} required">
+ <label for="departamento">
+ <g:message code="disciplina.departamento.label" default="Departamento" />
+ <span class="required-indicator">*</span>
+ </label>
+ <g:select id="departamento" name="departamento.id" from="${alocadorhorarios.Departamento.list()}" optionKey="id" required="" value="${disciplinaInstance?.departamento?.id}" class="many-to-one"/>
+</div>
+
+<g:if test="${disciplinaInstance?.id}">
+<div class="fieldcontain ${hasErrors(bean: disciplinaInstance, field: 'itensGrade', 'error')} ">
+ <label for="itensGrade">
+ <g:message code="disciplina.itensGrade.label" default="Itens Grade" />
+
+ </label>
+
+<ul class="one-to-many">
+<g:each in="${disciplinaInstance?.itensGrade?}" var="i">
+ <li><g:link controller="itemGrade" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+</g:each>
+<li class="add">
+<g:link controller="itemGrade" action="create" params="['disciplina.id': disciplinaInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'itemGrade.label', default: 'ItemGrade')])}</g:link>
+</li>
+</ul>
+
+</div>
+</g:if>
+
+
+<g:if test="${disciplinaInstance?.id}">
+<div class="fieldcontain ${hasErrors(bean: disciplinaInstance, field: 'turmas', 'error')} ">
+ <label for="turmas">
+ <g:message code="disciplina.turmas.label" default="Turmas" />
+
+ </label>
+
+<ul class="one-to-many">
+<g:each in="${disciplinaInstance?.turmas?}" var="t">
+ <li><g:link controller="turma" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li>
+</g:each>
+<li class="add">
+<g:link controller="turma" action="create" params="['disciplina.id': disciplinaInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'turma.label', default: 'Turma')])}</g:link>
+</li>
+</ul>
+
+</div>
+</g:if>
View
39 grails-app/views/disciplina/create.gsp
@@ -0,0 +1,39 @@
+<%@ page import="alocadorhorarios.Disciplina" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'disciplina.label', default: 'Disciplina')}" />
+ <title><g:message code="default.create.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#create-disciplina" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="create-disciplina" class="content scaffold-create" role="main">
+ <h1><g:message code="default.create.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <g:hasErrors bean="${disciplinaInstance}">
+ <ul class="errors" role="alert">
+ <g:eachError bean="${disciplinaInstance}" var="error">
+ <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
+ </g:eachError>
+ </ul>
+ </g:hasErrors>
+ <g:form action="save" >
+ <fieldset class="form">
+ <g:render template="form"/>
+ </fieldset>
+ <fieldset class="buttons">
+ <g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
43 grails-app/views/disciplina/edit.gsp
@@ -0,0 +1,43 @@
+<%@ page import="alocadorhorarios.Disciplina" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'disciplina.label', default: 'Disciplina')}" />
+ <title><g:message code="default.edit.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#edit-disciplina" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="edit-disciplina" class="content scaffold-edit" role="main">
+ <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <g:hasErrors bean="${disciplinaInstance}">
+ <ul class="errors" role="alert">
+ <g:eachError bean="${disciplinaInstance}" var="error">
+ <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
+ </g:eachError>
+ </ul>
+ </g:hasErrors>
+ <g:form method="post" >
+ <g:hiddenField name="id" value="${disciplinaInstance?.id}" />
+ <g:hiddenField name="version" value="${disciplinaInstance?.version}" />
+ <fieldset class="form">
+ <g:render template="form"/>
+ </fieldset>
+ <fieldset class="buttons">
+ <g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />
+ <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
58 grails-app/views/disciplina/list.gsp
@@ -0,0 +1,58 @@
+
+<%@ page import="alocadorhorarios.Disciplina" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'disciplina.label', default: 'Disciplina')}" />
+ <title><g:message code="default.list.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#list-disciplina" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="list-disciplina" class="content scaffold-list" role="main">
+ <h1><g:message code="default.list.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <table>
+ <thead>
+ <tr>
+
+ <g:sortableColumn property="nome" title="${message(code: 'disciplina.nome.label', default: 'Nome')}" />
+
+ <g:sortableColumn property="cargaHoraria" title="${message(code: 'disciplina.cargaHoraria.label', default: 'Carga Horaria')}" />
+
+ <g:sortableColumn property="credito" title="${message(code: 'disciplina.credito.label', default: 'Credito')}" />
+
+ <th><g:message code="disciplina.departamento.label" default="Departamento" /></th>
+
+ </tr>
+ </thead>
+ <tbody>
+ <g:each in="${disciplinaInstanceList}" status="i" var="disciplinaInstance">
+ <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
+
+ <td><g:link action="show" id="${disciplinaInstance.id}">${fieldValue(bean: disciplinaInstance, field: "nome")}</g:link></td>
+
+ <td>${fieldValue(bean: disciplinaInstance, field: "cargaHoraria")}</td>
+
+ <td>${fieldValue(bean: disciplinaInstance, field: "credito")}</td>
+
+ <td>${fieldValue(bean: disciplinaInstance, field: "departamento")}</td>
+
+ </tr>
+ </g:each>
+ </tbody>
+ </table>
+ <div class="pagination">
+ <g:paginate total="${disciplinaInstanceTotal}" />
+ </div>
+ </div>
+ </body>
+</html>
View
94 grails-app/views/disciplina/show.gsp
@@ -0,0 +1,94 @@
+
+<%@ page import="alocadorhorarios.Disciplina" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'disciplina.label', default: 'Disciplina')}" />
+ <title><g:message code="default.show.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#show-disciplina" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="show-disciplina" class="content scaffold-show" role="main">
+ <h1><g:message code="default.show.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <ol class="property-list disciplina">
+
+ <g:if test="${disciplinaInstance?.nome}">
+ <li class="fieldcontain">
+ <span id="nome-label" class="property-label"><g:message code="disciplina.nome.label" default="Nome" /></span>
+
+ <span class="property-value" aria-labelledby="nome-label"><g:fieldValue bean="${disciplinaInstance}" field="nome"/></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${disciplinaInstance?.cargaHoraria}">
+ <li class="fieldcontain">
+ <span id="cargaHoraria-label" class="property-label"><g:message code="disciplina.cargaHoraria.label" default="Carga Horaria" /></span>
+
+ <span class="property-value" aria-labelledby="cargaHoraria-label"><g:fieldValue bean="${disciplinaInstance}" field="cargaHoraria"/></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${disciplinaInstance?.credito}">
+ <li class="fieldcontain">
+ <span id="credito-label" class="property-label"><g:message code="disciplina.credito.label" default="Credito" /></span>
+
+ <span class="property-value" aria-labelledby="credito-label"><g:fieldValue bean="${disciplinaInstance}" field="credito"/></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${disciplinaInstance?.departamento}">
+ <li class="fieldcontain">
+ <span id="departamento-label" class="property-label"><g:message code="disciplina.departamento.label" default="Departamento" /></span>
+
+ <span class="property-value" aria-labelledby="departamento-label"><g:link controller="departamento" action="show" id="${disciplinaInstance?.departamento?.id}">${disciplinaInstance?.departamento?.encodeAsHTML()}</g:link></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${disciplinaInstance?.itensGrade}">
+ <li class="fieldcontain">
+ <span id="itensGrade-label" class="property-label"><g:message code="disciplina.itensGrade.label" default="Itens Grade" /></span>
+
+ <g:each in="${disciplinaInstance.itensGrade}" var="i">
+ <span class="property-value" aria-labelledby="itensGrade-label"><g:link controller="itemGrade" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></span>
+ </g:each>
+
+ </li>
+ </g:if>
+
+ <g:if test="${disciplinaInstance?.turmas}">
+ <li class="fieldcontain">
+ <span id="turmas-label" class="property-label"><g:message code="disciplina.turmas.label" default="Turmas" /></span>
+
+ <g:each in="${disciplinaInstance.turmas}" var="t">
+ <span class="property-value" aria-labelledby="turmas-label"><g:link controller="turma" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></span>
+ </g:each>
+
+ </li>
+ </g:if>
+
+ </ol>
+ <g:form>
+ <fieldset class="buttons">
+ <g:hiddenField name="id" value="${disciplinaInstance?.id}" />
+ <g:link class="edit" action="edit" id="${disciplinaInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
+ <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
47 grails-app/views/periodo/_form.gsp
@@ -0,0 +1,47 @@
+
+<%@ page import="alocadorhorarios.Periodo" %>
+
+
+
+<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'numero', 'error')} required">
+ <label for="numero">
+ <g:message code="periodo.numero.label" default="Numero" />
+ <span class="required-indicator">*</span>
+ </label>
+ <g:field type="number" name="numero" min="1" max="15" required="" value="${fieldValue(bean:
+
+periodoInstance, field: 'numero')}"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'curso', 'error')} required">
+ <label for="curso">
+ <g:message code="periodo.curso.label" default="Curso" />
+ <span class="required-indicator">*</span>
+ </label>
+ <g:select id="curso" name="curso.id" from="${alocadorhorarios.Curso.list()}" optionKey="id" required=""
+
+value="${periodoInstance?.curso?.id}" class="many-to-one"/>
+</div>
+
+
+
+<g:if test="${periodoInstance?.id}">
+<div class="fieldcontain ${hasErrors(bean: periodoInstance, field: 'itensGrade', 'error')} ">
+ <label for="itensGrade">
+ <g:message code="periodo.itensGrade.label" default="Itens Grade" />
+
+ </label>
+
+<ul class="one-to-many">
+<g:each in="${periodoInstance?.itensGrade?}" var="i">
+ <li><g:link controller="itemGrade" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+</g:each>
+<li class="add">
+<g:link controller="itemGrade" action="create" params="['periodo.id': periodoInstance?.id]">${message(code:
+
+'default.add.label', args: [message(code: 'itemGrade.label', default: 'ItemGrade')])}</g:link>
+</li>
+</ul>
+
+</div>
+</g:if>
View
39 grails-app/views/periodo/create.gsp
@@ -0,0 +1,39 @@
+<%@ page import="alocadorhorarios.Periodo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodo.label', default: 'Periodo')}" />
+ <title><g:message code="default.create.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#create-periodo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="create-periodo" class="content scaffold-create" role="main">
+ <h1><g:message code="default.create.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <g:hasErrors bean="${periodoInstance}">
+ <ul class="errors" role="alert">
+ <g:eachError bean="${periodoInstance}" var="error">
+ <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
+ </g:eachError>
+ </ul>
+ </g:hasErrors>
+ <g:form action="save" >
+ <fieldset class="form">
+ <g:render template="form"/>
+ </fieldset>
+ <fieldset class="buttons">
+ <g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
43 grails-app/views/periodo/edit.gsp
@@ -0,0 +1,43 @@
+<%@ page import="alocadorhorarios.Periodo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodo.label', default: 'Periodo')}" />
+ <title><g:message code="default.edit.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#edit-periodo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="edit-periodo" class="content scaffold-edit" role="main">
+ <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <g:hasErrors bean="${periodoInstance}">
+ <ul class="errors" role="alert">
+ <g:eachError bean="${periodoInstance}" var="error">
+ <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
+ </g:eachError>
+ </ul>
+ </g:hasErrors>
+ <g:form method="post" >
+ <g:hiddenField name="id" value="${periodoInstance?.id}" />
+ <g:hiddenField name="version" value="${periodoInstance?.version}" />
+ <fieldset class="form">
+ <g:render template="form"/>
+ </fieldset>
+ <fieldset class="buttons">
+ <g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />
+ <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
50 grails-app/views/periodo/list.gsp
@@ -0,0 +1,50 @@
+
+<%@ page import="alocadorhorarios.Periodo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodo.label', default: 'Periodo')}" />
+ <title><g:message code="default.list.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#list-periodo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="list-periodo" class="content scaffold-list" role="main">
+ <h1><g:message code="default.list.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <table>
+ <thead>
+ <tr>
+
+ <g:sortableColumn property="numero" title="${message(code: 'periodo.numero.label', default: 'Numero')}" />
+
+ <th><g:message code="periodo.curso.label" default="Curso" /></th>
+
+ </tr>
+ </thead>
+ <tbody>
+ <g:each in="${periodoInstanceList}" status="i" var="periodoInstance">
+ <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
+
+ <td><g:link action="show" id="${periodoInstance.id}">${fieldValue(bean: periodoInstance, field: "numero")}</g:link></td>
+
+ <td>${fieldValue(bean: periodoInstance, field: "curso")}</td>
+
+ </tr>
+ </g:each>
+ </tbody>
+ </table>
+ <div class="pagination">
+ <g:paginate total="${periodoInstanceTotal}" />
+ </div>
+ </div>
+ </body>
+</html>
View
65 grails-app/views/periodo/show.gsp
@@ -0,0 +1,65 @@
+
+<%@ page import="alocadorhorarios.Periodo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodo.label', default: 'Periodo')}" />
+ <title><g:message code="default.show.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#show-periodo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="show-periodo" class="content scaffold-show" role="main">
+ <h1><g:message code="default.show.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <ol class="property-list periodo">
+
+ <g:if test="${periodoInstance?.numero}">
+ <li class="fieldcontain">
+ <span id="numero-label" class="property-label"><g:message code="periodo.numero.label" default="Numero" /></span>
+
+ <span class="property-value" aria-labelledby="numero-label"><g:fieldValue bean="${periodoInstance}" field="numero"/></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${periodoInstance?.curso}">
+ <li class="fieldcontain">
+ <span id="curso-label" class="property-label"><g:message code="periodo.curso.label" default="Curso" /></span>
+
+ <span class="property-value" aria-labelledby="curso-label"><g:link controller="curso" action="show" id="${periodoInstance?.curso?.id}">${periodoInstance?.curso?.encodeAsHTML()}</g:link></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${periodoInstance?.itensGrade}">
+ <li class="fieldcontain">
+ <span id="itensGrade-label" class="property-label"><g:message code="periodo.itensGrade.label" default="Itens Grade" /></span>
+
+ <g:each in="${periodoInstance.itensGrade}" var="i">
+ <span class="property-value" aria-labelledby="itensGrade-label"><g:link controller="itemGrade" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></span>
+ </g:each>
+
+ </li>
+ </g:if>
+
+ </ol>
+ <g:form>
+ <fieldset class="buttons">
+ <g:hiddenField name="id" value="${periodoInstance?.id}" />
+ <g:link class="edit" action="edit" id="${periodoInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
+ <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
40 grails-app/views/periodoLetivo/_form.gsp
@@ -0,0 +1,40 @@
+<%@ page import="alocadorhorarios.PeriodoLetivo" %>
+
+
+
+<div class="fieldcontain ${hasErrors(bean: periodoLetivoInstance, field: 'ano', 'error')} required">
+ <label for="ano">
+ <g:message code="periodoLetivo.ano.label" default="Ano" />
+ <span class="required-indicator">*</span>
+ </label>
+ <g:field type="number" name="ano" required="" value="${fieldValue(bean: periodoLetivoInstance, field: 'ano')}"/>
+</div>
+
+<div class="fieldcontain ${hasErrors(bean: periodoLetivoInstance, field: 'numero', 'error')} required">
+ <label for="numero">
+ <g:message code="periodoLetivo.numero.label" default="Numero" />
+ <span class="required-indicator">*</span>
+ </label>
+ <g:field type="number" name="numero" min="1" max="2" required="" value="${fieldValue(bean: periodoLetivoInstance, field: 'numero')}"/>
+</div>
+
+
+<g:if test="${periodoLetivoInstance?.id}">
+<div class="fieldcontain ${hasErrors(bean: periodoLetivoInstance, field: 'turmas', 'error')} ">
+ <label for="turmas">
+ <g:message code="periodoLetivo.turmas.label" default="Turmas" />
+
+ </label>
+
+<ul class="one-to-many">
+<g:each in="${periodoLetivoInstance?.turmas?}" var="t">
+ <li><g:link controller="turma" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></li>
+</g:each>
+<li class="add">
+<g:link controller="turma" action="create" params="['periodoLetivo.id': periodoLetivoInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'turma.label', default: 'Turma')])}</g:link>
+</li>
+</ul>
+
+</div>
+</g:if>
+
View
39 grails-app/views/periodoLetivo/create.gsp
@@ -0,0 +1,39 @@
+<%@ page import="alocadorhorarios.PeriodoLetivo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodoLetivo.label', default: 'PeriodoLetivo')}" />
+ <title><g:message code="default.create.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#create-periodoLetivo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="create-periodoLetivo" class="content scaffold-create" role="main">
+ <h1><g:message code="default.create.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <g:hasErrors bean="${periodoLetivoInstance}">
+ <ul class="errors" role="alert">
+ <g:eachError bean="${periodoLetivoInstance}" var="error">
+ <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
+ </g:eachError>
+ </ul>
+ </g:hasErrors>
+ <g:form action="save" >
+ <fieldset class="form">
+ <g:render template="form"/>
+ </fieldset>
+ <fieldset class="buttons">
+ <g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
43 grails-app/views/periodoLetivo/edit.gsp
@@ -0,0 +1,43 @@
+<%@ page import="alocadorhorarios.PeriodoLetivo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodoLetivo.label', default: 'PeriodoLetivo')}" />
+ <title><g:message code="default.edit.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#edit-periodoLetivo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="edit-periodoLetivo" class="content scaffold-edit" role="main">
+ <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <g:hasErrors bean="${periodoLetivoInstance}">
+ <ul class="errors" role="alert">
+ <g:eachError bean="${periodoLetivoInstance}" var="error">
+ <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
+ </g:eachError>
+ </ul>
+ </g:hasErrors>
+ <g:form method="post" >
+ <g:hiddenField name="id" value="${periodoLetivoInstance?.id}" />
+ <g:hiddenField name="version" value="${periodoLetivoInstance?.version}" />
+ <fieldset class="form">
+ <g:render template="form"/>
+ </fieldset>
+ <fieldset class="buttons">
+ <g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" />
+ <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" formnovalidate="" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>
View
50 grails-app/views/periodoLetivo/list.gsp
@@ -0,0 +1,50 @@
+
+<%@ page import="alocadorhorarios.PeriodoLetivo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodoLetivo.label', default: 'PeriodoLetivo')}" />
+ <title><g:message code="default.list.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#list-periodoLetivo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="list-periodoLetivo" class="content scaffold-list" role="main">
+ <h1><g:message code="default.list.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <table>
+ <thead>
+ <tr>
+
+ <g:sortableColumn property="ano" title="${message(code: 'periodoLetivo.ano.label', default: 'Ano')}" />
+
+ <g:sortableColumn property="numero" title="${message(code: 'periodoLetivo.numero.label', default: 'Numero')}" />
+
+ </tr>
+ </thead>
+ <tbody>
+ <g:each in="${periodoLetivoInstanceList}" status="i" var="periodoLetivoInstance">
+ <tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
+
+ <td><g:link action="show" id="${periodoLetivoInstance.id}">${fieldValue(bean: periodoLetivoInstance, field: "ano")}</g:link></td>
+
+ <td>${fieldValue(bean: periodoLetivoInstance, field: "numero")}</td>
+
+ </tr>
+ </g:each>
+ </tbody>
+ </table>
+ <div class="pagination">
+ <g:paginate total="${periodoLetivoInstanceTotal}" />
+ </div>
+ </div>
+ </body>
+</html>
View
65 grails-app/views/periodoLetivo/show.gsp
@@ -0,0 +1,65 @@
+
+<%@ page import="alocadorhorarios.PeriodoLetivo" %>
+<!doctype html>
+<html>
+ <head>
+ <meta name="layout" content="main">
+ <g:set var="entityName" value="${message(code: 'periodoLetivo.label', default: 'PeriodoLetivo')}" />
+ <title><g:message code="default.show.label" args="[entityName]" /></title>
+ </head>
+ <body>
+ <a href="#show-periodoLetivo" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
+ <div class="nav" role="navigation">
+ <ul>
+ <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
+ <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
+ <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
+ </ul>
+ </div>
+ <div id="show-periodoLetivo" class="content scaffold-show" role="main">
+ <h1><g:message code="default.show.label" args="[entityName]" /></h1>
+ <g:if test="${flash.message}">
+ <div class="message" role="status">${flash.message}</div>
+ </g:if>
+ <ol class="property-list periodoLetivo">
+
+ <g:if test="${periodoLetivoInstance?.ano}">
+ <li class="fieldcontain">
+ <span id="ano-label" class="property-label"><g:message code="periodoLetivo.ano.label" default="Ano" /></span>
+
+ <span class="property-value" aria-labelledby="ano-label"><g:fieldValue bean="${periodoLetivoInstance}" field="ano"/></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${periodoLetivoInstance?.numero}">
+ <li class="fieldcontain">
+ <span id="numero-label" class="property-label"><g:message code="periodoLetivo.numero.label" default="Numero" /></span>
+
+ <span class="property-value" aria-labelledby="numero-label"><g:fieldValue bean="${periodoLetivoInstance}" field="numero"/></span>
+
+ </li>
+ </g:if>
+
+ <g:if test="${periodoLetivoInstance?.turmas}">
+ <li class="fieldcontain">
+ <span id="turmas-label" class="property-label"><g:message code="periodoLetivo.turmas.label" default="Turmas" /></span>
+
+ <g:each in="${periodoLetivoInstance.turmas}" var="t">
+ <span class="property-value" aria-labelledby="turmas-label"><g:link controller="turma" action="show" id="${t.id}">${t?.encodeAsHTML()}</g:link></span>
+ </g:each>
+
+ </li>
+ </g:if>
+
+ </ol>
+ <g:form>
+ <fieldset class="buttons">
+ <g:hiddenField name="id" value="${periodoLetivoInstance?.id}" />
+ <g:link class="edit" action="edit" id="${periodoLetivoInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
+ <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
+ </fieldset>
+ </g:form>
+ </div>
+ </body>
+</html>

0 comments on commit a0088e0

Please sign in to comment.