summaryrefslogtreecommitdiff
path: root/app/views/nodes/new.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 22:52:50 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 22:52:50 +0200
commit9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch)
tree8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /app/views/nodes/new.html.erb
parent85a01e35274b8d4d4165a7b26bd7986e211246bb (diff)
parent1853082fcd8c067390c246f9daa01a9b47387497 (diff)
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'app/views/nodes/new.html.erb')
-rw-r--r--app/views/nodes/new.html.erb21
1 files changed, 14 insertions, 7 deletions
diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb
index 850207b..028d727 100644
--- a/app/views/nodes/new.html.erb
+++ b/app/views/nodes/new.html.erb
@@ -1,11 +1,14 @@
1<h1>Create new node</h1> 1<h1>Create new node</h1>
2 2
3<%= error_messages_for( :node ).gsub("Slug", "Title") %> 3<% if @node.errors.any? %>
4 4 <div class="error_messages">
5 <ul><% @node.errors.full_messages.each do |msg| %><li><%= msg.to_s.gsub("Slug", "Title") %></li><% end %></ul>
6 </div>
7<% end %>
5 8
6<p>What kind of node do you want to create?</p> 9<p>What kind of node do you want to create?</p>
7 10
8<% form_tag nodes_path do %> 11<%= form_tag nodes_path do %>
9<table id="new_node"> 12<table id="new_node">
10 <tr> 13 <tr>
11 <td class="description">Type</td> 14 <td class="description">Type</td>
@@ -20,7 +23,11 @@
20 </p> 23 </p>
21 <p> 24 <p>
22 <%= radio_button_tag :kind, "update" %> 25 <%= radio_button_tag :kind, "update" %>
23 Update / Press release ( is automatically created in /updates ) 26 Update ( is automatically created in /updates/<%= Time.now.year.to_s %>/ and gets tag "update" )
27 </p>
28 <p>
29 <%= radio_button_tag :kind, "press_release" %>
30 Pressemitteilung ( is automatically created in /updates/<%= Time.now.year.to_s %>/ and gets tags "update, pressemitteilung" )
24 </p> 31 </p>
25 </td> 32 </td>
26 </tr> 33 </tr>
@@ -31,8 +38,8 @@
31 <tr id="parent_search_field"> 38 <tr id="parent_search_field">
32 <td class="description">Parent</td> 39 <td class="description">Parent</td>
33 <td> 40 <td>
34 <%= text_field_tag :parent_search_term %> 41 <%= text_field_tag :parent_search_term, @parent_name %>
35 <%= hidden_field_tag :parent_id %> 42 <%= hidden_field_tag :parent_id, @parent_id %>
36 <div id="search_results"> 43 <div id="search_results">
37 44
38 </div> 45 </div>
@@ -43,4 +50,4 @@
43 <td class="right"><%= submit_tag "Create" %></td> 50 <td class="right"><%= submit_tag "Create" %></td>
44 </tr> 51 </tr>
45</table> 52</table>
46<% end %> \ No newline at end of file 53<% end %>