Revision 6 hci/trunk/eneraptor-web-app/grails-app/taglib/com/eneraptor/hci/ErptrTagLib.groovy
ErptrTagLib.groovy | ||
---|---|---|
32 | 32 |
out << g.createLink(controller: "${it.name}", action: "${it.url}") |
33 | 33 |
out << "' class='" |
34 | 34 |
out << "${it.name}-${it.url}" |
35 |
out << "'>${it.label}</a></li>" |
|
35 |
out << "'>" |
|
36 |
if(attrs.chosen == it.url) out << "<u>" |
|
37 |
out << it.label |
|
38 |
if(attrs.chosen == it.url) out << "</u>" |
|
39 |
out << "</a></li>" |
|
36 | 40 |
} |
37 | 41 |
} |
38 | 42 |
|
... | ... | |
62 | 66 |
def confirmBox = { attrs, body -> |
63 | 67 |
out << "<div id='confirmBox'>" |
64 | 68 |
out << "<div class='confirmBoxContent'>" |
65 |
out << "<img style='float: left;margin:5px;' src='" + g.resource(dir: 'img/icons/', file:'tick.png') + "' />" |
|
69 |
out << "<img style='float: left;margin:5px;position:relative;top:-2px;' src='" + g.resource(dir: 'img/icons/', file:'tick.png') + "' />"
|
|
66 | 70 |
out << body() |
67 | 71 |
out << "</div>" |
68 | 72 |
out << "</div><br />" |
... | ... | |
71 | 75 |
def errorBox = { attrs, body -> |
72 | 76 |
out << "<div id='errorBox'>" |
73 | 77 |
out << "<div class='errorBoxContent'>" |
74 |
out << "<img style='float: left;margin:5px;' src='" + g.resource(dir: 'img/icons/', file:'cross.png') + "' />" |
|
78 |
out << "<img style='float: left;margin:5px;position:relative;top:-2px;' src='" + g.resource(dir: 'img/icons/', file:'cross.png') + "' />"
|
|
75 | 79 |
out << body() |
76 | 80 |
out << "</div>" |
77 | 81 |
out << "</div><br />" |
78 | 82 |
} |
79 | 83 |
|
84 |
def warningBox = { attrs, body -> |
|
85 |
out << "<div id='warningBox'>" |
|
86 |
out << "<div class='warningBoxContent'>" |
|
87 |
out << "<img style='float: left;margin:5px;position:relative;top:-2px;' src='" + g.resource(dir: 'img/icons/', file:'error.png') + "' />" |
|
88 |
out << body() |
|
89 |
out << "</div>" |
|
90 |
out << "</div><br />" |
|
91 |
} |
|
92 |
|
|
80 | 93 |
def logEntryOptions = { attrs -> |
81 | 94 |
out << "<a href='" |
82 | 95 |
out << g.createLink(action: 'detail', id: attrs.for) |
... | ... | |
94 | 107 |
out << "</a>" |
95 | 108 |
} |
96 | 109 |
|
110 |
def changeDeleteOptions = { attrs -> |
|
111 |
out << "<a href='" |
|
112 |
out << g.createLink(action: 'change' + attrs.table + 'Entry', id: attrs.for) |
|
113 |
out << "'>" |
|
114 |
out << "<img src='" |
|
115 |
out << g.resource(dir: 'img/icons/', file: 'wrench_orange.png') |
|
116 |
out << "' />" |
|
117 |
out << "</a>" |
|
118 |
out << "<a href='" |
|
119 |
out << g.createLink(action: 'delete' + attrs.table + 'Entry', id: attrs.for) |
|
120 |
out << "'>" |
|
121 |
out << "<img src='" |
|
122 |
out << g.resource(dir: 'img/icons/', file: 'delete.png') |
|
123 |
out << "' />" |
|
124 |
out << "</a>" |
|
125 |
} |
|
126 |
|
|
97 | 127 |
def icon = { attrs -> |
98 | 128 |
out << "<img style='float:left;position:relative;bottom:2px;' src='" |
99 | 129 |
out << g.resource(dir: "img/icons/", file: attrs.w + ".png") |
... | ... | |
106 | 136 |
|
107 | 137 |
} |
108 | 138 |
|
139 |
def rawInfoBox = { attrs, body -> |
|
140 |
out << "<div class='rawInfoBox'>" |
|
141 |
out << body() |
|
142 |
out << "</div>" |
|
143 |
} |
|
144 |
|
|
109 | 145 |
} |
Also available in: Unified diff