Skip to content

Commit

Permalink
add layout invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Lefebvre - Kitpages committed Apr 16, 2013
1 parent 14002a8 commit bdfc54b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions Resources/views/Invoice/layoutInvoice.html.twig
@@ -0,0 +1,18 @@
<!doctype html>
<!--[if lt IE 7 ]> <html class="no-js ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>Invoice</title>
<link rel="stylesheet" type="text/css" href="{{ asset('bundles/kitpagesshop/css/common.css') }}" />
</head>
<body>
{% block kitpages_shop_body %}
{% endblock %}
</body>
</html>

4 changes: 2 additions & 2 deletions Resources/views/Invoice/table.html.twig
@@ -1,4 +1,4 @@
{% extends "KitpagesShopBundle::layout.html.twig" %}
{% extends "KitpagesShopBundle::Invoice/layoutInvoice.html.twig" %}

{% block kitpages_shop_body %}
<table class="kitpages-shop-invoice" width="600" border="1" style="border: 1px solid #333; width: 600px;">
Expand All @@ -15,7 +15,7 @@
<h2>Client</h2>
{{order.invoiceUser.firstName}} {{order.invoiceUser.lastName}}<br/>
{{order.invoiceUser.email}}<br/>
{{order.invoiceUser.countryCode|kit_shop_country(app.session.locale)}}
{{order.invoiceUser.countryCode|kit_shop_country(app.request.locale)}}
</td>
</tr>
<tr>
Expand Down

0 comments on commit bdfc54b

Please sign in to comment.