{% extends 'doc/en/base.html' %}
{% load static %}
{% block content %}
{% verbatim %}
<h1 class="text-white">Update</h1>
<pre><code>
{% extends 'blitz_crud_update.html' %}
</code></pre>
<pre><code>
{% extends extend_template %}
{% block content %}
&lt;div class="container"&gt;
    {% if context.title %}&lt;h1&gt;{{context.title}}&lt;/h1&gt;{% endif %}
    &lt;form method="POST"&gt;
        &lt;input type="hidden" name="_method" value="PUT"&gt;
        {% csrf_token %}
        {{ formset.management_form }}
        {% for form in formset %}
            &lt;div class="card" style="margin-bottom: 7px;"&gt;
                &lt;div class="card-body"&gt;
                    {{form.as_p}}
                &lt;/div&gt;
            &lt;/div&gt;
        {% endfor %}
        &lt;div class="float-right" style="padding-bottom: 10px;"&gt;
            &lt;button type="submit" class="btn btn-warning"&gt;&lt;i class="fas fa-edit"&gt;&lt;/i&gt; {{crud_button.update}}&lt;/button&gt;
            &lt;a role="button" href="{% url crud_url.view %}" type="button" class="btn btn-secondary"&gt;&lt;i class="fas fa-times"&gt;&lt;/i&gt; {{crud_button.cancel}}&lt;/a&gt;
        &lt;/div&gt;
    &lt;/form&gt;
&lt;/div&gt;
{% endblock %}
</code></pre>
<h6 class="text-white">Important highlight in the hidden field on the form.</h6>
<pre><code>
&lt;input type="hidden" name="_method" value="PUT"&gt;
</code></pre>
<p class="text-white"><blitztext>Blitz Work</blitztext> offers full support to methods
(Get, Post, Put and Delete) of HTTP, but HTML Forms only support the methods (Get and Post),
For the PUT and Delete methods, it is necessary to include this field in the forms of
Edition and elimination.</p>
{% endverbatim %}
{% endblock content %}