Browse files

Renamed JQuery UI Buttons Tag Lib

  • Loading branch information...
1 parent b3f8e45 commit e229a55d4073ba800e5ebdb22d45b1b042dc55ce @nboukeffa nboukeffa committed Jun 2, 2011
View
4 application.properties
@@ -1,5 +1,5 @@
#Grails Metadata file
-#Sat Apr 16 11:12:37 CEST 2011
+#Wed Jun 01 23:11:21 CEST 2011
app.grails.version=1.2.5
app.name=seekin
app.servlet.version=2.4
@@ -11,6 +11,8 @@ plugins.grails-ui=1.2-SNAPSHOT
plugins.gss=1.0.1
plugins.hibernate=1.2.5
plugins.i18n-templates=1.1.0.1
+plugins.jquery=1.6.1.1
+plugins.jquery-ui=1.8.11
plugins.navigation=1.1.1
plugins.ofchart=0.6
plugins.tomcat=1.2.5
View
91 grails-app/taglib/me/hcl/seekin/Util/JQueryUISeekinTagLib.groovy
@@ -1,69 +1,66 @@
package me.hcl.seekin.Util
-import org.codehaus.groovy.grails.plugins.springsecurity.AuthorizeTools
-
-class JQuerySeekinTagLib {
-
+class JQueryUISeekinTagLib {
def JQueryLinkbutton = { attrs ->
def value = attrs["value"]
def action = attrs["action"]
out << """<a class="button" id="${action}" href="${createLink(action:"${action}")}" class="button">${message(code: value)}</a>"""
}
- def JQuerySubmitbutton = { attrs ->
- def value = attrs["value"]
- def action = attrs["action"]
- out << actionSubmit(id: action, action:action, value:message(code: value), class:"button")
- }
+ def JQuerySubmitbutton = { attrs ->
+ def value = attrs["value"]
+ def action = attrs["action"]
+ out << actionSubmit(id: action, action:action, value:message(code: value), class:"button")
+ }
- def listButton = {
- out << JQueryLinkbutton(value:"list", action:"list")
- }
+ def listButton = {
+ out << JQueryLinkbutton(value:"list", action:"list")
+ }
def deleteButton = {
out << JQuerySubmitbutton(value:"delete", action:"delete")
}
-
+
def denyButton = {
- out << JQuerySubmitbutton(value:"deny", action:"deny")
+ out << JQuerySubmitbutton(value:"deny", action:"deny")
}
- def buildEditButtons = {
- out << listButton()
- out << JQuerySubmitbutton(value:"update", action:"update")
- out << deleteButton()
- }
+ def buildEditButtons = {
+ out << listButton()
+ out << JQuerySubmitbutton(value:"update", action:"update")
+ out << deleteButton()
+ }
- def buildDenyButtons = {
- out << listButton()
- out << JQuerySubmitbutton(value:"update", action:"update")
- out << deleteButton()
- out << denyButton(value:"deny", action:"deny")
- }
+ def buildDenyButtons = {
+ out << listButton()
+ out << JQuerySubmitbutton(value:"update", action:"update")
+ out << deleteButton()
+ out << denyButton(value:"deny", action:"deny")
+ }
- def buildShowButtons = {
- out << listButton()
- out << JQuerySubmitbutton(value:"edit", action:"edit")
- out << deleteButton()
- }
+ def buildShowButtons = {
+ out << listButton()
+ out << JQuerySubmitbutton(value:"edit", action:"edit")
+ out << deleteButton()
+ }
- def buildShowWithoutEditButtons = {
- out << listButton()
- out << deleteButton()
- }
+ def buildShowWithoutEditButtons = {
+ out << listButton()
+ out << deleteButton()
+ }
- def buildListButtons = {
- out << JQueryLinkbutton(value:"new", action:"create")
- }
+ def buildListButtons = {
+ out << JQueryLinkbutton(value:"new", action:"create")
+ }
- def buildCreateButtons = {
- out << listButton()
- out << JQuerySubmitbutton(value:"create", action:"save")
- }
+ def buildCreateButtons = {
+ out << listButton()
+ out << JQuerySubmitbutton(value:"create", action:"save")
+ }
- def buildSubmitButton = { attrs ->
- def value = attrs["value"]
- def action = attrs["action"]
- out << JQuerySubmitbutton(value:value, action:action)
- }
-}
+ def buildSubmitButton = { attrs ->
+ def value = attrs["value"]
+ def action = attrs["action"]
+ out << JQuerySubmitbutton(value:value, action:action)
+ }
+}
View
4 grails-app/taglib/me/hcl/seekin/Util/YUISeekinTagLib.groovy
@@ -11,7 +11,7 @@ class YUISeekinTagLib {
out << yui.stylesheet(dir:'button/assets/skins/sam', file:'button.css')
}
- def YUISubmitbutton = { attrs ->
+ /* def YUISubmitbutton = { attrs ->
def value = attrs["value"]
def action = attrs["action"]
@@ -112,7 +112,7 @@ class YUISeekinTagLib {
def value = attrs["value"]
def action = attrs["action"]
out << YUISubmitbutton(value:value, action:action)
- }
+ } */
def renderSubMenu = {
out << gui.accordion(multiple:"true", bounce:"true", fade:"true") {

0 comments on commit e229a55

Please sign in to comment.