<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SystemTextList.aspx.cs" Inherits="eDocument.Server.Administrator.Resources.SystemTextList" MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">

    <div class="skjema-admin__page-pre-title">
        Systemadministrasjon
    </div>

    <h1 class="skjema-admin__page-title mt-0">
        Systemtekster og oversettelse
    </h1>

    <div>
        <asp:GridView 
            runat="server" 
            ID="gvResourceCategories"
            AutoGenerateColumns="False" 
            CssClass="skjema-admin__table skjema-admin__table--two-column-last-min-width w-100"
            Border="0">
            <Columns>
                <asp:BoundField DataField="Id" Visible="False"></asp:BoundField>
                <asp:BoundField DataField="Name" Visible="False"></asp:BoundField>
                <asp:BoundField DataField="Caption" HeaderText="Kategori"></asp:BoundField>
                <asp:TemplateField HeaderText="Endre">
                    <ItemTemplate>
                        <asp:HyperLink ID="Edit" runat="server" Text='Endre' NavigateUrl='<%#Eval("EditUrl")%>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>

    <div id="divSync" class="skjema-admin__mb-40" runat="server">
        <asp:LinkButton
            Class="skjema-admin__plus-anchor"
            ID="btnSyncResources"
            runat="server"
            Text="Synkroniser systemtekster med prod"
            OnClick="btnSyncResources_Click">
        </asp:LinkButton>
        <asp:Label ID="lblSyncMessage" CssClass="skjema-admin__page__label" Text="Synkronisering av tekster utført." runat="server" Visible="False" />
    </div>
    
    
    <div class="skjema-admin__mb-40">
        <asp:GridView 
            runat="server" 
            ID="gvUserManuals"
            AutoGenerateColumns="False" 
            CssClass="skjema-admin__table skjema-admin__table--two-column-last-min-width w-100"
            Border="0">
            <Columns>
                <asp:BoundField DataField="Name" HeaderText="Brukerveiledninger"></asp:BoundField>
                <asp:TemplateField HeaderText="Endre">
                    <ItemTemplate>
                        <asp:HyperLink ID="Edit" runat="server" Text='Endre' NavigateUrl='<%#Eval("Url")%>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
