diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-23 18:04:37 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-23 18:04:37 +0200 |
| commit | 6424e10be5a89f175a74c71c55660412a169b8b8 (patch) | |
| tree | ae8c8111bd1e8c6e82c0a5f9a2c4b088c92bafe5 /app/views/nodes | |
| parent | 375ed745052148faeb34763087fe04214105f1b8 (diff) | |
Update deployed state to what's currently running
Diffstat (limited to 'app/views/nodes')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 156 |
1 files changed, 66 insertions, 90 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index ee11047..612a3d3 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -11,100 +11,76 @@ | |||
| 11 | <%= f.error_messages %> | 11 | <%= f.error_messages %> |
| 12 | 12 | ||
| 13 | <div id="metadata"> | 13 | <div id="metadata"> |
| 14 | <table> | 14 | <div class="node_description">Event</div> |
| 15 | <tr> | 15 | <div class="node_content"><%= event_information %></div> |
| 16 | <td class="description">Event</td> | ||
| 17 | <td><%= event_information %></td> | ||
| 18 | </tr> | ||
| 19 | <tr> | ||
| 20 | <td class="description">Slug</td> | ||
| 21 | <td> | ||
| 22 | <%= | ||
| 23 | f.text_field( | ||
| 24 | :staged_slug, :value => @node.staged_slug || @node.slug | ||
| 25 | ) | ||
| 26 | %> | ||
| 27 | </td> | ||
| 28 | </tr> | ||
| 29 | <tr> | ||
| 30 | <td class="description">parent</td> | ||
| 31 | <td> | ||
| 32 | <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> | ||
| 33 | <div id="search_results"> | ||
| 34 | 16 | ||
| 35 | </div> | 17 | <div class="node_description">Slug</div> |
| 36 | <%= f.hidden_field( | 18 | <div class="node_content"> |
| 37 | :staged_parent_id, | 19 | <%= f.text_field( |
| 38 | :value => @node.staged_parent_id || @node.parent_id | 20 | :staged_slug, :value => @node.staged_slug || @node.slug |
| 39 | ) | 21 | ) |
| 40 | %> | 22 | %> |
| 41 | </td> | 23 | </div> |
| 42 | </tr> | 24 | |
| 25 | <div class="node_description">parent</div> | ||
| 26 | <div class="node_content"> | ||
| 27 | <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> | ||
| 28 | <div id="search_results"> | ||
| 29 | |||
| 30 | </div> | ||
| 31 | <%= f.hidden_field( | ||
| 32 | :staged_parent_id, | ||
| 33 | :value => @node.staged_parent_id || @node.parent_id | ||
| 34 | ) | ||
| 35 | %> | ||
| 36 | </div> | ||
| 43 | 37 | ||
| 44 | <% fields_for @draft do |d| %> | 38 | <% fields_for @draft do |d| %> |
| 45 | <tr> | 39 | <div class="node_description">Tags - comma seperated</div> |
| 46 | <td class="description">Tags - comma seperated</td> | 40 | <div class="node_content"><%= text_field_tag :tag_list, @draft.tag_list %></div> |
| 47 | <td><%= text_field_tag :tag_list, @draft.tag_list %></td> | 41 | |
| 48 | </tr> | 42 | <div class="node_description">Publish at</div> |
| 49 | <tr> | 43 | <div class="node_content"><%= d.datetime_select :published_at, :value => @draft.published_at %></div> |
| 50 | <td class="description">Publish at</td> | 44 | |
| 51 | <td><%= d.datetime_select :published_at, :value => @draft.published_at %></td> | 45 | <div class="node_description">Template</div> |
| 52 | </tr> | 46 | <div class="node_content"><%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %></div> |
| 53 | <tr> | 47 | |
| 54 | <td class="description">Template</td> | 48 | <div class="node_description">Author</div> |
| 55 | <td><%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %></td> | 49 | <div class="node_content"><%= d.select :user_id, user_list %></div> |
| 56 | </tr> | 50 | |
| 57 | <tr> | 51 | <div class="node_description">Images</div> |
| 58 | <td class="description">Author</td> | 52 | <div class="node_content"> |
| 59 | <td><%= d.select :user_id, user_list %></td> | 53 | <ul id="image_box" rel="<%= @draft.id %>"> |
| 60 | </tr> | 54 | <% @draft.assets.images.each do |image| %> |
| 61 | <tr> | 55 | <li rel="images_<%= image.id %>"> |
| 62 | <td class="description">Images</td> | 56 | <%= image_tag(image.upload.url(:thumb)) %> |
| 63 | <td> | 57 | </li> |
| 64 | <ul id="image_box" rel="<%= @draft.id %>"> | 58 | <% end %> |
| 65 | <% @draft.assets.images.each do |image| %> | 59 | </ul> |
| 66 | <li rel="images_<%= image.id %>"> | 60 | <div class="clear_left right"> |
| 67 | <%= image_tag(image.upload.url(:thumb)) %> | 61 | <a id="image_browser_toggle" class="unselected" href="#">image browser</a> |
| 68 | </li> | 62 | </div> |
| 69 | <% end %> | 63 | <div id="image_browser"> |
| 70 | </ul> | 64 | <ul> |
| 71 | <div class="clear_left right"> | 65 | <% Asset.images.each do |image| %> |
| 72 | <a id="image_browser_toggle" class="unselected" href="#">image browser</a> | 66 | <li rel="images_<%= image.id %>"><%= image_tag(image.upload.url(:thumb)) %></li> |
| 73 | </div> | 67 | <% end %> |
| 74 | <div id="image_browser"> | 68 | </ul> |
| 75 | <ul> | 69 | </div> |
| 76 | <% Asset.images.each do |image| %> | 70 | </div> |
| 77 | <li rel="images_<%= image.id %>"><%= image_tag(image.upload.url(:thumb)) %></li> | ||
| 78 | <% end %> | ||
| 79 | </ul> | ||
| 80 | </div> | ||
| 81 | </td> | ||
| 82 | </tr> | ||
| 83 | </table> | ||
| 84 | </div> | 71 | </div> |
| 85 | 72 | ||
| 86 | <table id="content"> | 73 | <div id="content"> |
| 87 | <tr> | 74 | <div class="node_description">Title</div> |
| 88 | <th class="description"></th> | 75 | <div class="node_content"><%= d.text_field :title, :pattern => "(?:[^<>&]|&amp;|&lt;|&gt;)*", :title => "Warning: Unescaped HTML entities detected! Use &lt;, &gt;, &amp; instead of <, >, &." %></div> |
| 89 | <th class="content"></th> | 76 | |
| 90 | </tr> | 77 | <div class="node_description">Abstract</div> |
| 91 | <tr> | 78 | <div class="node_content"><%= d.text_area :abstract %></div> |
| 92 | <td class="description">Title</td> | 79 | |
| 93 | <td><%= d.text_field :title, :pattern => "(?:[^<>&]|&amp;|&lt;|&gt;)*", :title => "Warning: Unescaped HTML entities detected! Use &lt;, &gt;, &amp; instead of <, >, &." %></td> | 80 | <div class="node_description">Body</div> |
| 94 | </tr> | 81 | <div class="node_content"><%= d.text_area :body, :class => 'with_editor' %></div> |
| 95 | <tr> | 82 | |
| 96 | <td class="description">Abstract</td> | 83 | <div><%= d.submit 'save' %></div> |
| 97 | <td><%= d.text_area :abstract %></td> | ||
| 98 | </tr> | ||
| 99 | <tr> | ||
| 100 | <td class="description">Body</td> | ||
| 101 | <td><%= d.text_area :body, :class => 'with_editor' %></td> | ||
| 102 | </tr> | ||
| 103 | <tr> | ||
| 104 | <td></td> | ||
| 105 | <td class="right"><%= d.submit 'save' %></td> | ||
| 106 | </tr> | ||
| 107 | </table> | ||
| 108 | <% end %> | 84 | <% end %> |
| 109 | <% end %> | 85 | <% end %> |
| 110 | </div> | 86 | </div> |
