Skip to content

Commit

Permalink
btn-light to btn-white
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaronixon committed Aug 16, 2022
1 parent 8960946 commit 901fd65
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@

<div class="form-footer">
<%= form.submit class: "btn btn-primary" %>
<%= link_to "Cancel", admin_users_path, class: "btn btn-light" %>
<%= link_to "Cancel", admin_users_path, class: "btn btn-white" %>
</div>
<% end %>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<% end %>

<%= render "page_header_actions" do %>
<%= link_to "Filters", "#offcanvas_filters", "data-bs-toggle": "offcanvas", class: "btn btn-light" %>
<%= link_to "Filters", "#offcanvas_filters", "data-bs-toggle": "offcanvas", class: "btn btn-white" %>
<%= link_to "New user", new_admin_user_path, class: "btn btn-primary" %>
<% end %>
<% end %>
Expand All @@ -29,9 +29,9 @@
<td><%= user.email %></td>
<td><%= l(user.created_at, format: :long) %></td>
<td>
<%= link_to "View", user, class: "btn btn-light btn-sm" %>
<%= link_to "Edit", edit_admin_user_path(user), class: "btn btn-light btn-sm" %>
<%= button_to "Delete", user, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-light btn-sm" %>
<%= link_to "View", user, class: "btn btn-white btn-sm" %>
<%= link_to "Edit", edit_admin_user_path(user), class: "btn btn-white btn-sm" %>
<%= button_to "Delete", user, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-white btn-sm" %>
</td>
</tr>
<% end %>
Expand Down Expand Up @@ -67,6 +67,6 @@
</div>

<%= f.submit "Filter", class: "btn btn-primary" %>
<%= link_to "Clear Filter", admin_users_path, class: "btn btn-light" %>
<%= link_to "Clear Filter", admin_users_path, class: "btn btn-white" %>
<% end %>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<%= render "page_header_actions" do %>
<%= link_to "Edit user", edit_admin_user_path(@user), class: "btn btn-primary" %>
<%= button_to "Delete user", @user, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-light" %>
<%= button_to "Delete user", @user, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-white" %>
<% end %>
<% end %>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
<% end -%>
<div class="form-footer">
<%%= form.submit class: "btn btn-primary" %>
<%%= link_to "Cancel", <%= index_helper(type: :path) %>, class: "btn btn-light" %>
<%%= link_to "Cancel", <%= index_helper(type: :path) %>, class: "btn btn-white" %>
</div>
<%% end %>
10 changes: 5 additions & 5 deletions lib/generators/admin/scaffold/templates/erb/index.html.erb.tt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%% end %>

<%%= render "page_header_actions" do %>
<%%= link_to "Filters", "#offcanvas_filters", "data-bs-toggle": "offcanvas", class: "btn btn-light" %>
<%%= link_to "Filters", "#offcanvas_filters", "data-bs-toggle": "offcanvas", class: "btn btn-white" %>
<%%= link_to "New <%= human_name.downcase %>", <%= new_helper(type: :path) %>, class: "btn btn-primary" %>
<%% end %>
<%% end %>
Expand Down Expand Up @@ -37,9 +37,9 @@
<% end -%>
<% end -%>
<td>
<%%= link_to "View", <%= model_resource_name %>, class: "btn btn-light btn-sm" %>
<%%= link_to "Edit", <%= edit_helper(singular_table_name, type: :path) %>, class: "btn btn-light btn-sm" %>
<%%= button_to "Delete", <%= model_resource_name %>, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-light btn-sm" %>
<%%= link_to "View", <%= model_resource_name %>, class: "btn btn-white btn-sm" %>
<%%= link_to "Edit", <%= edit_helper(singular_table_name, type: :path) %>, class: "btn btn-white btn-sm" %>
<%%= button_to "Delete", <%= model_resource_name %>, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-white btn-sm" %>
</td>
</tr>
<%% end %>
Expand Down Expand Up @@ -69,6 +69,6 @@
<%%# f.text_field :name_cont, class: "form-control mb-3" %>

<%%= f.submit "Filter", class: "btn btn-primary" %>
<%%= link_to "Clear Filter", <%= index_helper(type: :path) %>, class: "btn btn-light" %>
<%%= link_to "Clear Filter", <%= index_helper(type: :path) %>, class: "btn btn-white" %>
<%% end %>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<%%= render "page_header_actions" do %>
<%%= link_to "Edit <%= human_name.downcase %>", <%= edit_helper(type: :path) %>, class: "btn btn-primary" %>
<%%= button_to "Delete <%= human_name.downcase %>", <%= model_resource_name(prefix: "@") %>, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-light" %>
<%%= button_to "Delete <%= human_name.downcase %>", <%= model_resource_name(prefix: "@") %>, method: :delete, "data-confirm": "Are you sure?", form_class: "d-inline", class: "btn btn-white" %>
<%% end %>
<%% end %>

Expand Down

0 comments on commit 901fd65

Please sign in to comment.