<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage"%>
<%@ Import Namespace="Platnosci.Models" %> 

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server" >
     <%
         FunkcjePlatnosci func = new FunkcjePlatnosci();
         string str = func.setTitle(); 
     %>
	 <%=str + HttpContext.GetGlobalResourceObject("tlumaczenia", "PageLogin").ToString()%>
</asp:Content>

<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
  
    <h2>
        <%=HttpContext.GetGlobalResourceObject("tlumaczenia","LoginInfo").ToString()%>
    </h2>                        
    
    <%string info = HttpContext.GetGlobalResourceObject("tlumaczenia", "validateInfo").ToString(); %>
    <%= Html.ValidationSummary(info) %>

    <% using (Html.BeginForm()) { %>
        
        <table class="tablelogin"> 
            <tr>
                <td>
                    <asp:Label ID="info" Text="<%$Resources:tlumaczenia,info %>" runat="server"></asp:Label>
                    <br /><br /> 
                </td>
            </tr>                        
            <tr>
                <td class="label_w"><asp:Label ID="nip" Text="<%$Resources:tlumaczenia,Nip %>" runat="server"></asp:Label></td>
            </tr>
            <tr>    
                <td>
                    <%= Html.TextBox("nip")%>
                    <%= Html.ValidationMessage("nip","*")%>
                </td>
            </tr>
            <tr>
                <td class="label_w"><asp:Label ID="numerfaktury" Text="<%$Resources:tlumaczenia,NumerFaktury %>" runat="server"></asp:Label></td>
            </tr>
            <tr>    
                <td>
                    <%= Html.TextBox("numer_faktury")%>
                    <%= Html.ValidationMessage("numer_faktury","*")%>
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                    <input id="but" name="id" type="submit" value="<%=HttpContext.GetGlobalResourceObject("tlumaczenia","Zaloguj").ToString()%>"/>
                </td>
            </tr>                                
        </table>     
    <% } %>
</asp:Content>
