-
Notifications
You must be signed in to change notification settings - Fork 20
/
EditFAQs.ascx
54 lines (54 loc) · 3.81 KB
/
EditFAQs.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
<%@ Control Language="C#" Inherits="DotNetNuke.Modules.FAQs.EditFAQs" AutoEventWireup="true" CodeBehind="EditFAQs.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="Portal" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.UI.WebControls" Assembly="DotNetNuke.Web.Deprecated" %>
<div class="dnnForm dnnEditFAQs dnnClear">
<div class="dnnFormItem">
<dnn:Label id="plQuestionField" runat="server" controlname="txtQuestionField">
</dnn:Label>
<asp:TextBox ID="txtQuestionField" runat="server" MaxLength="400" Width="400px" TextMode="SingleLine" CssClass="dnnFormRequired"></asp:TextBox>
<asp:RequiredFieldValidator ID="valRequiredTitle" runat="server" resourcekey="valRequiredTitle" ControlToValidate="txtQuestionField" ErrorMessage="Question is required" CssClass="dnnFormMessage dnnFormError"></asp:RequiredFieldValidator>
</div>
<div class="dnnFormItem">
<dnn:Label id="plAnswerField" runat="server" controlname="teAnswerField">
</dnn:Label>
<div class="dnnRight">
<dnn:Texteditor choosemode="False" controlid="teAnswerField" height="300" id="teAnswerField" runat="server" width="600">
</dnn:Texteditor></div>
</div>
<div class="dnnFormItem">
<dnn:Label id="plCategoryField" runat="server" controlname="drpCategory">
</dnn:Label>
<asp:DropDownList ID="drpCategory" runat="server">
<asp:ListItem Value="-1" resourcekey="SelectCategory">Select Category</asp:ListItem>
</asp:DropDownList>
</div>
<div class="dnnFormItem">
<dnn:Label id="plFaqHide" runat="server" controlname="chkFaqHide">
</dnn:Label>
<asp:CheckBox ID="chkFaqHide" runat="server" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="plPublishDate" runat="server" ControlName="datepickerPublishDate" />
<dnn:DnnDatePicker ID="datepickerPublishDate" runat="server" />
<asp:CompareValidator ID="valPublishDate" resourcekey="valPublishDate.ErrorMessage" Operator="DataTypeCheck" Type="Date" runat="server" Display="Dynamic" ControlToValidate="datepickerPublishDate" CssClass="dnnFormMessage dnnFormError" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="plExpireDate" runat="server" ControlName="datepickerExpireDate" />
<dnn:DnnDatePicker ID="datepickerExpireDate" runat="server" />
<asp:CompareValidator ID="valExpireDate" resourcekey="valExpireDate.ErrorMessage" Operator="DataTypeCheck" Type="Date" runat="server" Display="Dynamic" ControlToValidate="datepickerExpireDate" CssClass="dnnFormMessage dnnFormError" />
<asp:CompareValidator ID="val2ExpireDate" resourcekey="val2ExpireDate.ErrorMessage" Operator="GreaterThanEqual" Type="Date" runat="server" Display="Dynamic" ControlToValidate="datepickerExpireDate" ControlToCompare="datepickerPublishDate" CssClass="dnnFormMessage dnnFormError" />
</div>
<ul class="dnnActions dnnClear">
<li>
<asp:LinkButton ID="cmdUpdate" resourcekey="cmdUpdate" runat="server" CssClass="dnnPrimaryAction" OnCommand="cmdUpdate_Click" /></li>
<li>
<asp:LinkButton ID="cmdCancel" resourcekey="cmdCancel" runat="server" CssClass="dnnSecondaryAction" OnCommand="cmdCancel_Click" CausesValidation="False" /></li>
<li>
<asp:LinkButton ID="cmdDelete" resourcekey="cmdDelete" runat="server" CssClass="dnnSecondaryAction" OnCommand="cmdDelete_Click" CausesValidation="False" /></li>
</ul>
<Portal:Audit ID="ctlAudit" runat="server">
</Portal:Audit>
</div>