diff options
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/events/edit.html.erb | 4 | ||||
| -rw-r--r-- | app/views/events/new.html.erb | 2 | ||||
| -rw-r--r-- | app/views/layouts/admin.html.erb | 4 | ||||
| -rw-r--r-- | app/views/menu_items/edit.html.erb | 2 | ||||
| -rw-r--r-- | app/views/menu_items/new.html.erb | 4 | ||||
| -rw-r--r-- | app/views/nodes/edit.html.erb | 14 | ||||
| -rw-r--r-- | app/views/nodes/new.html.erb | 2 |
7 files changed, 13 insertions, 19 deletions
diff --git a/app/views/events/edit.html.erb b/app/views/events/edit.html.erb index 6cb04bd..45b084f 100644 --- a/app/views/events/edit.html.erb +++ b/app/views/events/edit.html.erb | |||
| @@ -19,12 +19,12 @@ | |||
| 19 | <details> | 19 | <details> |
| 20 | <summary>Change node</summary> | 20 | <summary>Change node</summary> |
| 21 | <%= text_field_tag :event_node_search_term %> | 21 | <%= text_field_tag :event_node_search_term %> |
| 22 | <div id="search_results"></div> | 22 | <div id="event_search_results" class="search_results"></div> |
| 23 | <span class="field_hint">This will re-link the event to a different node — rarely needed.</span> | 23 | <span class="field_hint">This will re-link the event to a different node — rarely needed.</span> |
| 24 | </details> | 24 | </details> |
| 25 | <% else %> | 25 | <% else %> |
| 26 | <%= text_field_tag :event_node_search_term %> | 26 | <%= text_field_tag :event_node_search_term %> |
| 27 | <div id="search_results"></div> | 27 | <div id="event_search_results" class="search_results"></div> |
| 28 | <span class="field_hint">Optional — search and pick a node to associate this event with a page.</span> | 28 | <span class="field_hint">Optional — search and pick a node to associate this event with a page.</span> |
| 29 | <% end %> | 29 | <% end %> |
| 30 | <%= f.hidden_field :node_id %> | 30 | <%= f.hidden_field :node_id %> |
diff --git a/app/views/events/new.html.erb b/app/views/events/new.html.erb index b20fe48..7a1ee7a 100644 --- a/app/views/events/new.html.erb +++ b/app/views/events/new.html.erb | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | <div class="node_description">Node</div> | 10 | <div class="node_description">Node</div> |
| 11 | <div class="node_content"> | 11 | <div class="node_content"> |
| 12 | <%= text_field_tag :event_node_search_term %> | 12 | <%= text_field_tag :event_node_search_term %> |
| 13 | <div id="search_results"></div> | 13 | <div id="event_search_results" class="search_results"></div> |
| 14 | <%= f.hidden_field :node_id %> | 14 | <%= f.hidden_field :node_id %> |
| 15 | <span class="field_hint">Optional — search and pick a node to associate this event with a page.</span> | 15 | <span class="field_hint">Optional — search and pick a node to associate this event with a page.</span> |
| 16 | </div> | 16 | </div> |
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb index e714c28..079346b 100644 --- a/app/views/layouts/admin.html.erb +++ b/app/views/layouts/admin.html.erb | |||
| @@ -56,9 +56,7 @@ | |||
| 56 | <span>Search: </span><%= text_field_tag :search_term, nil, autocomplete: "off" %> | 56 | <span>Search: </span><%= text_field_tag :search_term, nil, autocomplete: "off" %> |
| 57 | <% end %> | 57 | <% end %> |
| 58 | </div> | 58 | </div> |
| 59 | <div id="menu_search_results" style="display: none"> | 59 | <div id="menu_search_results" class="search_results" style="display: none"></div> |
| 60 | |||
| 61 | </div> | ||
| 62 | </div> | 60 | </div> |
| 63 | </body> | 61 | </body> |
| 64 | </html> | 62 | </html> |
diff --git a/app/views/menu_items/edit.html.erb b/app/views/menu_items/edit.html.erb index dc5e8f9..44e5a79 100644 --- a/app/views/menu_items/edit.html.erb +++ b/app/views/menu_items/edit.html.erb | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | <div class="node_description">Search</div> | 6 | <div class="node_description">Search</div> |
| 7 | <div class="node_content"> | 7 | <div class="node_content"> |
| 8 | <%= text_field_tag :menu_search_term %> | 8 | <%= text_field_tag :menu_search_term %> |
| 9 | <div id="search_results"></div> | 9 | <div id="menu_item_search_results" class="search_results"></div> |
| 10 | </div> | 10 | </div> |
| 11 | 11 | ||
| 12 | <div class="node_description">Node Id</div> | 12 | <div class="node_description">Node Id</div> |
diff --git a/app/views/menu_items/new.html.erb b/app/views/menu_items/new.html.erb index 68081d0..223cb8e 100644 --- a/app/views/menu_items/new.html.erb +++ b/app/views/menu_items/new.html.erb | |||
| @@ -7,9 +7,7 @@ | |||
| 7 | <td class="description">Search</td> | 7 | <td class="description">Search</td> |
| 8 | <td> | 8 | <td> |
| 9 | <%= text_field_tag :menu_search_term %> | 9 | <%= text_field_tag :menu_search_term %> |
| 10 | <div id="search_results"> | 10 | <div id="menu_item_search_results" class="search_results"></div> |
| 11 | |||
| 12 | </div> | ||
| 13 | </td> | 11 | </td> |
| 14 | </tr> | 12 | </tr> |
| 15 | <tr> | 13 | <tr> |
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index 1c19410..13b78fc 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -45,14 +45,12 @@ | |||
| 45 | <div class="node_description">parent</div> | 45 | <div class="node_description">parent</div> |
| 46 | <div class="node_content"> | 46 | <div class="node_content"> |
| 47 | <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> | 47 | <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> |
| 48 | <div id="search_results"> | 48 | <div id="move_to_search_results" class="search_results"></div> |
| 49 | 49 | <%= f.hidden_field( | |
| 50 | </div> | 50 | :staged_parent_id, |
| 51 | <%= f.hidden_field( | 51 | :value => @node.staged_parent_id || @node.parent_id |
| 52 | :staged_parent_id, | 52 | ) |
| 53 | :value => @node.staged_parent_id || @node.parent_id | 53 | %> |
| 54 | ) | ||
| 55 | %> | ||
| 56 | </div> | 54 | </div> |
| 57 | 55 | ||
| 58 | <%= fields_for @page do |d| %> | 56 | <%= fields_for @page do |d| %> |
diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb index afc632f..bb7e078 100644 --- a/app/views/nodes/new.html.erb +++ b/app/views/nodes/new.html.erb | |||
| @@ -34,7 +34,7 @@ | |||
| 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 %> |
| 37 | <div id="search_results"></div> | 37 | <div id="parent_search_results" class="search_results"></div> |
| 38 | </div> | 38 | </div> |
| 39 | </div> | 39 | </div> |
| 40 | 40 | ||
