Skip to content

Commit

Permalink
Remove form-inline which was removed in BS5 and is not needed for inl…
Browse files Browse the repository at this point in the history
…ine input-group display
  • Loading branch information
corylown committed Aug 23, 2024
1 parent 6e241c0 commit 9e37614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/views/calendars/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<% url = calendar.persisted? ? library_location_calendar_path(calendar.library, calendar.location, calendar) : library_location_calendars_path(calendar.location.library, calendar.location, day: calendar.date) %>

<%= form_with model: calendar,
url: url,
class: 'form-inline' do |f| %>
<%= form_with model: calendar, url: url do |f| %>
<% if f.object.errors.any? %>
<p class="alert alert-danger"><%= to_sentence f.object.errors.full_messages %></p>
<% end %>
Expand Down
4 changes: 1 addition & 3 deletions app/views/term_hours/_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<% url = term_hour.persisted? ? library_location_term_hour_path(term_hour.location.library_id, term_hour.location, term_hour, day_of_week: params[:day_of_week]) : library_location_term_hours_path(term_hour.location.library_id, term_hour.location, term_id: term_hour.term_id, day_of_week: params[:day_of_week]) %>

<%= form_with model: term_hour,
url: url,
class: 'form-inline' do |f| %>
<%= form_with model: term_hour, url: url do |f| %>
<% if f.object.errors.any? %>
<p class="alert alert-danger"><%= to_sentence f.object.errors.full_messages %></p>
<% end %>
Expand Down

0 comments on commit 9e37614

Please sign in to comment.