Advertisement
horozov86

default edit_profile.html

Oct 21st, 2024
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. {% extends 'base.html' %}
  2.  
  3. {% load static %}
  4.  
  5. {% block main_content %}
  6.     <div class="edit-delete">
  7.         <h2>Edit Profile</h2>
  8.         <form action="{% url 'edit profile' pk=object.pk %}" method="post">
  9.             {{ form.as_p }}  <!-- Генерира формата автоматично -->
  10.  
  11.             <button class="edit-btn" type="submit">Edit</button>  <!-- Бутон за изпращане -->
  12.  
  13.             {% csrf_token %}  <!-- За защита от CSRF атаки -->
  14.         </form>
  15.     </div>
  16. {% endblock %}
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement