<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Platnosci.Models.InvoiceDetailsViewData>" %>
<%@ Import Namespace="System" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	 <%=HttpContext.GetGlobalResourceObject("tlumaczenia", "ShowTitle").ToString()%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="SzczegolyZlecenia">
        <asp:Label ID="Szczegoly" runat="server" Text="<%$Resources:tlumaczenia,Szczegoly%>"></asp:Label>
    </div>
    
    <p class="bold"><asp:Label ID="SprDane" runat ="server" Text="<%$Resources:tlumaczenia,SprawdzDane%>"></asp:Label></p>  
    
    <% using (Html.BeginForm("Show", "Platnosc", FormMethod.Post, new { id = "myform" })){ %>
    
    <table cellpadding="0" cellspacing="0" border="0">
        <tr><td><%=Html.Hidden("Payer.Id_faktury", Model.vPlatnosciEcard.ID_faktury) %></td></tr>
              
        <%-- sekcja: szczegóły faktury --%> 
        <tr>
            <td colspan="2" class="naglowekTab">
               <%=HttpContext.GetGlobalResourceObject("tlumaczenia", "DaneFaktury").ToString()%>
            </td>                
        </tr>
        <tr>            
            <td class="col1">                
                <asp:Label ID="Label1" runat ="server" Text="<%$Resources:tlumaczenia,Status_faktury%>"></asp:Label>
            </td>
            <td class="textbox" id="unpaid"><%=HttpContext.GetGlobalResourceObject("tlumaczenia", "niezaplacona").ToString()%></td>
        </tr>                  
        <tr>            
            <td class="col1">                
                <asp:Label ID="nazwafirmy" runat ="server" Text="<%$Resources:tlumaczenia,Nazwa%>"></asp:Label>
            </td>
            <td class="textbox"><%=Model.vPlatnosciEcard.FullName%></td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="adres" runat="server" Text="<%$Resources:tlumaczenia,Adres%>"></asp:Label></td>
            <td class="textbox"><%=Model.vPlatnosciEcard.Address + " " + Model.vPlatnosciEcard.PostalCode + ", " + Model.vPlatnosciEcard.City%></td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="nip" runat ="server" Text="<%$Resources:tlumaczenia,Nip%>"></asp:Label></td>
            <td class="textbox"><%=Model.vPlatnosciEcard.Nabywca_nip%></td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="NrFaktury" runat ="server" Text="<%$Resources:tlumaczenia,NumerFaktury%>"></asp:Label></td>
            <td class="textbox"><%=Model.vPlatnosciEcard.Faktura_Numer%></td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="DataWystawienia" runat ="server" Text="<%$Resources:tlumaczenia,DataWystawienia%>"></asp:Label></td>
            <td class="textbox"><%=String.Format("{0:dd-MM-yyyy}", Model.vPlatnosciEcard.Data_Wystawienia)%></td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="termin" runat ="server" Text="<%$Resources:tlumaczenia,TerminPlatnosci%>"></asp:Label></td>
            <td class="textbox"><%=String.Format("{0:dd-MM-yyyy}", Model.vPlatnosciEcard.Termin_zaplaty)%></td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="brutto" runat ="server"  Text="<%$Resources:tlumaczenia,Brutto%>"></asp:Label></td>
            <td class="textbox"><%=Model.brutto%></td>
        </tr>
        <tr>
            <td class="pustaLinia"></td>
        </tr>
        <%-- sekcja: kontakt do opiekuna handlowego--%>
        <tr>
            <td colspan="2" class="naglowekTab">
               <%=HttpContext.GetGlobalResourceObject("tlumaczenia", "Kontakt").ToString().ToUpper()%>
            </td>                
        </tr>    
        <tr>
            <td class="col1">  
                <%=HttpContext.GetGlobalResourceObject("tlumaczenia", "ImieNazwisko").ToString()%> 
            </td>    
            <td class="textbox">
                <%=Model.vPlatnosciEcard.Imie + " " + Model.vPlatnosciEcard.Nazwisko%>
            </td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="Adres2" runat="server" Text="<%$Resources:tlumaczenia,ulica%>"></asp:Label></td>        
            <td class="textbox"><%=Model.vPlatnosciEcard.ulica%></td>
        </tr>
         <tr>
            <td class="col1"><asp:Label ID="Label2" runat="server" Text="<%$Resources:tlumaczenia,Miasto%>"></asp:Label></td>        
            <td class="textbox"><%=Model.vPlatnosciEcard.kod + " " + Model.vPlatnosciEcard.miasto%></td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="Telefon" runat="server" Text="<%$Resources:tlumaczenia,Telefon%>"></asp:Label></td>
            <td class="textbox"><%=Model.vPlatnosciEcard.telefon%></td>            
        </tr> 
        <tr>
            <td class="pustaLinia"></td>
        </tr>
        <%-- sekcja: dane wlasciciela karty --%>
        <tr>
            <td colspan="2" class="naglowekTab">
                <%=HttpContext.GetGlobalResourceObject("tlumaczenia", "DaneWlasciciela").ToString()%>
            </td>                
        </tr>
        <tr>        
            <td colspan="2" class="col">
                <asp:Label ID="w_karty" runat ="server" Text="<%$Resources:tlumaczenia,WlascicielKarty%>"></asp:Label>
            </td>            
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="imie" runat ="server" Text="<%$Resources:tlumaczenia,Imie%>"></asp:Label></td>
            <td class="textbox1">
                <%=Html.TextBox("Payer.FirstName", Model.Payer.FirstName)%>
                <%=Html.ValidationMessage("Payer.FirstName")%>
            </td>
        </tr>
        <tr>
            <td class="col1"><asp:Label ID="nazwisko" runat ="server" Text="<%$Resources:tlumaczenia,Nazwisko%>"></asp:Label></td>
            <td class="textbox1">
                <%=Html.TextBox("Payer.LastName", Model.Payer.LastName)%>
                <%=Html.ValidationMessage("Payer.LastName")%>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <br />
                <span class="but">
                    <input id="place" name="id" type="submit" value="<%=HttpContext.GetGlobalResourceObject("tlumaczenia","Place").ToString()%>"/>
                </span>
            </td>
        </tr>         
    </table>
    <%}%>
</asp:Content>
