-
-
Save anonymous/ad547a809ce2d6bdbc75 to your computer and use it in GitHub Desktop.
form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "ServiceBaseBundle:Website:base.html.twig" %} | |
{% block content %} | |
<h1>{% trans %}Service{% endtrans %}</h1> | |
{{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }} | |
{{ form_errors(form) }} | |
{{ form_row(form.name) }} | |
{{ form_row(form.description) }} | |
{{ form_row(form.stockable) }} | |
{{ form_row(form.value) }} | |
{{ form_row(form.tax) }} | |
{{ form_row(form.unit) }} | |
{% if form.inventory is defined %} | |
{{ form_row(form.inventory) }} | |
{% endif %} | |
{{ form_widget(form.save, {'attr': {'class': 'btn btn-primary' }} ) }} | |
{{ form_end(form) }} | |
{% endblock %} | |
{% block javascript %} | |
{{ parent() }} | |
{% javascripts | |
'@ServiceBaseBundle/Resources/public/js/form/collection.js' | |
%} | |
<script type="text/javascript" src="{{ asset_url }}"></script> | |
{% endjavascripts %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment