Skip to content
Snippets Groups Projects

Add class attribute to form

Merged mattwire requested to merge mattwire/inlayfp:formid into main
1 unresolved thread

This makes it easier to target the form for theming because otherwise there is no unique identifier for the form.

Now we have a class for the form and wrapper div which is made up of fp- + a sanitized version of the form name (only alphanumeric and -)

image

Edited by mattwire

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 1 1 <template>
    2 2 <div style="overflow:hidden;">
    3 3
    4 <form action='#' @submit.prevent="submitForm" v-if="stage === 'form'">
    4 <form :id="inlay.initData.formID" action='#' @submit.prevent="submitForm" v-if="stage === 'form'">
  • mattwire added 1 commit

    added 1 commit

    • 6d1f96de - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • mattwire added 6 commits

    added 6 commits

    Compare with previous version

  • mattwire changed title from Add id attribute to form to Add class attribute to form

    changed title from Add id attribute to form to Add class attribute to form

  • mattwire changed the description

    changed the description

  • Author Reporter

    @artfulrobot Updated and recompiled to use class on div and form

  • merged

  • Rich mentioned in commit 19525c16

    mentioned in commit 19525c16

  • Please register or sign in to reply
    Loading