-
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 #3 from ltfschoen/feature/bootstrap
Feature / Bootstrap 4 Responsive Grid and Styles
- Loading branch information
Showing
13 changed files
with
134 additions
and
122 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ | |
*/ | ||
|
||
@import "products"; | ||
@import "bootstrap"; |
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,18 +1,31 @@ | ||
<%#= flash[:notice] %> | ||
<% content_for :title, "Products" %> | ||
|
||
<%= form_tag products_path, method: 'get', id: "products_search" do %> | ||
<p> | ||
<%= text_field_tag :search, params[:search] %> | ||
<%= submit_tag "Search", name: nil %> | ||
</p> | ||
<div id="products"><%= render 'products' %></div> | ||
<% end %> | ||
|
||
<div> | ||
<h3>Import a CSV File</h3> | ||
<%= form_tag import_products_path, multipart: true do %> | ||
<%= file_field_tag :file %> | ||
<%= submit_tag "Import CSV" %> | ||
<% end %> | ||
<div class="row"> | ||
<div class="col-sm-12 col-md-8"> | ||
<div class="product-import"> | ||
<h3>Upload and Import CSV Data</h3> | ||
<%= form_tag import_products_path, multipart: true do %> | ||
<%= file_field_tag :file, id: "choose-file", class: "btn btn-secondary btn-file" %> | ||
<%= submit_tag "Import CSV", id: "import-submit", class: "btn btn-success" %> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="col-sm-12 col-md-4"> | ||
<div class="product-search"> | ||
<%# content_for :title, "Products" %> | ||
<h3>Search</h3> | ||
<%= form_tag products_path, method: 'get', id: "products_search", class: "form-inline pull-xs-right" do %> | ||
<p> | ||
<%= text_field_tag :search, params[:search], placeholder: "", id: "search-input", class: "form-control" %> | ||
<%= submit_tag "Search", name: nil, id: "search-submit", class: "btn btn-success" %> | ||
</p> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<div class="product-list"> | ||
<h3>Sort and Paginate</h3> | ||
<div id="products"><%= render 'products' %></div> | ||
</div> | ||
</div> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.