summaryrefslogtreecommitdiff
path: root/app/views/nodes/new.html.erb
blob: 850207b77316ed855b48be2b4e23991619a94d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<h1>Create new node</h1>

<%= error_messages_for( :node ).gsub("Slug", "Title") %>


<p>What kind of node do you want to create?</p>

<% form_tag nodes_path do %>
<table id="new_node">
  <tr>
    <td class="description">Type</td>
    <td>
      <div>
        <%= radio_button_tag :kind, "top_level" %>
        Top Level
      </div>
      <p>
        <%= radio_button_tag :kind, "generic", :selected => true %>
        Generic ( can be created anywhere )
      </p>
      <p>
        <%= radio_button_tag :kind, "update" %>
        Update / Press release ( is automatically created in /updates )
      </p>
    </td>
  </tr>
  <tr>
    <td class="description">Title</td>
    <td><%= text_field_tag :title %></td>
  </tr>
  <tr id="parent_search_field">
    <td class="description">Parent</td>
    <td>
      <%= text_field_tag :parent_search_term %>
      <%= hidden_field_tag :parent_id %>
      <div id="search_results">

      </div>
    </td>
  </tr>
  <tr>
    <td></td>
    <td class="right"><%= submit_tag "Create" %></td>
  </tr>
</table>
<% end %>