forked from sachatrauwaen/OpenBlocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlock_View.ascx
54 lines (44 loc) · 2.48 KB
/
Block_View.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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Block_View.ascx.cs" Inherits="Satrabel.OpenBlocks.Block_View" %>
<div class="dnnForm" id="form-blocks">
<asp:GridView ID="gvBlocks" runat="server" CssClass="dnnGrid" AutoGenerateColumns="False" OnRowCommand="gvBlocks_RowCommand" OnRowDataBound="gvBlocks_RowDataBound" HeaderStyle-CssClass="dnnGridHeader" RowStyle-CssClass="dnnGridItem" Width="100%">
<Columns>
<asp:TemplateField ItemStyle-Width="20px">
<ItemTemplate>
<asp:HyperLink ID="lnkEdit" runat="server" ResourceKey="EditItem.Text" Visible="false" ImageUrl="~/icons/sigma/Edit_16X16_Standard.png" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-Width="20px">
<ItemTemplate>
<asp:ImageButton ID="lnkDelete" runat="server" ResourceKey="DeleteItem.Text" Visible="false" CommandName="Delete" ImageUrl="~/icons/sigma/Delete_16X16_Standard.png" />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Name" HeaderText="Name">
<HeaderStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:TemplateField HeaderText="Type">
<HeaderStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# BlockType(Eval("BlockType")) %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Scope">
<HeaderStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:Label ID="lblCulture" runat="server" Text='<%# Scope(Eval("CultureCode")) %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Token">
<HeaderStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:Label ID="lblToken" runat="server" Text='<%# Token(Eval("Name")) %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="dnnGridHeader"></HeaderStyle>
<RowStyle CssClass="dnnGridItem"></RowStyle>
</asp:GridView>
<ul class="dnnActions dnnClear">
<li>
<asp:HyperLink runat="server" CssClass="dnnPrimaryAction" ResourceKey="EditModule" ID="hlAdd" /></li>
</ul>
</div>