From 1bf3ce0350527de5571ecc9d56440da79ee128f6 Mon Sep 17 00:00:00 2001
From: Philipp Rieber
Date: Mon, 6 Jan 2014 22:46:07 +0100
Subject: [PATCH] [Reference][Form Types] Add missing docs for "action" and
"method" option
---
reference/forms/types/form.rst | 3 +++
reference/forms/types/options/action.rst.inc | 11 +++++++++++
reference/forms/types/options/method.rst.inc | 20 ++++++++++++++++++++
3 files changed, 34 insertions(+)
create mode 100644 reference/forms/types/options/action.rst.inc
create mode 100644 reference/forms/types/options/method.rst.inc
diff --git a/reference/forms/types/form.rst b/reference/forms/types/form.rst
index dfe67119f6c..14200097904 100644
--- a/reference/forms/types/form.rst
+++ b/reference/forms/types/form.rst
@@ -59,3 +59,6 @@ on all fields.
.. include:: /reference/forms/types/options/invalid_message_parameters.rst.inc
+.. include:: /reference/forms/types/options/action.rst.inc
+
+.. include:: /reference/forms/types/options/method.rst.inc
diff --git a/reference/forms/types/options/action.rst.inc b/reference/forms/types/options/action.rst.inc
new file mode 100644
index 00000000000..821197ae24f
--- /dev/null
+++ b/reference/forms/types/options/action.rst.inc
@@ -0,0 +1,11 @@
+.. versionadded:: 2.3
+ The ``action`` option was introduced in Symfony 2.3.
+
+action
+~~~~~~
+
+**type**: ``string`` **default**: empty string
+
+This option specifies where to send the form's data on submission (usually an
+URI). An empty value is considered a same-document references, i.e. the form
+will be submitted to the same URI that rendered the form.
diff --git a/reference/forms/types/options/method.rst.inc b/reference/forms/types/options/method.rst.inc
new file mode 100644
index 00000000000..7744367205d
--- /dev/null
+++ b/reference/forms/types/options/method.rst.inc
@@ -0,0 +1,20 @@
+.. versionadded:: 2.3
+ The ``method`` option was introduced in Symfony 2.3.
+
+method
+~~~~~~
+
+**type**: ``string`` **default**: ``POST``
+
+This option specifies the HTTP method used to submit the form's data. Possible
+values are:
+
+* POST
+* GET
+* PUT
+* DELETE
+* PATCH
+
+.. note::
+ Using ``PUT``, ``PATCH`` and ``DELETE`` is only allowed if
+ :ref:`configuration-framework-http_method_override` is enabled.