-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new board columns with Turbo Streams
- Loading branch information
Showing
5 changed files
with
21 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<%= turbo_stream.remove dom_id(BoardColumn.new) %> | ||
|
||
<%= turbo_stream.append dom_id(@board, 'columns') do %> | ||
<%= render 'board_columns/board_column', board_column: @board_column %> | ||
<% end %> | ||
|
||
<%= turbo_stream.append dom_id(@board, 'columns') do %> | ||
<%= turbo_frame_tag dom_id(BoardColumn.new) %> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
<h1 class="text-primary-dark-500">New Board Column</h1> | ||
|
||
<div class="row w-100 justify-content-center mt-3"> | ||
<div class="col-6"> | ||
<%= render 'form' %> | ||
</div> | ||
<%= turbo_frame_tag dom_id(@board_column) do %> | ||
<div class = 'board-column'> | ||
<div class="border border-primary-grey-200 bg-light p-2"> | ||
<%= render 'form' %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</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