gluon-web-model: add Warning
This commit is contained in:
parent
6285e3de0c
commit
099febb41f
@ -0,0 +1,3 @@
|
||||
<div class="gluon-warning">
|
||||
<%=self.content%>
|
||||
</div>
|
@ -196,6 +196,24 @@ function Template:__init__(template)
|
||||
self.template = template
|
||||
end
|
||||
|
||||
local Warning = class(Node)
|
||||
M.Warning = Warning
|
||||
|
||||
function Warning:__init__(...)
|
||||
Node.__init__(self, ...)
|
||||
|
||||
self.default = nil
|
||||
self.size = nil
|
||||
self.optional = false
|
||||
|
||||
self.template = "model/warning"
|
||||
|
||||
self.error = false
|
||||
end
|
||||
|
||||
function Warning:setcontent(content)
|
||||
self.content = content
|
||||
end
|
||||
|
||||
local AbstractValue = class(Node)
|
||||
M.AbstractValue = AbstractValue
|
||||
|
Loading…
Reference in New Issue
Block a user