Skip to content

Commit

Permalink
Use payment method choice css
Browse files Browse the repository at this point in the history
  • Loading branch information
ekyna committed May 8, 2015
1 parent 1c91a97 commit d54a2ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
23 changes: 10 additions & 13 deletions DependencyInjection/EkynaSubscriptionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,16 @@ public function prepend(ContainerBuilder $container)
$bundles = $container->getParameter('kernel.bundles');

if (array_key_exists('TwigBundle', $bundles)) {
$this->configureTwigBundle($container);
$container->prependExtensionConfig('twig', array(
'form' => array('resources' => array(
'EkynaSubscriptionBundle:Form:form_div_layout.html.twig'
)),
));
}
if (array_key_exists('AsseticBundle', $bundles)) {
$container->prependExtensionConfig('assetic', array(
'bundles' => array('EkynaSubscriptionBundle')
));
}
}

/**
* Configures the TwigBundle.
*
* @param ContainerBuilder $container
*/
protected function configureTwigBundle(ContainerBuilder $container)
{
$container->prependExtensionConfig('twig', array(
'form' => array('resources' => array('EkynaSubscriptionBundle:Form:form_div_layout.html.twig')),
));
}
}
9 changes: 9 additions & 0 deletions Resources/views/Account/payment.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@
</form>
{% endspaceless %}
{% endblock account %}

{% block stylesheets -%}
{{ parent() }}
{% stylesheets output='css/payment.css' filter='cssrewrite, ?yui_css'
'@EkynaPaymentBundle/Resources/asset/css/payment.css'
%}
<link href="{{ asset_url }}" rel="stylesheet" type="text/css" />
{% endstylesheets %}
{%- endblock stylesheets %}

0 comments on commit d54a2ae

Please sign in to comment.