Permalink
Browse files

First part of navigation added and installed plugins ui and db-util

  • Loading branch information...
jettro committed Dec 19, 2009
1 parent ed610ea commit 71f51adb2e35730bccbf97e83032d0d44b9e14d0
Showing 442 changed files with 285,279 additions and 16 deletions.
@@ -1,20 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
+ <component name="FacetManager">
+ <facet type="web" name="GrailsWeb">
+ <configuration>
+ <webroots>
+ <root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/navigation-1.1/web-app" relative="/" />
+ <root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/db-util-0.4/web-app" relative="/" />
+ <root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/grails-ui-1.2-SNAPSHOT/web-app" relative="/" />
+ <root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/yui-2.7.0.1/web-app" relative="/" />
+ <root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/bubbling-2.1.1/web-app" relative="/" />
+ </webroots>
+ <sourceRoots />
+ </configuration>
+ </facet>
+ </component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
+ <content url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/bubbling-2.1.1">
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/bubbling-2.1.1/src/groovy" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/bubbling-2.1.1/grails-app/taglib" isTestSource="false" />
+ </content>
+ <content url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/db-util-0.4">
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/db-util-0.4/grails-app/controllers" isTestSource="false" />
+ </content>
+ <content url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/grails-ui-1.2-SNAPSHOT">
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/grails-ui-1.2-SNAPSHOT/src/groovy" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/grails-ui-1.2-SNAPSHOT/grails-app/services" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/grails-ui-1.2-SNAPSHOT/grails-app/taglib" isTestSource="false" />
+ </content>
+ <content url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/navigation-1.1">
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/navigation-1.1/grails-app/services" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/navigation-1.1/grails-app/taglib" isTestSource="false" />
+ </content>
<content url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/tomcat-1.2.0.RC2">
<sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/tomcat-1.2.0.RC2/src/groovy" isTestSource="false" />
</content>
+ <content url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/yui-2.7.0.1">
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/yui-2.7.0.1/src/groovy" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/yui-2.7.0.1/grails-app/taglib" isTestSource="false" />
+ </content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="grails-1.2.0.RC2" level="application" />
<orderEntry type="module-library" exported="">
<library name="Grails User Library">
<CLASSES>
<root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/tomcat-1.2.0.RC2/lib" />
+ <root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/db-util-0.4/lib" />
+ <root url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/grails-ui-1.2-SNAPSHOT/lib" />
</CLASSES>
<JAVADOC />
<SOURCES />
+ <jarDirectory url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/db-util-0.4/lib" recursive="false" />
+ <jarDirectory url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/grails-ui-1.2-SNAPSHOT/lib" recursive="false" />
<jarDirectory url="file://$MODULE_DIR$/../../.grails/1.2.0.RC2/projects/MyScheduling/plugins/tomcat-1.2.0.RC2/lib" recursive="false" />
</library>
</orderEntry>
View
@@ -1,8 +1,13 @@
#Grails Metadata file
-#Thu Dec 17 20:36:11 CET 2009
+#Sat Dec 19 17:14:16 CET 2009
app.grails.version=1.2.0.RC2
app.name=MyScheduling
app.servlet.version=2.4
app.version=0.1
+plugins.bubbling=2.1.1
+plugins.db-util=0.4
+plugins.grails-ui=1.2-SNAPSHOT
plugins.hibernate=1.2.0.RC2
+plugins.navigation=1.1
plugins.tomcat=1.2.0.RC2
+plugins.yui=2.7.0.1
@@ -1,4 +1,5 @@
import nl.gridshore.scheduling.Person
+import nl.gridshore.scheduling.Project
class BootStrap {
@@ -11,6 +12,18 @@ class BootStrap {
allard.save()
def bram = new Person(name:'Bram',partTimeFactor:0.8)
bram.save()
+
+ def cqrs4j = new Project(name:'CQRS4j')
+ cqrs4j.save()
+ def myscheduling = new Project(name:'MyScheduling')
+ myscheduling.save()
+ def newsfeed = new Project(name:'news-feed')
+ newsfeed.save()
+
+ jettro.addToProjects myscheduling
+ jettro.addToProjects newsfeed
+ jettro.addToProjects cqrs4j
+ allard.addToProjects cqrs4j
}
def destroy = {
}
@@ -0,0 +1,9 @@
+package nl.gridshore.scheduling
+
+class HomeController {
+ static navigation = [group:'tabs',order:10]
+
+ def index = {
+
+ }
+}
@@ -3,4 +3,13 @@ package nl.gridshore.scheduling
class PersonController {
def scaffold = true
+
+ static navigation = [
+ group:'tabs',
+ order:150,
+ subItems:[
+ [group:'tabs',action:'create']
+ ]
+ ]
+
}
@@ -1,6 +1,14 @@
package nl.gridshore.scheduling
class ProjectController {
+ static navigation = [
+ group:'tabs',
+ order:100,
+ title:'project',
+ subItems:[
+ [group:'tabs',action:'create',title:'create']
+ ]
+ ]
def scaffold = true
}
@@ -1,6 +1,14 @@
package nl.gridshore.scheduling
class UserController {
+ static navigation = [
+ group:'tabs',
+ order:200,
+ title:'user',
+ subItems:[
+ [group:'tabs',action:'create',title:'create']
+ ]
+ ]
def scaffold = true
}
@@ -10,4 +10,8 @@ class Person {
name (blank:false, minSize:2, maxSize:25)
partTimeFactor(min:0f,max:1f)
}
+
+ String toString() {
+ return name
+ }
}
@@ -2,8 +2,12 @@ package nl.gridshore.scheduling
class Project {
String name
-
+
static constraints = {
name(blank:false, maxSize:100, minSize:3)
}
+
+ String toString() {
+ return name
+ }
}
@@ -0,0 +1,11 @@
+package nl.gridshore.scheduling
+
+class ScheduleItem {
+ int weekNr
+ int nrHours
+ Project project
+ Person person
+
+ static constraints = {
+ }
+}
@@ -7,4 +7,9 @@ class User {
static constraints = {
}
+
+ String toString() {
+ return username
+ }
+
}
@@ -53,3 +53,11 @@ typeMismatch.java.lang.Long=Property {0} must be a valid number
typeMismatch.java.lang.Short=Property {0} must be a valid number
typeMismatch.java.math.BigDecimal=Property {0} must be a valid number
typeMismatch.java.math.BigInteger=Property {0} must be a valid number
+
+#navigation labels
+navigation.tabs.person=Person
+subnavigation.tabs.person.create=New Person
+navigation.tabs.user=User
+subnavigation.tabs.user.create=New User
+navigation.tabs.project=Project
+subnavigation.tabs.project.create=New Project
@@ -0,0 +1,10 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<html>
+ <head>
+ <title>Home page</title>
+ <meta name="layout" content="main"/>
+ </head>
+ <body>
+ Place your content here
+ </body>
+</html>
@@ -1,16 +1,21 @@
<html>
- <head>
- <title><g:layoutTitle default="Grails" /></title>
- <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
- <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
- <g:layoutHead />
- <g:javascript library="application" />
- </head>
- <body>
- <div id="spinner" class="spinner" style="display:none;">
- <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
- </div>
- <div id="grailsLogo" class="logo"><a href="http://grails.org"><img src="${resource(dir:'images',file:'grails_logo.png')}" alt="Grails" border="0" /></a></div>
- <g:layoutBody />
- </body>
+<head>
+ <title><g:layoutTitle default="Grails"/></title>
+ <link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}"/>
+ <link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon"/>
+ <g:layoutHead/>
+ <nav:resources/>
+ <g:javascript library="application"/>
+</head>
+<body>
+<div id="spinner" class="spinner" style="display:none;">
+ <img src="${resource(dir: 'images', file: 'spinner.gif')}" alt="Spinner"/>
+</div>
+<div id="grailsLogo" class="logo"><a href="http://grails.org"><img src="${resource(dir: 'images', file: 'grails_logo.png')}" alt="Grails" border="0"/></a></div>
+<div id="menu">
+ <nav:render group="tabs"/>
+ <nav:renderSubItems group="tabs"/>
+</div>
+<g:layoutBody/>
+</body>
</html>
@@ -0,0 +1,17 @@
+package nl.gridshore.scheduling
+
+import grails.test.*
+
+class HomeControllerTests extends ControllerUnitTestCase {
+ protected void setUp() {
+ super.setUp()
+ }
+
+ protected void tearDown() {
+ super.tearDown()
+ }
+
+ void testSomething() {
+
+ }
+}
@@ -0,0 +1,17 @@
+package nl.gridshore.scheduling
+
+import grails.test.*
+
+class ScheduleItemTests extends GrailsUnitTestCase {
+ protected void setUp() {
+ super.setUp()
+ }
+
+ protected void tearDown() {
+ super.tearDown()
+ }
+
+ void testSomething() {
+
+ }
+}
@@ -0,0 +1,17 @@
+package nl.gridshore.scheduling.nl.gridshore.schedulig
+
+import grails.test.*
+
+class HomeControllerTests extends ControllerUnitTestCase {
+ protected void setUp() {
+ super.setUp()
+ }
+
+ protected void tearDown() {
+ super.tearDown()
+ }
+
+ void testSomething() {
+
+ }
+}
@@ -0,0 +1,5 @@
+<?php
+$result = array("_MESSAGE" => 'Message',
+ "_YES" => 'Yes',
+ "_NO" => 'No');
+?>
@@ -0,0 +1,5 @@
+<?php
+$result = array("_MESSAGE" => 'Mensaje',
+ "_YES" => 'Si',
+ "_NO" => 'No');
+?>
@@ -0,0 +1,3 @@
+Demonstration for the Translator's Backend (JSON):
+
+See how to create your own multi-languages packages...

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 71f51ad

Please sign in to comment.