Ticket #14428: csrf_patch.diff
File csrf_patch.diff, 8.6 KB (added by , 14 years ago) |
---|
-
graphics/templates/goflow/graphics/graph.html
10 10 {{ v.image.graphic|safe }} 11 11 {% endfor %} 12 12 13 <form method=get action=save> 13 <form method=get action=save>{% csrf_token %} 14 14 <input type=hidden name=image1_x><input type=hidden name=image1_y> 15 15 <input type=submit name=action value=Save> 16 16 </form> -
apptools/templates/admin/workflow/application/change_form.html
29 29 </ul> 30 30 {% endif %}{% endif %} 31 31 {% endblock %} 32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %} 33 33 <div> 34 34 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} 35 35 {% if save_on_top %}{% submit_row %}{% endif %} -
apptools/templates/admin/workflow/pushapplication/change_form.html
29 29 </ul> 30 30 {% endif %}{% endif %} 31 31 {% endblock %} 32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %} 33 33 <div> 34 34 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} 35 35 {% if save_on_top %}{% submit_row %}{% endif %} -
apptools/templates/goflow/test_start.html
2 2 3 3 {% block content %} 4 4 <h1>Create test workflow instances</h1> 5 <form method="post"> 5 <form method="post">{% csrf_token %} 6 6 <table> 7 7 {{ form }} 8 8 </table> -
apptools/templates/goflow/view_application.html
33 33 34 34 35 35 {% block content_form %} 36 <form method="post"> 36 <form method="post">{% csrf_token %} 37 37 38 38 {% block buttons_form %} 39 39 {% for value in ok_values %} -
apptools/templates/goflow/start_proto.html
19 19 <li> a text field that you should use to enter comments; these will be logged in the history. 20 20 <li> as many submit buttons as outer transitions with conditions. 21 21 </ul> 22 <form method="post"> 22 <form method="post">{% csrf_token %} 23 23 <table> 24 24 {{ form }} 25 25 </table> -
apptools/templates/goflow/start_application.html
34 34 {% else %} 35 35 <form method="post"> 36 36 {% endif %} 37 37 {% csrf_token %} 38 38 {% load apptools_lib %} 39 39 {% form_ext form %} 40 40 -
apptools/templates/goflow/default_app.html
16 16 (The instance history allows to test and debug the workflow) 17 17 <pre>{{history}}</pre> 18 18 <h3>Add comments in history</h3> 19 <form method="post"> 19 <form method="post">{% csrf_token %} 20 20 <table> 21 21 {{ form }} 22 22 </table> -
apptools/templates/goflow/edit_model.html
44 44 {% else %} 45 45 <form method="post"> 46 46 {% endif %} 47 47 {% csrf_token %} 48 48 {% load apptools_lib %} 49 49 {% form_ext form %} 50 50 -
graphics2/templates/admin/graphics2/processimage/change_form.html
22 22 </ul> 23 23 {% endif %}{% endif %} 24 24 {% endblock %} 25 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}25 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %} 26 26 <div> 27 27 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} 28 28 {% if opts.admin.save_on_top %}{% submit_row %}{% endif %} … … 71 71 <div id="content-main" class=module> 72 72 <h2>Positioning activities in the process graph image</h2> 73 73 74 <form method= getaction="pos_activity">74 <form method='get' action="pos_activity"> 75 75 <table> 76 76 <tr> 77 77 <td> 78 78 Select an activity then click on its symbol in the image. 79 79 <br> 80 <select name= activity>80 <select name='activity'>{% csrf_token %} 81 81 {% for a in original.list_activities %} 82 82 <option value="{{ a.id }}">{{ a.title }}</option> 83 83 {% endfor %} -
workflow/templates/admin/workflow/application/change_form.html
29 29 </ul> 30 30 {% endif %}{% endif %} 31 31 {% endblock %} 32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %} 33 33 <div> 34 34 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} 35 35 {% if save_on_top %}{% submit_row %}{% endif %} -
workflow/templates/admin/workflow/pushapplication/change_form.html
29 29 </ul> 30 30 {% endif %}{% endif %} 31 31 {% endblock %} 32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}32 <form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %} 33 33 <div> 34 34 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %} 35 35 {% if save_on_top %}{% submit_row %}{% endif %} -
workflow/templates/goflow/login.html
17 17 <p class="errornote">{{ error_message }}</p> 18 18 {% endif %} 19 19 <div id="content-main"> 20 <form action="{{ app_path }}" method="post" id="login-form"> 20 <form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %} 21 21 <div class="form-row"> 22 22 <label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" /> 23 23 </div>