summaryrefslogtreecommitdiff
path: root/includes/sys_form.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-06-04 16:00:33 +0200
committermsquare <msquare@notrademark.de>2019-06-04 21:22:19 +0200
commitb6eda8dbfc9880239bdc622a0b6988ad0a8ab722 (patch)
tree6ba53d23983e945a19ee501e6996500d33029208 /includes/sys_form.php
parent94fea1edadc37211228902f576c374bd0b45ef65 (diff)
Fix profile link to mark angels as arrived
Diffstat (limited to 'includes/sys_form.php')
-rw-r--r--includes/sys_form.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/sys_form.php b/includes/sys_form.php
index af8d094a..de271eda 100644
--- a/includes/sys_form.php
+++ b/includes/sys_form.php
@@ -204,6 +204,7 @@ function form_info($label, $text = '')
* @param string $label
* @param string $class
* @param bool $wrapForm
+ * @param string $buttonType
* @return string
*/
function form_submit($name, $label, $class = '', $wrapForm = true, $buttonType = 'primary')
@@ -402,11 +403,12 @@ function form_element($label, $input, $for = '')
*
* @param string[] $elements
* @param string $action
+ * @param bool $inline
* @return string
*/
-function form($elements, $action = '')
+function form($elements, $action = '', $inline = false)
{
- return '<form action="' . $action . '" enctype="multipart/form-data" method="post">'
+ return '<form action="' . $action . '" enctype="multipart/form-data" method="post"' . ($inline ? ' style="float:left"' : '') . '>'
. form_csrf()
. join($elements)
. '</form>';