{% form_theme form 'NeblionScrumBundle:Form:fields.html.twig' %}

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>{{ 'Story estimate edition:'|trans }} {{ story.name }}</h3>
</div>

<div id="modal-body" class="modal-body">
    {% if success %}
        <div class="alert alert-success">
            <a class="close" data-dismiss="alert" href="#">×</a>
            <h4 class="alert-heading">{{ 'Success!'|trans }}</h4>
            {{ ''|trans }}
        </div>
    {% endif %}
    
    <form id="modal-form" action="{{ path('story_estimate', { 'id': story.id }) }}" method="post" {{ form_enctype(form) }} class="form-horizontal">
        {{ form_widget(form) }}
    </form>
</div>

<div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal">Close</a>
    <a id="modal-submit-form" href="" class="btn btn-primary">Save changes</a>
</div>

{% if success %}
    <script type="text/javascript">
        $("#story-estimate-{{ story.id }}").text("{{ story.estimate }}");
        $('#backlog').load("{{ path('project_backlog', { 'id': project.id }) }}");
    </script>
{% endif %}
{% form_theme form 'NeblionScrumBundle:Form:fields.html.twig' %}

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>{{ 'Story estimate edition:'|trans }} {{ story.name }}</h3>
</div>

<div id="modal-body" class="modal-body">
    {% if success %}
        <div class="alert alert-success">
            <a class="close" data-dismiss="alert" href="#">×</a>
            <h4 class="alert-heading">{{ 'Estimate was upadted with success!'|trans }}</h4>
        </div>
    {% endif %}
    
    <form id="modal-form" action="{{ path('story_estimate', { 'id': story.id }) }}" method="post" {{ form_enctype(form) }} class="form-horizontal">
        {{ form_widget(form) }}
    </form>
</div>

<div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal">Close</a>
    <a id="modal-submit-form" href="" class="btn btn-primary">Save changes</a>
</div>

{% if success %}
    <script type="text/javascript">
        $("#story-estimate-{{ story.id }}").text("{{ story.estimate }}");
        $('#backlog').load("{{ path('project_backlog', { 'id': project.id }) }}");
    </script>
{% endif %}
Add message when story/estimate update with success
Add message when story/estimate update with success
