summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket828.page
blob: 528a28d1fea8c48f5bb48cd825c82eae4424fa65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<com:TContent ID="Content">
<style type="text/css">
	/*<![CDATA[*/
	.defect
	{
		color: #c00;
		font-size: 1.15em;
	}
	body
	{
		font-family: Georgia, "Times New Roman", Times, serif;
	}
	.w3c
	{
		margin-top: 2em;
		display: block;
	}
	.required
	{
		border: 1px solid red;
		background-color: pink;
	}
	/*]]>*/
	</style>
<div>
	<div class="lista">
		<com:TCheckBoxList ID="list1" RepeatLayout="Raw">
			<com:TListItem Value="1" Text="One" />
			<com:TListItem Value="2" Text="Two" />
			<com:TListItem Value="3" Text="Three" />
			<com:TListItem Value="4" Text="Four" />
		</com:TCheckBoxList>
		<com:TListControlValidator
			ID="validator1"
			ControlToValidate="list1"
			ErrorMessage="Must select at least 1 and no more than 3"
			ControlCssClass="required"
			MinSelection="1"
			MaxSelection="3" />

	</div>
	<div>
		<com:TListBox ID="list2" SelectionMode="Multiple" Rows="5" Style="width:10em;">
			<com:TListItem Value="1" Text="One" />
			<com:TListItem Value="2" Text="Two" />
			<com:TListItem Value="3" Text="Three" />
			<com:TListItem Value="4" Text="Four" />
			<com:TListItem Value="5" Text="Five" />
		</com:TListBox>
		<com:TListControlValidator
			ID="validator2"
			ControlToValidate="list2"
			ErrorMessage='Must select at least 2 and no more than 3 and value "two"'
			MinSelection="2"
			MaxSelection="3"
			ControlCssClass="required"
			RequiredSelections="2" />
	</div>

	<div class="lista">
		<com:TRadioButtonList ID="list3" RepeatLayout="Raw">
			<com:TListItem Value="1" Text="One" />
			<com:TListItem Value="2" Text="Two" />
			<com:TListItem Value="3" Text="Three" />
			<com:TListItem Value="4" Text="Four" />
		</com:TRadioButtonList>
		<com:TListControlValidator
			ID="validator3"
			ControlToValidate="list3"
			ErrorMessage="Must select at least 1"
			ControlCssClass="required"
			MinSelection="1"/>

	</div>


	<com:TButton ID="submit1" Text="Test" />
</div>

</com:TContent>