File upload implementation part1

This commit is contained in:
YNH Webdev
2013-12-31 16:03:24 +01:00
parent 7a5d1e378d
commit 1ae44e74e7
7 changed files with 256 additions and 4 deletions

View File

@@ -36,12 +36,13 @@ feature {NONE} -- Initialization
do
make_control ("div")
add_class ("form-group")
if attached {WSF_INPUT_CONTROL} c or attached {WSF_TEXTAREA_CONTROL} c then
c.add_class ("form-control")
end
if attached {WSF_HTML_CONTROL} c then
c.add_class ("form-control-static")
elseif not attached {WSF_VALUE_CONTROL [LIST[ANY]]} c then
c.add_class ("form-control")
end
label_width := 2
value_control := c
validators := v
label := a_label