diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:33:11 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 23:33:11 +0200 |
| commit | 8eab68f2c5a3c126e2fec2ecdfa7ace87ce0937b (patch) | |
| tree | f446ebc26a7707c7b64a937aa51a155df146c80a /app/views/events/new.html.erb | |
| parent | 42714c697273a7117c6b355fab26c8c35e336ad1 (diff) | |
| parent | cdf5d9941ca866d437612d2f863eac6eb0b3db12 (diff) | |
Merge branch 'erdgeist-revive-events'
Diffstat (limited to 'app/views/events/new.html.erb')
| -rw-r--r-- | app/views/events/new.html.erb | 88 |
1 files changed, 49 insertions, 39 deletions
diff --git a/app/views/events/new.html.erb b/app/views/events/new.html.erb index cd892c5d..7a1ee7a3 100644 --- a/app/views/events/new.html.erb +++ b/app/views/events/new.html.erb | |||
| @@ -1,46 +1,56 @@ | |||
| 1 | <h1>New event</h1> | 1 | <h1>New event</h1> |
| 2 | 2 | ||
| 3 | <%= link_to 'Back', safe_return_to(params[:return_to] || events_path) %> | ||
| 4 | |||
| 3 | <%= form_for(@event) do |f| %> | 5 | <%= form_for(@event) do |f| %> |
| 4 | <%= form_error_messages(f) %> | 6 | <%= form_error_messages(f) %> |
| 5 | 7 | ||
| 6 | <p> | 8 | <div id="page_editor"> |
| 7 | <%= f.label :start_time %><br /> | 9 | <div id="content"> |
| 8 | <%= f.datetime_select :start_time %> | 10 | <div class="node_description">Node</div> |
| 9 | </p> | 11 | <div class="node_content"> |
| 10 | <p> | 12 | <%= text_field_tag :event_node_search_term %> |
| 11 | <%= f.label :end_time %><br /> | 13 | <div id="event_search_results" class="search_results"></div> |
| 12 | <%= f.datetime_select :end_time %> | 14 | <%= f.hidden_field :node_id %> |
| 13 | </p> | 15 | <span class="field_hint">Optional — search and pick a node to associate this event with a page.</span> |
| 14 | <p> | 16 | </div> |
| 15 | <%= f.label :rrule %><br /> | 17 | |
| 16 | <%= f.text_field :rrule %> | 18 | <div class="node_description">Start time</div> |
| 17 | </p> | 19 | <div class="node_content"><%= f.datetime_select :start_time %></div> |
| 18 | <p> | 20 | |
| 19 | <%= f.label :custom_rrule %><br /> | 21 | <div class="node_description">End time</div> |
| 20 | <%= f.check_box :custom_rrule %> | 22 | <div class="node_content"><%= f.datetime_select :end_time %></div> |
| 21 | </p> | 23 | |
| 22 | <p> | 24 | <div class="node_description">Rrule</div> |
| 23 | <%= f.label :allday %><br /> | 25 | <div class="node_content"><%= f.text_field :rrule %></div> |
| 24 | <%= f.check_box :allday %> | 26 | |
| 25 | </p> | 27 | <div class="node_description">Title</div> |
| 26 | <p> | 28 | <div class="node_content"> |
| 27 | <%= f.label :url %><br /> | 29 | <%= f.text_field :title %> |
| 28 | <%= f.text_field :url %> | 30 | <span id="event_title_hint" class="field_hint">Optional — if left blank, the associated node's title is used.</span> |
| 29 | </p> | 31 | </div> |
| 30 | <p> | 32 | |
| 31 | <%= f.label :latitude %><br /> | 33 | <div class="node_description">Tags</div> |
| 32 | <%= f.text_field :latitude %> | 34 | <div class="node_content"><%= f.text_field :tag_list %></div> |
| 33 | </p> | 35 | |
| 34 | <p> | 36 | <div class="node_description">Allday</div> |
| 35 | <%= f.label :longitude %><br /> | 37 | <div class="node_content"><%= f.check_box :allday %></div> |
| 36 | <%= f.text_field :longitude %> | 38 | |
| 37 | </p> | 39 | <div class="node_description">Url</div> |
| 38 | <p> | 40 | <div class="node_content"><%= f.text_field :url %></div> |
| 39 | <%= f.hidden_field :node_id %> | 41 | |
| 40 | </p> | 42 | <div class="node_description">Latitude</div> |
| 41 | <p> | 43 | <div class="node_content"><%= f.text_field :latitude %></div> |
| 42 | <%= f.submit 'Create' %> | 44 | |
| 43 | </p> | 45 | <div class="node_description">Longitude</div> |
| 46 | <div class="node_content"><%= f.text_field :longitude %></div> | ||
| 47 | |||
| 48 | <div class="node_description"></div> | ||
| 49 | <div class="node_content"><%= hidden_field_tag :return_to, params[:return_to] %></div> | ||
| 50 | |||
| 51 | <div class="node_description"></div> | ||
| 52 | <div class="node_content"><%= f.submit 'Create' %></div> | ||
| 53 | </div> | ||
| 54 | </div> | ||
| 44 | <% end %> | 55 | <% end %> |
| 45 | 56 | ||
| 46 | <%= link_to 'Back', events_path %> | ||
