-
Notifications
You must be signed in to change notification settings - Fork 2
/
ListEntries.ascx
87 lines (87 loc) · 5.79 KB
/
ListEntries.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<%@ Control Language="C#" AutoEventWireup="false" Inherits="Dnn.Modules.Lists.ListEntries" Codebehind="ListEntries.ascx.cs" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnntv" Namespace="DotNetNuke.UI.WebControls" Assembly="DotNetNuke.WebControls" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web.Deprecated" Namespace="DotNetNuke.Web.UI.WebControls" %>
<div class="dnnForm dnnListEntries dnnClear">
<div id="rowListdetails" runat="server">
<div id="rowListParent" runat="server" class="dnnFormItem">
<dnn:Label ID="plListParent" runat="server" ControlName="lblListParent" />
<asp:Label ID="lblListParent" runat="server" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="plListName" runat="server" ControlName="lblListName" />
<asp:Label ID="lblListName" runat="server" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="plEntryCount" runat="server" ControlName="lblEntryCount" />
<asp:Label ID="lblEntryCount" runat="server" />
</div>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton id="cmdAddEntry" runat="server" CssClass="dnnSecondaryAction" resourcekey="cmdAddEntry" /></li>
<li><asp:LinkButton id="cmdDeleteList" runat="server" CssClass="dnnSecondaryAction" resourcekey="cmdDeleteList" /></li>
</ul>
</div>
<div id="rowEntryGrid" runat="server">
<dnn:DnnGrid ID="grdEntries" runat="server" AutoGenerateColumns="false" CssClass="dnnASPGrid">
<MasterTableView DataKeyNames="EntryID">
<Columns>
<dnn:DnnGridBoundColumn DataField="Text" HeaderText="Text" />
<dnn:DnnGridBoundColumn DataField="Value" HeaderText="Value" />
<dnn:DnnGridTemplateColumn>
<ItemTemplate>
<dnn:DnnImageButton ID="btnUp" IconKey="Up" runat="server" AlternateText="Move entry up" resourcekey="btnUp.AlternateText" CommandName="up" />
</ItemTemplate>
</dnn:DnnGridTemplateColumn>
<dnn:DnnGridTemplateColumn>
<ItemTemplate>
<dnn:DnnImageButton ID="btnDown" IconKey="Dn" runat="server" AlternateText="Move entry down" resourcekey="btnDown.AlternateText" CommandName="down" />
</ItemTemplate>
</dnn:DnnGridTemplateColumn>
<dnn:DnnGridImageCommandColumn CommandName="Edit" IconKey="Edit" EditMode="Command" KeyField="EntryID" />
<dnn:DnnGridImageCommandColumn CommandName="Delete" IconKey="Delete" EditMode="Command" KeyField="EntryID" />
</Columns>
</MasterTableView>
</dnn:DnnGrid>
</div>
<div id="rowEntryEdit" runat="server">
<div id="rowParentKey" runat="server" class="dnnFormItem">
<dnn:Label ID="plParentKey" runat="server" ControlName="txtParentKey" />
<asp:TextBox ID="txtParentKey" runat="server" MaxLength="100" ReadOnly="true" />
</div>
<div id="rowListName" runat="server" class="dnnFormItem">
<dnn:Label ID="plEntryName" Text="Entry Name:" runat="server" ControlName="txtEntryName" CssClass="dnnFormRequired" />
<asp:TextBox ID="txtEntryName" runat="server" MaxLength="100" />
<asp:RequiredFieldValidator ID="valEntryName" CssClass="dnnFormMessage dnnFormError" runat="server" resourcekey="valEntryName.ErrorMessage" Display="Dynamic" ControlToValidate="txtEntryName" />
<asp:TextBox ID="txtEntryID" runat="server" Visible="false" />
</div>
<div id="rowSelectList" runat="server" class="dnnFormItem">
<dnn:Label ID="plSelectList" runat="server" ControlName="ddlSelectList "/>
<dnn:DnnComboBox ID="ddlSelectList" AutoPostBack="true" runat="Server" Enabled="false" CausesValidation="False" />
</div>
<div id="rowSelectParent" runat="server" class="dnnFormItem">
<dnn:Label ID="plSelectParent" runat="server" ControlName="ddlSelectParent" />
<dnn:DnnComboBox ID="ddlSelectParent" AutoPostBack="true" runat="Server" Enabled="false" CausesValidation="False" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="plEntryText" runat="server" ControlName="txtEntryText" CssClass="dnnFormRequired" />
<asp:TextBox ID="txtEntryText" runat="server" MaxLength="100" />
<asp:RequiredFieldValidator ID="valEntryText" CssClass="dnnFormMessage dnnFormError" runat="server" resourcekey="valEntryText.ErrorMessage" Display="Dynamic" ControlToValidate="txtEntryText" />
</div>
<div class="dnnFormItem">
<dnn:Label ID="plEntryValue" runat="server" ControlName="txtEntryValue" CssClass="dnnFormRequired"/>
<asp:TextBox ID="txtEntryValue" runat="server" MaxLength="100" />
<asp:RequiredFieldValidator ID="valEntryValue" CssClass="dnnFormMessage dnnFormError" runat="server" resourcekey="valEntryValue.ErrorMessage" Display="Dynamic" ControlToValidate="txtEntryValue" />
</div>
<div id="rowEnableSortOrder" runat="server" class="dnnFormItem">
<dnn:Label ID="plEnableSortOrder" runat="server" ControlName="chkEnableSortOrder"/>
<asp:CheckBox ID="chkEnableSortOrder" runat="server"/>
</div>
<ul class="dnnActions dnnClear">
<li><asp:LinkButton id="cmdSaveEntry" runat="server" CssClass="dnnPrimaryAction" resourcekey="cmdSave" /></li>
<li><asp:LinkButton id="cmdDelete" runat="server" CssClass="dnnSecondaryAction" resourcekey="cmdDeleteEntry" CausesValidation="false" /></li>
<li><asp:LinkButton id="cmdCancel" runat="server" CssClass="dnnSecondaryAction" resourcekey="cmdCancel" CausesValidation="false" /></li>
</ul>
</div>
</div>