forked from sachatrauwaen/OpenContent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTemplateInit.ascx
83 lines (80 loc) · 4.75 KB
/
TemplateInit.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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TemplateInit.ascx.cs" Inherits="Satrabel.OpenContent.TemplateInit" %>
<asp:Panel ID="pHelp" runat="server" Visible="false" CssClass="dnnForm">
<fieldset>
<div class="dnnFormItem">
<asp:Label ID="lUseContent" runat="server" ControlName="rblDataSource" ResourceKey="lUseContent" CssClass="dnnLabel" />
<asp:RadioButtonList runat="server" ID="rblDataSource" AutoPostBack="true" OnSelectedIndexChanged="rblDataSource_SelectedIndexChanged"
RepeatDirection="Horizontal" CssClass="dnnFormRadioButtons">
<asp:ListItem Text="This module" Selected="True" />
<asp:ListItem Text="Other module" />
</asp:RadioButtonList>
</div>
<asp:PlaceHolder ID="phDataSource" runat="server" Visible="false">
<div class="dnnFormItem">
<asp:Label runat="server" ControlName="ddlDataSource" ResourceKey="lDataSource" CssClass="dnnLabel" />
<asp:DropDownList runat="server" ID="ddlDataSource" AutoPostBack="true" OnSelectedIndexChanged="ddlDataSource_SelectedIndexChanged">
</asp:DropDownList>
</div>
</asp:PlaceHolder>
<div class="dnnFormItem">
<asp:Label ID="lUseTemplate" runat="server" ControlName="rblUseTemplate" ResourceKey="lUseTemplate" CssClass="dnnLabel" />
<asp:RadioButtonList runat="server" ID="rblUseTemplate" AutoPostBack="true" OnSelectedIndexChanged="rblUseTemplate_SelectedIndexChanged"
RepeatDirection="Horizontal" CssClass="dnnFormRadioButtons">
<asp:ListItem Text="Use a existing template" Selected="True" />
<asp:ListItem Text="Create a new template" />
</asp:RadioButtonList>
</div>
<asp:PlaceHolder ID="phFrom" runat="server" Visible="false">
<div class="dnnFormItem">
<asp:Label ID="Label4" runat="server" ControlName="rblFrom" CssClass="dnnLabel" ResourceKey="lFrom" />
<asp:RadioButtonList runat="server" ID="rblFrom" AutoPostBack="true" OnSelectedIndexChanged="rblFrom_SelectedIndexChanged"
RepeatDirection="Horizontal" CssClass="dnnFormRadioButtons">
<asp:ListItem Text="Site" Selected="True" />
<asp:ListItem Text="Web (openextensions.net)" />
</asp:RadioButtonList>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phCurrentTemplate" runat="server">
<div class="dnnFormItem" style="padding-left:32%;margin-left:38px;width:auto;">
<asp:Label ID="lCurrentTemplate" runat="server" />
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phTemplate" runat="server">
<div class="dnnFormItem">
<asp:Label runat="server" ControlName="ddlTemplate" ResourceKey="lTemplate" CssClass="dnnLabel" />
<asp:DropDownList runat="server" ID="ddlTemplate" AutoPostBack="true" OnSelectedIndexChanged="ddlTemplate_SelectedIndexChanged">
</asp:DropDownList>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phTemplateName" runat="server" Visible="false">
<div class="dnnFormItem">
<asp:Label runat="server" ControlName="tbTemplateName" ResourceKey="lTemplateName" CssClass="dnnLabel" />
<asp:TextBox ID="tbTemplateName" runat="server"></asp:TextBox>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phDetailPage" runat="server" Visible="false">
<div class="dnnFormItem">
<asp:Label runat="server" ControlName="ddlDetailPage" ResourceKey="lDetailPage" CssClass="dnnLabel" />
<asp:DropDownList runat="server" ID="ddlDetailPage">
</asp:DropDownList>
</div>
</asp:PlaceHolder>
</fieldset>
<ul class="dnnActions dnnClear" style="padding-left: 32%; margin-left: 38px;">
<li>
<asp:LinkButton ID="bSave" runat="server" CssClass="dnnPrimaryAction" ResourceKey="Save" OnClick="bSave_Click" />
</li>
<li>
<asp:HyperLink ID="hlEditSettings" runat="server" Enabled="false" CssClass="dnnSecondaryAction">Template Settings</asp:HyperLink>
</li>
<li>
<asp:HyperLink ID="hlEditContent" runat="server" Enabled="false" CssClass="dnnSecondaryAction">Edit Content</asp:HyperLink>
</li>
</ul>
</asp:Panel>
<asp:Panel ID="pDemo" runat="server" Visible="false">
<p>
<asp:Label ID="Label3" runat="server" Text="This is demo data. Enter your content to replace it : " />
<asp:HyperLink ID="hlEditContent2" runat="server" Visible="false">Edit Content</asp:HyperLink>
</p>
</asp:Panel>