1

Type
contact
Tags
validation
interactive
no-script
anti-spam

Preview

Implementation

Markup
form-1(legend,action,method,phone,spam,[hook])
ParameterDescriptionType
legendform caption (core fieldset)string
actionURL for the form processing logicstring
methoddata transfer methodstring
phonetoggle the phone number fieldboolean
spamtoggle the spam moduleboolean
hookadditional CSS class attributestring
Brief

A basic contact form relying only on HTML and CSS. Supports input validation and feedback. A simplistic anti-spam section can be enabled or replaced with a more robust solution if needed.

Paths
  • location:  components/forms/1
  • activate:  templates/_/mixins.pug
Dependencies
  • _.pug
  • index.styl
  • *.svg
Examples
+form-1("Contact", "assets/logic/php/process.php", "post", false, true)
form-1()