{% extends 'bootstrap_base.html' %}


{% block main  %}


    <div class="row">
        <div class="col-md-8">

            {% block coedytowac %}

            {% endblock %}

            <form role="form"  method="post">
                <div class="form-group">
                    {% csrf_token %}
                    {{ form }}
                </div>
                <button type="submit" class="btn btn-default btn-lg" name="save">Zapisz</button>

                {% block archives %}

                {% endblock %}


                <!-- modal button-->
                <button type="button" class="btn btn-danger btn-lg" data-toggle="modal" data-target="#myModal">Usuń</button>

                <!-- Modal -->
                <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="myModalLabel">Uwaga!</h4>
                            </div>
                            <div class="modal-body">
                                <p>Obiekt zostanie usunięty bezpowrotnie po naciśnięciu "Usuń".</p>
                                <p>Wybierz "Anuluj", jeśli nie chcesz usuwać obiektu.
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default" data-dismiss="modal">Anuluj</button>
                                <button type="submit" class="btn btn-danger" name="delete">Usuń</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>


        </div>
    </div>
    <br><br>

{% endblock %}



{'avg_line_length': 34.86206896551724, 'max_line_length': 156, 'alphanum_fraction': 0.4287833827893175, 'licenses': ['MIT'], 'repository_name': 'szymanskirafal/ab', 'path': 'templates/baza/edytuj.html', 'size': 2030, 'lang': 'HTML'}