Simple contact plugin for Fansoro.
Use this code in Fansoro Templates to show contact form:
{Contact::form('[email protected]')}
You can ease configure and set your fields for contact form here: /plugins/contact/contact.yml
File: /plugins/contact/contact.yml
...
fields:
...
phone:
label: 'Phone'
type: text
class: 'form-control'
...
fields:
...
department:
label: 'Department'
type: select
class: 'form-control'
default_option: 'Choose a department'
options:
manufacturing: Manufacturing
administration: Administration
support: Support
File: /plugins/contact/templates/email.tpl
Phone: {$fields.phone}
fields:
text: a simple text field
type: sets the field title value
id: sets the field id
class: sets the field class
disabled: sets the field disabled state
placeholder: sets the field placeholder value
readonly: sets the field readonly state
email: an email field, with validation
type: sets the field title value
id: sets the field id
class: sets the field class
disabled: sets the field disabled state
placeholder: sets the field placeholder value
readonly: sets the field readonly state
textarea: a textarea
type: sets field type
id: sets the textarea id
class: sets the textarea class
rows: sets the textarea rows
cols: sets the textarea cols
select: a select field
type: sets field type
id: sets the select id
class: sets the select class
buttons:
button:
type: sets button type
id: sets the button id
class: sets the button class
value: sets the button value
name: sets the button name
See LICENSE