Removed country chooser widget
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
note
|
||||
description: "Summary description for {WSF_DATETIME_CONTROL}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_DATETIME_CONTROL
|
||||
|
||||
inherit
|
||||
|
||||
WSF_INPUT_CONTROL
|
||||
rename
|
||||
make as make_input
|
||||
end
|
||||
|
||||
create
|
||||
make
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (v: STRING)
|
||||
-- Initialize with specified control name and text
|
||||
do
|
||||
make_input (v)
|
||||
end
|
||||
|
||||
end
|
||||
@@ -26,13 +26,13 @@ create
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (a_label: detachable STRING; c: WSF_VALUE_CONTROL [G])
|
||||
-- Initialize form element control with a specific label and value control
|
||||
-- Initialize form element control with a specific label (or 'Void' for no label) and value control
|
||||
do
|
||||
make_with_validators (a_label, c, create {ARRAYED_LIST [WSF_VALIDATOR [G]]}.make (0))
|
||||
end
|
||||
|
||||
make_with_validators (a_label: detachable STRING; c: WSF_VALUE_CONTROL [G]; v: LIST [WSF_VALIDATOR [G]])
|
||||
-- Initialize form element control with a specific label, value control and list of validators
|
||||
-- Initialize form element control with a specific label (or 'Void' for no label), value control and list of validators
|
||||
do
|
||||
make_control ("div")
|
||||
add_class ("form-group")
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
note
|
||||
description: "Summary description for {WSF_COUNTRY_CHOOSER_CONTROL}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_COUNTRY_CHOOSER_CONTROL
|
||||
|
||||
inherit
|
||||
|
||||
WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
|
||||
rename
|
||||
make as make_multi_control,
|
||||
make_with_tag_name as make_multi_control_with_tag_name
|
||||
select
|
||||
make_control
|
||||
end
|
||||
|
||||
WSF_VALUE_CONTROL [STRING]
|
||||
undefine
|
||||
load_state,
|
||||
full_state,
|
||||
read_state_changes,
|
||||
make
|
||||
end
|
||||
|
||||
create
|
||||
make
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (t: STRING)
|
||||
-- Make a country chooser control with specified tag name (such as li) and menu title
|
||||
local
|
||||
temp: WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
|
||||
options: WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
|
||||
listbox: WSF_MULTI_CONTROL [WSF_STATELESS_CONTROL]
|
||||
do
|
||||
make_multi_control_with_tag_name (t)
|
||||
add_class ("bfh-selectbox bfh-countries")
|
||||
append_attribute ("data-country=%"US%" data-flags=%"true%"")
|
||||
create input.make ("")
|
||||
input.append_attribute ("type=%"hidden%"")
|
||||
add_control (input)
|
||||
create temp.make_with_tag_name ("a")
|
||||
temp.add_class ("bfh-selectbox-toggle")
|
||||
temp.append_attribute ("role=%"button%" data-toggle=%"bfh-selectbox%" href=%"#%"")
|
||||
temp.add_control (create {WSF_BASIC_CONTROL}.make_with_body_class ("span", "data-option=%"%"", "bfh-selectbox-option input-medium", ""))
|
||||
temp.add_control (create {WSF_BASIC_CONTROL}.make_with_body ("b", "style=%"border-top-color: black !important;%"", ""))
|
||||
add_control (temp)
|
||||
create options.make
|
||||
options.add_class ("bfh-selectbox-options")
|
||||
options.add_control (create {WSF_BASIC_CONTROL}.make_with_body_class ("input", "type=%"text%"", "bfh-selectbox-filter", ""))
|
||||
create listbox.make
|
||||
listbox.append_attribute ("role=%"listbox%"")
|
||||
listbox.add_control (create {WSF_BASIC_CONTROL}.make_with_body ("ul", "role=%"option%"", ""))
|
||||
options.add_control (listbox)
|
||||
add_control (options)
|
||||
end
|
||||
|
||||
feature -- Implementation
|
||||
|
||||
value: STRING
|
||||
do
|
||||
Result := input.value
|
||||
end
|
||||
|
||||
feature -- Properties
|
||||
|
||||
input: WSF_INPUT_CONTROL
|
||||
|
||||
end
|
||||
@@ -40,7 +40,7 @@ feature {NONE} -- Initialization
|
||||
append_attribute ("data-date=%"10-09-2013%" data-date-format=%"dd-mm-yyyy%"")
|
||||
create input.make ("10-09-2013")
|
||||
input.add_class ("form-control")
|
||||
input.append_attribute ("value=%"10-09-2013%" type=%"text%" size=%"16%" readonly=%"%"")
|
||||
input.append_attribute ("size=%"16%" readonly=%"%"")
|
||||
add_control (input)
|
||||
create span.make_with_tag_name ("span")
|
||||
span.add_class ("input-group-addon")
|
||||
@@ -57,6 +57,6 @@ feature -- Implementation
|
||||
|
||||
feature -- Properties
|
||||
|
||||
input: WSF_INPUT_CONTROL
|
||||
input: WSF_DATETIME_CONTROL
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user