summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-09-01 14:47:09 +0200
committerhukl <contact@smyck.org>2009-09-01 14:47:09 +0200
commitc15b66569091bc9fe6adc9b6f446dae2e85fee16 (patch)
treee8910f5f91920a88e909b2a3c07cd8faa99c5670 /app/views
parentb78f6e450e25bc7bc749e4cf38ddf977a8805ae5 (diff)
slight interface changes
Diffstat (limited to 'app/views')
-rw-r--r--app/views/nodes/edit.html.erb58
1 files changed, 34 insertions, 24 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index 5973a6c..00815b7 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -10,30 +10,40 @@
10<% form_for(@node) do |f| %> 10<% form_for(@node) do |f| %>
11 <%= f.error_messages %> 11 <%= f.error_messages %>
12 12
13 <table id="metadata"> 13 <div id="metadata">
14 <tr> 14 <table>
15 <td class="description">Event</td> 15 <tr>
16 <td><%= event_information %></td> 16 <td class="description">Event</td>
17 </tr> 17 <td><%= event_information %></td>
18 <tr> 18 </tr>
19 <td class="description">Slug</td> 19 <tr>
20 <td><%= f.text_field :slug %></td> 20 <td class="description">Slug</td>
21 </tr> 21 <td><%= f.text_field :slug %></td>
22 22 </tr>
23 <% fields_for @draft do |d| %> 23
24 <tr> 24 <% fields_for @draft do |d| %>
25 <td class="description">Tags - comma seperated</td> 25 <tr>
26 <td><%= text_field_tag :tag_list, @draft.tag_list %></td> 26 <td class="description">Tags - comma seperated</td>
27 </tr> 27 <td><%= text_field_tag :tag_list, @draft.tag_list %></td>
28 <tr> 28 </tr>
29 <td class="description">Publish at</td> 29 <tr>
30 <td><%= d.datetime_select :published_at %></td> 30 <td class="description">Publish at</td>
31 </tr> 31 <td><%= d.datetime_select :published_at %></td>
32 <tr> 32 </tr>
33 <td class="description">Template</td> 33 <tr>
34 <td><%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %></td> 34 <td class="description">Template</td>
35 </tr> 35 <td><%= d.select :template_name, custom_page_templates, {:prompt => 'Select Template'} %></td>
36 </table> 36 </tr>
37 <tr>
38 <td class="description">Images</td>
39 <td style="height: 200px">
40 <% @draft.assets.images.each do |image| %>
41 <%= image_tag(image.upload.url(:thumb)) %>
42 <% end %>
43 </td>
44 </tr>
45 </table>
46 </div>
37 47
38 <table id="content"> 48 <table id="content">
39 <tr> 49 <tr>