|
4 | 4 | <div class="row" id="table-striped"> |
5 | 5 | <div class="col-12 cold-md-12"> |
6 | 6 | <%= render "search", providers: @providers, languages: @languages, params: search_params %> |
7 | | - <div class="card"> |
8 | | - <div class="card-header d-flex justify-content-between align-items-center"> |
9 | | - <h2 class="card-title"><%= current_provider.name %>'s topics</h2> |
10 | | - <%= link_to new_topic_path, class: "btn btn-primary" do %> |
11 | | - <i class="bi bi-plus"></i> Add New Topic |
12 | | - <% end %> |
13 | | - </div> |
14 | | - <div class="card-content"> |
15 | | - <div class="card-body"> |
16 | | - <% if @available_providers.any? %> |
17 | | - <%= render "choose_provider", providers: @available_providers %> |
18 | | - <% end %> |
19 | | - <p class="card-text"> Some important information or instruction can be placed here.</p> |
20 | | - <%= turbo_frame_tag "topic-list" do %> |
21 | | - <div class="table-responsive"> |
22 | | - <table class="table table-lg table-striped mb-0"> |
23 | | - <thead> |
24 | | - <tr> |
25 | | - <th>Title</th> |
26 | | - <th>Description</th> |
27 | | - <th>UID</th> |
28 | | - <th>Language</th> |
29 | | - <th>Provider</th> |
30 | | - <th>State</th> |
31 | | - <th class="text-end">Actions</th> |
32 | | - </tr> |
33 | | - </thead> |
34 | | - <%= render "list", topics: @topics %> |
35 | | - </table> |
36 | | - </div> |
| 7 | + <%= turbo_frame_tag "topics" do %> |
| 8 | + <div class="card"> |
| 9 | + <div class="card-header d-flex justify-content-between align-items-center"> |
| 10 | + <h2 class="card-title"><%= current_provider.name %>'s topics</h2> |
| 11 | + <%= link_to new_topic_path, class: "btn btn-primary" do %> |
| 12 | + <i class="bi bi-plus"></i> Add New Topic |
37 | 13 | <% end %> |
38 | 14 | </div> |
| 15 | + <div class="card-content"> |
| 16 | + <div class="card-body"> |
| 17 | + <% if @available_providers.any? %> |
| 18 | + <%= render "choose_provider", providers: @available_providers %> |
| 19 | + <% end %> |
| 20 | + <p class="card-text"> Some important information or instruction can be placed here.</p> |
| 21 | + <%= turbo_frame_tag "topic-list" do %> |
| 22 | + <div class="table-responsive"> |
| 23 | + <table class="table table-lg table-striped mb-0"> |
| 24 | + <thead> |
| 25 | + <tr> |
| 26 | + <th>Title</th> |
| 27 | + <th>Description</th> |
| 28 | + <th>UID</th> |
| 29 | + <th>Language</th> |
| 30 | + <th>Provider</th> |
| 31 | + <th>State</th> |
| 32 | + <th class="text-end">Actions</th> |
| 33 | + </tr> |
| 34 | + </thead> |
| 35 | + <%= render "list", topics: @topics %> |
| 36 | + </table> |
| 37 | + </div> |
| 38 | + <% end %> |
| 39 | + </div> |
| 40 | + </div> |
39 | 41 | </div> |
40 | | - </div> |
| 42 | + <% end %> |
41 | 43 | </div> |
42 | 44 | </div> |
43 | 45 | </section> |
0 commit comments