What kind of node do you want to create?
<%= form_tag nodes_path do %>| Type |
<%= radio_button_tag :kind, "top_level" %>
Top Level
<%= radio_button_tag :kind, "generic", :selected => true %> Generic ( can be created anywhere ) <%= radio_button_tag :kind, "update" %> Update ( is automatically created in /updates/<%= Time.now.year.to_s %>/ and gets tag "update" ) <%= radio_button_tag :kind, "press_release" %> Pressemitteilung ( is automatically created in /updates/<%= Time.now.year.to_s %>/ and gets tags "update, pressemitteilung" ) |
| Title | <%= text_field_tag :title %> |
| Parent |
<%= text_field_tag :parent_search_term, @parent_name %>
<%= hidden_field_tag :parent_id, @parent_id %>
|
| <%= submit_tag "Create" %> |