-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBlock_Edit.ascx
89 lines (77 loc) · 4.02 KB
/
Block_Edit.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
88
89
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Block_Edit.ascx.cs" Inherits="Satrabel.OpenBlocks.Block_Edit" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" %>
<%@ Register TagPrefix="dnn" TagName="label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" TagName="texteditor" Src="~/controls/texteditor.ascx" %>
<div class="dnnForm dnnEditBasicSettings" id="dnnEditBasicSettings">
<ul class="dnnAdminTabNav dnnClear">
<li><a href="#rbDefinition"><%=LocalizeString("DefinitionSettings")%></a></li>
<li><a href="#rbScope"><%=LocalizeString("ScopeSettings")%></a></li>
<li><a href="#rbContent"><%=LocalizeString("BasicSettings")%></a></li>
</ul>
<div class="rbDefinition dnnClear" id="rbDefinition">
<div class="rbmContent dnnClear">
<fieldset>
<div class="dnnFormItem">
<dnn:label ID="lblName" runat="server" />
<asp:TextBox ID="txtName" runat="server" CssClass="dnnFormRequired" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="txtName"
CssClass="dnnFormMessage dnnFormError" ResourceKey="Name.Required" />
</div>
<div class="dnnFormItem">
<dnn:label ID="lblType" runat="server" />
<asp:RadioButtonList ID="rblType" runat="server" RepeatColumns="3" OnSelectedIndexChanged="rblType_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Text="Text" Selected="True" Value="1"></asp:ListItem>
<asp:ListItem Text="Html" Value="2"></asp:ListItem>
</asp:RadioButtonList>
</div>
</fieldset>
</div>
</div>
<div class="rbScope dnnClear" id="rbScope">
<div class="rbmContent dnnClear">
<fieldset>
<div class="dnnFormItem">
<dnn:label ID="lblCultureCode" runat="server" />
<asp:DropDownList ID="ddlCultureCode" runat="server" AppendDataBoundItems="true">
<asp:ListItem>All</asp:ListItem>
</asp:DropDownList>
</div>
</fieldset>
</div>
</div>
<div class="rbContent dnnClear" id="rbContent">
<div class="rbmContent dnnClear">
<fieldset>
<div class="dnnFormItem">
<dnn:label ID="lblDescription" runat="server" Visible="false" />
<asp:TextBox ID="txtContentTxt" runat="server" TextMode="MultiLine" Rows="15" Width="100%" />
<dnn:texteditor ID="txtContentHtml" runat="server" Visible="false"/>
</div>
</fieldset>
</div>
</div>
<ul class="dnnActions dnnClear" style="padding:0">
<li>
<asp:LinkButton ID="btnSubmit" runat="server"
OnClick="btnSubmit_Click" resourcekey="btnSubmit" CssClass="dnnPrimaryAction" /></li>
<li>
<asp:LinkButton ID="btnCancel" runat="server"
OnClick="btnCancel_Click" resourcekey="btnCancel" CssClass="dnnSecondaryAction" /></li>
</ul>
</div>
<script language="javascript" type="text/javascript">
/*globals jQuery, window, Sys */
(function ($, Sys) {
function dnnEditBasicSettings() {
$('#dnnEditBasicSettings').dnnTabs();
$('#dnnEditBasicSettings').dnnPanels();
$('#dnnEditBasicSettings .dnnFormExpandContent a').dnnExpandAll({ expandText: '<%=Localization.GetString("ExpandAll", LocalResourceFile)%>', collapseText: '<%=Localization.GetString("CollapseAll", LocalResourceFile)%>', targetArea: '#dnnEditBasicSettings' });
}
$(document).ready(function () {
dnnEditBasicSettings();
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
dnnEditBasicSettings();
});
});
}(jQuery, window.Sys));
</script>