EngineeringWiki
  • Introduction
  • Top level Overview of the application
  • FAQs
  • Back End
    • Agent Pipeline
    • Mention Pipeline
    • Profile Pipeline
    • Errors
    • Overview of the Mention/Profile/Cluster Process
    • Adding a New Service
    • Activity and Status Tracking
  • Setup
    • Overview
    • How to Setup Your Local Machine
    • Setup - Cloud Machine
    • Infrastructure
    • Docker
    • Bash Commands
    • Setting up front end in Ubuntu 16.04 desktop
  • Gems/Libraries
    • Bax
    • Creating fixtures for Unit Tests
    • Audienti-Retriever
    • Scour
    • Haystack
    • Audienti-Indexer
    • Audienti-Api
    • Handler
    • Blackbook
    • Allusion
  • Code
    • Multi-step Modal Wizard
    • Structure
    • Audienti DataTables
    • Javascript
      • Passing Props From Root
      • Looping in JS
      • Binding Actions to App
      • CSSTransitionGroup
      • Code Best Practices
      • Reducer Updating an Array with Item in Middle
      • Organizing Javascript
      • Filter Array by Id
    • Design Language
  • Working
    • PostgresSQL
    • S3
    • Terminology
    • Interview Tests
    • Application Descriptions
    • Best Practices
      • Code Organization
      • Code Documentation (using Yard)
      • Git Workflow
      • Tasks and Queues
      • Working in Backend
    • Profiles & Enrichment
      • Profile ID Rules
  • Management
    • API Management
    • Bastion
    • Splash Proxy
    • Rancher
      • OpenVPN Server
      • Traefik Reverse Proxy
  • Teams & Interviews
    • Interview Questions
  • Culture
    • What Makes a World Class Engineer
  • Situational Statuses
    • 2017-11-03
    • 2018-01-09
  • Operations
Powered by GitBook
On this page
  1. Code

Multi-step Modal Wizard

Multi-step Modal Wizards

form.modal.modal-wide.multi-step id="demo-modal" reset-on-close="true"
    .modal-dialog
      .modal-content
        .modal-header
          h4.modal-title.step-1 data-step="1"
            |Step 1
          h4.modal-title.step-2 data-step="2"
            |Step 2
          h4.modal-title.step-3 data-step="3"
            |Step 3
        .modal-body.step.step-1 data-step="1"
          | This is step 1.
        .modal-body.step.step-2 data-step="2"
          | This is step 2.
        .modal-body.step.step-3 data-step="3"
          | This is the final step.
        .modal-footer
          button.btn.btn-default type="button" data-dismiss="modal"
            | Close
          button.btn.btn-primary.step.step-1 type="button" data-step="1" onclick="#{"Oma.modal.event('#demo-modal', 2)".html_safe}"
            | Continue to 2
          button.btn.btn-default.step.step-2 type="button" data-step="2" onclick="#{"Oma.modal.event('#demo-modal', 1)".html_safe}"
            | Back to 1
          button.btn.btn-primary.step.step-2 type="button" data-step="1" onclick="#{"Oma.modal.event('#demo-modal', 3)".html_safe}"
            | Continue to 3

button.btn.btn-default data-toggle="modal" data-target="#demo-modal"
  | Show

Using (in assets/oma/modal.js.coffee)

Oma['modal'] =
  event: (sel, step) ->
    $(sel).trigger 'next.m.' + step
    return
PreviousCodeNextStructure

Last updated 7 years ago