<%@ 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">

    <h4>
        <asp:Label ID="Szczegóły" runat="server" Text="<%$Resources:tlumaczenia,Szczegoly%>"></asp:Label>
    </h4>
    
    <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>
              
        <tr>
            <td colspan="2" class="bold" id="odstep">
                <%=HttpContext.GetGlobalResourceObject("tlumaczenia", "Kontakt").ToString()%>
            </td>                
        </tr>    
        <tr>
            <td class="bold">  
                <%=HttpContext.GetGlobalResourceObject("tlumaczenia", "ImieNazwisko").ToString()%> 
            </td>    
            <td class="textbox">
                <%=Model.vPlatnosciEcard.Imie + " " + Model.vPlatnosciEcard.Nazwisko%></td>
        </tr>
        <tr>
            <td class="bold"><asp:Label ID="Adres2" runat="server" Text="<%$Resources:tlumaczenia,Adres%>"></asp:Label></td>        
            <td class="textbox"><%=Model.vPlatnosciEcard.ulica + " " + Model.vPlatnosciEcard.kod + ", " + Model.vPlatnosciEcard.miasto%></td>
        </tr>
        <tr>
            <td class="bold"><asp:Label ID="Telefon" runat="server" Text="<%$Resources:tlumaczenia,Telefon%>"></asp:Label><br /><br /></td>
            <td class="textbox"><%=Model.vPlatnosciEcard.telefon%><br /><br /></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 colspan="2" class="bold" id="odstep"><br />
                <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 type="submit" value="<%$Resources:tlumaczenia,Place%>" runat="server"/>
                </span>
            </td>
        </tr>         
    </table>
    <%}%>
</asp:Content>
