Skip to content

Add JS for swapping examples on project creation form #184

@agjohnson

Description

@agjohnson

With #166, the project creation page now has a nice dropdown on the page to select different examples for tools. Currently, the selection doesn't do anything, as there is only one option. When we add a second option to the dropdown, there will need to be some JS or FUI interaction added.

Most likely, this could use FUI tabs for the content pane, and the dropdown would activate the tabs. This might require playing with the tab configuration as I've found tabs to be a bit fiddly.

An alternative option would be to store each example as a script element and populate the code example using Knockout.

There are two options here that could improve the UI. These can be separate work, but might dictate how we implement this:

  • Work in pygments (or a front end option) for code highlighting
  • Read the configuration files from disk instead of embedding them in the template

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementMinor improvement to code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions