Factorized code for checkbox and radio input.

Renamed `text' and similar to `title' and similar
This commit is contained in:
Jocelyn Fiat
2013-03-08 16:01:05 +01:00
parent b278dba565
commit 334f7a362b
4 changed files with 119 additions and 141 deletions

View File

@@ -196,8 +196,8 @@ feature -- Execution
then
-- Skip
else
create cb.make_with_text ("roles[]", r.item.id.out)
cb.set_text (r.item.name)
create cb.make_with_value ("roles[]", r.item.id.out)
cb.set_title (r.item.name)
cb.set_checked (u /= Void and then u.has_role (r.item))
tset.extend (cb)
end