diff options
| author | hukl <contact@smyck.org> | 2009-03-16 20:58:49 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-18 12:16:59 +0100 |
| commit | d2bfbfd2810fbee673e43b2515db8bac527b3441 (patch) | |
| tree | 1b46e8af44c871290a7a74ab17a8c7201e22f7a9 /app/views/events/edit.html.erb | |
| parent | d957a33a0d50f00c1968c5d12e728bd73ea186b3 (diff) | |
Refactored Chaos Calendar by wrapping libical and introducing event and occurrence model. More improvements to come. Enables us to create events with reoccurrence and intervals etc.
Diffstat (limited to 'app/views/events/edit.html.erb')
| -rw-r--r-- | app/views/events/edit.html.erb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app/views/events/edit.html.erb b/app/views/events/edit.html.erb new file mode 100644 index 0000000..e40ac55 --- /dev/null +++ b/app/views/events/edit.html.erb | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | <h1>Editing event</h1> | ||
| 2 | |||
| 3 | <% form_for(@event) do |f| %> | ||
| 4 | <%= f.error_messages %> | ||
| 5 | |||
| 6 | <p> | ||
| 7 | <%= f.label :start_time %><br /> | ||
| 8 | <%= f.datetime_select :start_time %> | ||
| 9 | </p> | ||
| 10 | <p> | ||
| 11 | <%= f.label :end_time %><br /> | ||
| 12 | <%= f.datetime_select :end_time %> | ||
| 13 | </p> | ||
| 14 | <p> | ||
| 15 | <%= f.label :rrule %><br /> | ||
| 16 | <%= f.text_field :rrule %> | ||
| 17 | </p> | ||
| 18 | <p> | ||
| 19 | <%= f.label :custom_rrule %><br /> | ||
| 20 | <%= f.check_box :custom_rrule %> | ||
| 21 | </p> | ||
| 22 | <p> | ||
| 23 | <%= f.label :allday %><br /> | ||
| 24 | <%= f.check_box :allday %> | ||
| 25 | </p> | ||
| 26 | <p> | ||
| 27 | <%= f.label :url %><br /> | ||
| 28 | <%= f.text_field :url %> | ||
| 29 | </p> | ||
| 30 | <p> | ||
| 31 | <%= f.label :latitude %><br /> | ||
| 32 | <%= f.text_field :latitude %> | ||
| 33 | </p> | ||
| 34 | <p> | ||
| 35 | <%= f.label :longitude %><br /> | ||
| 36 | <%= f.text_field :longitude %> | ||
| 37 | </p> | ||
| 38 | <p> | ||
| 39 | <%= f.label :node_id %><br /> | ||
| 40 | <%= f.text_field :node_id %> | ||
| 41 | </p> | ||
| 42 | <p> | ||
| 43 | <%= f.submit 'Update' %> | ||
| 44 | </p> | ||
| 45 | <% end %> | ||
| 46 | |||
| 47 | <%= link_to 'Show', @event %> | | ||
| 48 | <%= link_to 'Back', events_path %> \ No newline at end of file | ||
