summaryrefslogtreecommitdiff
path: root/app/views/menu_items/new.html.erb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-08-09 11:57:44 +0200
committerhukl <contact@smyck.org>2009-08-09 11:57:44 +0200
commit9b4d055b649ad24ad1482f72d138aa73da1e4bd7 (patch)
treefa97f1877332fe05d1eb752c7ac63dce44edc32d /app/views/menu_items/new.html.erb
parent550d9c1790b202175076894bf82d202bc32db5b6 (diff)
refactored the way new menu items are created. went back to rest and added the js ajax search to fill out the form for you. much cleaner, unobtrusive approach.
Diffstat (limited to 'app/views/menu_items/new.html.erb')
-rw-r--r--app/views/menu_items/new.html.erb34
1 files changed, 32 insertions, 2 deletions
diff --git a/app/views/menu_items/new.html.erb b/app/views/menu_items/new.html.erb
index e3f800e..64b9abb 100644
--- a/app/views/menu_items/new.html.erb
+++ b/app/views/menu_items/new.html.erb
@@ -1,2 +1,32 @@
1<h1>MenuItems#new</h1> 1<h1>Add Menu Item</h1>
2<p>Find me in app/views/menu_items/new.html.erb</p> 2
3<% form_for @menu_item do |f| %>
4 <table>
5
6 <tr>
7 <td class="description">Search</td>
8 <td>
9 <%= text_field_tag :menu_search_term %>
10 <div id="search_results">
11
12 </div>
13 </td>
14 </tr>
15 <tr>
16 <td class="description">Node Id</td>
17 <td><%= f.text_field :node_id %></td>
18 </tr>
19 <tr>
20 <td class="description">Path</td>
21 <td><%= f.text_field :path %></td>
22 </tr>
23 <tr>
24 <td class="description">Title</td>
25 <td><%= f.text_field :title %></td>
26 </tr>
27 <tr>
28 <td></td>
29 <td class="right"><%= f.submit 'Create' %></td>
30 </tr>
31 </table>
32<% end %> \ No newline at end of file