-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from motohiro-mm/feature/add_error_message
エラーメッセージを表示するようにした
- Loading branch information
Showing
21 changed files
with
138 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
<%= turbo_frame_tag meal_plan do %> | ||
<%= turbo_frame_tag meal_plan, autoscroll: true, data: { autoscroll_block: 'start' } do %> | ||
<div class="my-5"> | ||
<div class="flex justify-between"> | ||
<h1 class="font-bold text-2xl"><%= l meal_plan.meal_date, format: :long %></h1> | ||
<% if @meal_plan.meals.present? %> | ||
<% if meal_plan.meals.present? %> | ||
<div class="flex items-center"> | ||
<%= link_to '編集', edit_meal_plan_path(@meal_plan), class: 'text-l inline-block rounded-full py-2 px-4 flex items-center bg-orange-100/80' %> | ||
<%= link_to '編集', edit_meal_plan_path(meal_plan), class: 'text-l inline-block rounded-full py-2 px-4 flex items-center bg-orange-100/80' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<% @meal_plan.meals_sort_by_timing.each do |meal| %> | ||
<% meal_plan.meals_sort_by_timing.each do |meal| %> | ||
<%= render 'meals/meal', meal: %> | ||
<% end %> | ||
<% if @meal_plan.meals.blank? %> | ||
<div class="text-center mt-4 p-4"> | ||
<%= link_to '', new_meal_plan_path(meal_date: @meal_plan.meal_date), data: { turbo_frame: '_top' }, class: 'plus_icon' %> | ||
</div> | ||
<% else %> | ||
<div class="text-right"> | ||
<%= button_to 'この献立を削除する', @meal_plan, method: :delete, class: 'text-orange-950/70' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<div class="text-right"> | ||
<%= button_to 'この献立を削除する', meal_plan, method: :delete, class: 'text-orange-950/70' %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<%= turbo_frame_tag remark, class: 'border-b border-dashed border-orange-950/10 pb-4' do %> | ||
<div class="flex justify-between my-3"> | ||
<div class="flex items-center"> | ||
<%= image_tag remark.user.icon, class: 'icon mr-2' %> | ||
<%= l remark.created_at, format: :long %> | ||
</div> | ||
<% if remark.editable?(current_user) %> | ||
<%= link_to edit_meeting_room_remark_path(remark.meeting_room, remark), class: 'mr-2' do %> | ||
<i class="fa-solid fa-pen"></i> | ||
<%= turbo_frame_tag remark do %> | ||
<div class="my-1 border-b border-dashed border-orange-950/10 pb-4"> | ||
<div class="flex justify-between my-3"> | ||
<div class="flex items-center"> | ||
<%= image_tag remark.user.icon, class: 'icon mr-2' %> | ||
<%= l remark.created_at, format: :long %> | ||
</div> | ||
<% if remark.editable?(current_user) %> | ||
<%= link_to edit_meeting_room_remark_path(remark.meeting_room, remark), class: 'mr-2' do %> | ||
<i class="fa-solid fa-pen"></i> | ||
<% end %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<div class="mx-auto ml-6 md:w-3/4 break-all font-medium"> | ||
<%= format_line_break(remark.content) %> | ||
</div> | ||
<div class="mx-auto ml-6 md:w-3/4 break-all font-medium"> | ||
<%= format_line_break(remark.content) %> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<% if @remark.proposal? %> | ||
<%= turbo_stream.prepend "proposals", partial: "proposal", locals: {remark: @remark} %> | ||
<%= turbo_stream.prepend "proposal", partial: "remarks/proposal", locals: {remark: @remark} %> | ||
<% else %> | ||
<%= turbo_stream.prepend "comments", partial: "comment", locals: {remark: @remark} %> | ||
<%= turbo_stream.prepend "comment", partial: "remarks/comment", locals: {remark: @remark} %> | ||
<% end %> | ||
<%= turbo_stream.update Remark.new, "" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.