<%@ Page Title="" Language="C#" MasterPageFile="~/PatientAccess/PAAdmin/AdminMainSubNav.Master" AutoEventWireup="true" CodeBehind="TemplateEditorMenu.aspx.cs" Inherits="Axium.Web.PAAdmin.TemplateEditorTab.TemplateEditorMenu" EnableSessionState="True" validateRequest="false"%>
<%@ MasterType VirtualPath="~/PatientAccess/PAAdmin/AdminMainSubNav.Master" %>

<asp:Content ID="TheHead" ContentPlaceHolderID="AdditionalHeader" runat="server"></asp:Content>

<asp:Content ID="LeftMenu" ContentPlaceHolderID="SubNavigation" runat="server">
    <adminNav:Templates runat="server" ID="TemplateNavigationControl"/>
</asp:Content>

<asp:Content ID="TheMainContent" ContentPlaceHolderID="MainContent" runat="server">
    <div class="MainHeader">
        <asp:Button ID="SaveTemplateNameBtn" runat="server" Text="Save" CssClass="ButtonGreen" onclick="SaveTemplateNameBtn_Click" />
        <asp:Button ID="PreViewBtn" runat="server" onClick="PreViewBtn_Click" Text="Preview" CssClass="ButtonGreen" />
        <asp:Button ID="DelTemplateBtn" runat="server" Text="Delete" CssClass="ButtonGreen" onclick="DelTemplateBtn_Click" />
        <asp:Button ID="DupTemplateBtn" runat="server" Text="Copy" CssClass="ButtonGreen" onclick="DuplicateTemplateBtn_Click" />
    </div>
    <div>
        <table class="Table" cellspacing="0" cellpadding="3" width="100%">
            <tr>
                <td><label>Template ID</label></td>
                <td><asp:Label ID="TemplateIdLabel" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>        
                <td><label>Template Title</label></td>
                <td><asp:TextBox ID="NewTemplateTxtBox" runat="server" onkeydown='javascript:if(window.event.keyCode == 13){return false;}' Height="25px" Width="328px"></asp:TextBox></td>
            </tr>
        </table> 
        <span id="TemplateNameErrorSpan" runat="server" class="Error"></span>
    
        <table class="Table" cellspacing="0" cellpadding="3" width="100%">
        <tr class="TrHeader2">
	        <td colspan="2">Code</td>
        </tr>
        <tr>
	        <td width="75"><label>HTML</label></td>
            <td>
    	        <asp:Button runat="server" ID="HtmlViewBtn" CssClass="ButtonGrey" Text="View" OnClientClick="MediumWindow('TemplateViewer.aspx','HTMLView', gup('id'), 'html', gup('isNew')); return false;"/>
                <asp:Button runat="server" ID="HtmlEditBtn" CssClass="ButtonGrey" Text="Edit" OnClientClick="MediumWindow('TemplateEditor.aspx','HTMLEdit', gup('id'), 'html', gup('isNew')); return false;"/>
                <input type="button" class="ButtonGrey" value="Export" onclick="ExportRedirect(gup('id'), 'html')" />
            </td>        
        </tr>
        <tr>
	        <td><label>CSS</label></td>
            <td>
                <asp:Button runat="server" ID="CssViewBtn" CssClass="ButtonGrey" Text="View" OnClientClick="MediumWindow('TemplateViewer.aspx','CssView', gup('id'), 'css', gup('isNew')); return false;"/>
                <asp:Button runat="server" ID="CssEditBtn" CssClass="ButtonGrey" Text="Edit" OnClientClick="MediumWindow('TemplateEditor.aspx','CssEdit', gup('id'), 'css', gup('isNew')); return false;"/>
    	        <input type="button" class="ButtonGrey" value="Export" onclick="ExportRedirect(gup('id'), 'css')" />
            </td>
        </tr>
        <tr>
	        <td><label>Logic CSS</label></td>
            <td>
                <asp:Button runat="server" ID="LogicCssViewBtn" CssClass="ButtonGrey" Text="View" OnClientClick="MediumWindow('TemplateViewer.aspx','LogicCssView', gup('id'), 'logiccss', gup('isNew')); return false;"/>
                <asp:Button runat="server" ID="LogicCssEditBtn" CssClass="ButtonGrey" Text="Edit" OnClientClick="MediumWindow('TemplateEditor.aspx','LogicCssEdit', gup('id'), 'logiccss', gup('isNew')); return false;"/>
    	        <input type="button" class="ButtonGrey" value="Export" onclick="ExportRedirect(gup('id'), 'logiccss')" />
            </td>
        </tr>
        <tr>
	        <td><label>Javascript</label></td>
            <td>
                <asp:Button runat="server" ID="JsViewBtn" CssClass="ButtonGrey" Text="View" OnClientClick="MediumWindow('TemplateViewer.aspx','JsView', gup('id'), 'js', gup('isNew')); return false;"/>
                <asp:Button runat="server" ID="JsEditBtn" CssClass="ButtonGrey" Text="Edit" OnClientClick="MediumWindow('TemplateEditor.aspx','JsEdit', gup('id'), 'js', gup('isNew')); return false;"/>
    	        <input type="button" class="ButtonGrey" value="Export" onclick="ExportRedirect(gup('id'), 'js')" />
            </td>
        </tr>
        </table>
    </div>
</asp:Content>
