Permalink
Browse files

mainly layout changes

  • Loading branch information...
1 parent e2d1332 commit a335f7188df13f6102806f5975cb4883810d1e7a @jettro committed Dec 25, 2009
@@ -32,7 +32,7 @@ class SchedulingController {
def weekNr = params.weeknr.toInteger()
scheduleItemService.createScheduleItem(personName, projectName, weekNr, nrHours)
}
- flash.message = "New item is created for person ${personName} and project ${projectName}"
+ flash.message = "New item(s) is created for person ${personName} and project ${projectName}"
redirect(action: "create")
}
@@ -1,6 +1,9 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
- <title><g:layoutTitle default="Grails"/></title>
+ <title><g:layoutTitle default="My Scheduling"/></title>
+ <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.0r4/build/reset-fonts-grids/reset-fonts-grids.css"/>
<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/>
@@ -11,19 +14,37 @@
<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 id="doc3">
+ <div id="hd">
+ <div id="sitemenu">
+ <nav:render group="sitemenu"/>
+ </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>
+ </div>
+ <div id="bd">
+ <div class="yui-b">
+ <div id="messages">
+ <g:if test="${flash.error}">
+ <div class="flasherror">${flash.error}</div>
+ </g:if>
+ <g:if test="${flash.message}">
+ <div class="flash">${flash.message}</div>
+ </g:if>
+ </div>
+ </div>
+ <div id="yui-main">
+ <div class="yui-b">
+ <g:layoutBody/>
+ </div>
+ </div>
+ </div>
+ <div id="ft">
+ Copyright - Disclaimer - Created by - technical contact
+ </div>
</div>
-<div id="messages">
- <g:if test="${flash.error}">
- <div class="flasherror">${flash.error}</div>
- </g:if>
- <g:if test="${flash.message}">
- <div class="flash">${flash.message}</div>
- </g:if>
-</div>
-<g:layoutBody/>
</body>
</html>
@@ -4,24 +4,44 @@
<title>Create schedule item</title>
<meta name="layout" content="main"/>
<gui:resources components="autoComplete,datePicker"/>
+ <style>
+ label {
+ display : block;
+ }
+ </style>
</head>
<body>
+<div class="yui-skin-sam">
<g:form action="newScheduleItem" method="POST">
- <div style="width:300px">
- Person : <span class="yui-skin-sam"><gui:autoComplete id="person" options="${persons*.name}"/></span>
- Project : <span class="yui-skin-sam"><gui:autoComplete id="project" options="${projects*.name}"/></span>
+ <div style="width:500px">
+ <label>Person : </label><gui:autoComplete id="person" options="${persons*.name}"/>
</div>
-
- <div style="width:300px">
- Number of hours : <br/><g:textField id="nrhours" name="nrhours"/><br/>
- Week number : <br/><g:textField id="weeknr" name="weeknr"/><br/>
+ <div style="width:500px">
+ <label>Project : </label><gui:autoComplete id="project" options="${projects*.name}"/>
</div>
-
- <div class="yui-skin-sam">
- <gui:datePicker id="startDate" formatString="yyyy-MM-dd"/>
- <gui:datePicker id="endDate" formatString="yyyy-MM-dd"/>
+ <div>
+ <label>Number of hours : </label><g:textField id="nrhours" name="nrhours"/>
+ </div>
+ <div>
+ <label>Week number : </label><g:textField id="weeknr" name="weeknr"/>
+ </div>
+ <div>
+ <label>Start date : </label><gui:datePicker id="startDate" formatString="yyyy-MM-dd"/>
+ </div>
+ <style>
+ .datefield {
+ top:0;
+ left:0;
+ padding:0;
+ }
+ </style>
+ <div>
+ <label>End date : </label><gui:datePicker id="endDate" formatString="yyyy-MM-dd"/>
+ </div>
+ <div>
+ <g:submitButton name="Create"/>
</div>
- <g:submitButton name="Create"/>
</g:form>
+</div>
</body>
</html>
View
@@ -3,6 +3,35 @@ html * {
/*padding: 0; SELECT NOT DISPLAYED CORRECTLY IN FIREFOX */
}
+/* custom */
+.flash {
+ border:1px solid lightgreen;
+}
+
+.flasherror {
+ border:1px solid red;
+}
+
+/* navigation */
+#sitemenu {
+ float:right;
+}
+
+#sitemenu .navigation li a { background-color: #fff }
+#sitemenu .navigation li.navigation_active a { background-color: #fff; color:#555; text-decoration:underline}
+#sitemenu .navigation li.navigation_active a:hover { background-color: #fff;}
+#sitemenu .navigation li a:hover { background-color: #999; }
+#sitemenu .navigation li a { color: #555; }
+#sitemenu .navigation li a:hover { color: #555; text-decoration:underline}
+#sitemenu .navigation li { border: 1px solid #fff; background-color: #fff }
+
+
+/* changes datepicker */
+.datefield {
+ top:0;
+ left:0;
+ padding:0;
+}
/* GENERAL */
.spinner {

0 comments on commit a335f71

Please sign in to comment.