-
Notifications
You must be signed in to change notification settings - Fork 1
/
Form.ascx
60 lines (57 loc) · 3.01 KB
/
Form.ascx
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
<%@ Control Language="C#" ClassName="DNNWorld" Inherits="DotNetNuke.Entities.Modules.PortalModuleBase" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/labelcontrol.ascx" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>
<style type="text/css">
.dnnFormItem.dnnFormHelp { margin-top: 2em; }
</style>
<div class="dnnForm" id="form-demo">
<asp:Label runat="server" CssClass="dnnFormMessage dnnFormInfo" ResourceKey="Intro" />
<div class="dnnFormItem dnnFormHelp dnnClear">
<p class="dnnFormRequired"><asp:Label runat="server" ResourceKey="Required Indicator" /></p>
<!-- TODO: Accessibility -->
</div>
<fieldset>
<div class="dnnFormItem">
<dnn:Label runat="server" ControlName="NameTextBox" ResourceKey="Name" />
<asp:TextBox runat="server" ID="NameTextBox" CssClass="dnnFormRequired" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="NameTextBox"
CssClass="dnnFormMessage dnnFormError" ResourceKey="Name.Required" />
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" ControlName="DescriptionTextBox" ResourceKey="Description" />
<asp:TextBox runat="server" TextMode="MultiLine" ID="DescriptionTextBox" />
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" ControlName="ChoiceDropDown" ResourceKey="Choice" />
<asp:DropDownList runat="server" ID="ChoiceDropDown">
<asp:ListItem Text="-- Make a Choice --" />
<asp:ListItem Text="First Choice" />
<asp:ListItem Text="Second Choice" />
</asp:DropDownList>
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" ControlName="RateRadioButtons" ResourceKey="Rate" />
<asp:RadioButtonList runat="server" ID="RateRadioButtons"
RepeatDirection="Horizontal" RepeatLayout="Flow"
CssClass="dnnFormRadioButtons">
<asp:ListItem Text="1" />
<asp:ListItem Text="2" />
<asp:ListItem Text="3" />
<asp:ListItem Text="4" />
<asp:ListItem Text="5" />
</asp:RadioButtonList>
</div>
<div class="dnnFormItem">
<dnn:Label runat="server" ControlName="AgreeCheckbox" ResourceKey="Agree" />
<asp:CheckBox runat="server" ID="AgreeCheckbox" />
</div>
<div class="dnnFormItem">
<asp:Label runat="server" CssClass="dnnFormLabel" AssociatedControlID="StartDatePicker" ResourceKey="Start Date" />
<dnn:DnnDatePicker runat="server" CssClass="dnnFormInput" ID="StartDatePicker" />
</div>
</fieldset>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton runat="server" CssClass="dnnPrimaryAction" ResourceKey="Save" /></li>
<li><asp:HyperLink runat="server" CssClass="dnnSecondaryAction" NavigateUrl="/" ResourceKey="Cancel" /></li>
</ul>
</div>