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].
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
idon 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:
Note that the paragraph does not have an
id, but the label has aforthat is nonexisting.I tried fixing this myself, but got lost in all the layers and couldn't find the id in
options[:id].