Skip to content

static_control id and user-specified IDs on all fields #245

@sdahlbac

Description

@sdahlbac

Rationale: I planned on using static fields for displaying additional data looked up via an autocomplete, but when I couldn't find the element via jQuery I started investigating and found that there is no id on a static_control. Hence I need to access the control via id. (If there are better ways in achieving this, I'm all ears)

Looking at test "static control" the expected result is:

<div class="form-group"><label class="control-label col-sm-2 required" for="user_email">Email</label><div class="col-sm-10"><p class="form-control-static">steve@example.com</p></div></div>

Note that the paragraph does not have an id, but the label has a for that is nonexisting.

I tried fixing this myself, but got lost in all the layers and couldn't find the id in options[:id].

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions