-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
EditGallery.ascx
48 lines (39 loc) · 1.79 KB
/
EditGallery.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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="EditGallery.ascx.vb" Inherits="Bring2mind.DNN.Modules.YAG.EditGallery" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<ul id="images">
<asp:Repeater ID="rpImages" runat="server">
<ItemTemplate>
<li class="ui-state-default yag-well" id="image_<%#Eval("file").Replace("-","T")%>">
<div class="delbutton">
<a class="yag-close" id="delete<%#Eval("file")%>" href="#">×</a>
</div>
<div class="imagetn">
<img src="<%=Settings.ImagePath%><%#Eval("file")%>_tn<%#Eval("extension")%>" alt="<%#Eval("title")%>" />
</div>
<input type="text" class="textbox" placeholder="Title" value="<%#Eval("title")%>" id="title-<%#Eval("file")%>" />
<input type="text" class="textbox" placeholder="Url" value="<%#Eval("url")%>" id="url-<%#Eval("file")%>" />
<textarea class="textbox" rows="3" id="remarks-<%#Eval("file")%>"><%#Eval("remarks")%></textarea>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
<p class="yag_buttonBar" id="exitControls">
<asp:LinkButton runat="server" ID="cmdReturn" resourcekey="cmdReturn" CssClass="dnnPrimaryAction" />
<asp:LinkButton runat="server" ID="cmdUpload" resourcekey="cmdUpload" CssClass="dnnSecondaryAction" />
</p>
<script type="text/javascript">
var yagService
(function ($, Sys) {
$(document).ready(function () {
yagService = new YagService($, {
serverErrorText: '<%= LocalizeJSString("ServerError") %>',
serverErrorWithDescriptionText: '<%= LocalizeJSString("ServerErrorWithDescription") %>',
errorBoxId: '#yagServiceErrorBox<%= ModuleId %>'
},
<%= ModuleId %>);
$('#images').yagEdit({
localization: { deleteConfirm: '<%= LocalizeJSString("Delete.Confirm")%>' }
});
});
} (jQuery, window.Sys));
</script>