diff --git a/models/Form.php b/models/Form.php index d006907..53549a0 100644 --- a/models/Form.php +++ b/models/Form.php @@ -10,7 +10,7 @@ class Form { public $request_method; public $request_url; - public $content_above; + public $before_fields; public $buttons_extra; private $fields = []; private $data = []; @@ -25,7 +25,7 @@ class Form $this->request_url = !empty($options['request_url']) ? $options['request_url'] : BASEURL; $this->fields = !empty($options['fields']) ? $options['fields'] : []; $this->buttons_extra = !empty($options['buttons_extra']) ? $options['buttons_extra'] : null; - $this->content_above = !empty($options['content_above']) ? $options['content_above'] : null; + $this->before_fields = !empty($options['before_fields']) ? $options['before_fields'] : null; $this->submit_caption = !empty($options['submit_caption']) ? $options['submit_caption'] : 'Save information'; $this->trim_inputs = !empty($options['trim_inputs']); } diff --git a/templates/FormView.php b/templates/FormView.php index 044f395..ebc5321 100644 --- a/templates/FormView.php +++ b/templates/FormView.php @@ -31,8 +31,8 @@ class FormView extends SubTemplate echo '
'; - if (isset($this->form->content_above)) - echo $this->form->content_above; + if (isset($this->form->before_fields)) + echo $this->form->before_fields; $this->missing = $this->form->getMissing(); $this->data = $this->form->getData();