forked from sachatrauwaen/OpenContent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditAddData.ascx
27 lines (25 loc) · 1018 Bytes
/
EditAddData.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
<%@ Control Language="C#" AutoEventWireup="false" Inherits="Satrabel.OpenContent.EditAddData" CodeBehind="EditAddData.ascx.cs" %>
<%@ Import Namespace="Newtonsoft.Json" %>
<asp:Panel ID="ScopeWrapper" runat="server">
<div id="field1" class="alpaca"></div>
<ul class="dnnActions dnnClear" style="display: block; padding-left: 35%">
<li>
<asp:HyperLink ID="cmdSave" runat="server" class="dnnPrimaryAction" resourcekey="cmdSave" />
</li>
<li>
<asp:HyperLink ID="hlCancel" runat="server" class="dnnSecondaryAction" resourcekey="cmdCancel" />
</li>
</ul>
</asp:Panel>
<script type="text/javascript">
$(document).ready(function () {
var config = <%=JsonConvert.SerializeObject(AlpacaContext)%>;
config.data = {
"key": "<%=Key%>",
};
config.editAction = "EditData";
config.updateAction = "UpdateData";
var engine = new alpacaEngine.engine(config);
engine.init();
});
</script>