diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 01:40:37 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-16 01:40:37 +0200 |
| commit | fb7b8233f1bbf7acb88d48f96e6f81cefe168d1c (patch) | |
| tree | ea534f143235be295b55b8732b2b7d9111a380f9 /app/views/nodes | |
| parent | 467ec340be673fbc7c3140b86d8aa7e43307ad1d (diff) | |
Provide parent_unique_name in nodes#new if parent is already pre-set
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/new.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb index b63a606..49149d5 100644 --- a/app/views/nodes/new.html.erb +++ b/app/views/nodes/new.html.erb | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | <div class="node_description">Parent</div> | 33 | <div class="node_description">Parent</div> |
| 34 | <div class="node_content"> | 34 | <div class="node_content"> |
| 35 | <%= text_field_tag :parent_search_term, @parent_name %> | 35 | <%= text_field_tag :parent_search_term, @parent_name %> |
| 36 | <%= hidden_field_tag :parent_id, @parent_id %> | 36 | <%= hidden_field_tag :parent_id, @parent_id, data: { unique_name: @parent_unique_name } %> |
| 37 | <div id="parent_search_results" class="search_results"></div> | 37 | <div id="parent_search_results" class="search_results"></div> |
| 38 | </div> | 38 | </div> |
| 39 | </div> | 39 | </div> |
