Commit db7b5d82 authored by Greg Gard's avatar Greg Gard

adding bootstrap-sass/jquery via stock asset pipe and reconfiguring app to use .scss files

parent 6c2df9df
......@@ -36,6 +36,12 @@ gem 'jbuilder', '~> 2.5'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false
# bootstrap 3 sass
# https://github.com/twbs/bootstrap-sass
gem 'jquery-rails'
# gem 'sass-rails', '>= 3.2' # already included above
gem 'bootstrap-sass', '~> 3.3.7'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
......
......@@ -47,9 +47,14 @@ GEM
archive-zip (0.11.0)
io-like (~> 0.3.0)
arel (9.0.0)
autoprefixer-rails (8.5.1)
execjs
bindex (0.5.0)
bootsnap (1.3.0)
msgpack (~> 1.0)
bootstrap-sass (3.3.7)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.3)
byebug (10.0.2)
capybara (3.1.1)
......@@ -84,6 +89,10 @@ GEM
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.3)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
......@@ -193,11 +202,13 @@ PLATFORMS
DEPENDENCIES
bootsnap (>= 1.1.0)
bootstrap-sass (~> 3.3.7)
byebug
capybara (>= 2.15, < 4.0)
chromedriver-helper
coffee-rails (~> 4.2)
jbuilder (~> 2.5)
jquery-rails
listen (>= 3.0.5, < 3.2)
puma (~> 3.11)
rails (~> 5.2.0)
......
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
// libs
@import "bootstrap-sprockets";
@import "bootstrap";
// vars
// layout
// components
// app views
@import 'transfers';
\ No newline at end of file
.transfers{
&-dashboard {
h3 {border-bottom: solid 1px #AAA;}
}
}
\ No newline at end of file
......@@ -7,6 +7,10 @@
#
class TransfersController < ApplicationController
def dashboard
end
def index
render html: presenter.get(:transfers)
end
......
<div class='transfers-dashboard'>
<h3>Emergency Transfers</h3>
</div>
\ No newline at end of file
Rails.application.routes.draw do
resources :transfers
root 'transfers#dashboard'
resources :facilities
resources :admissions do
resources :diagnoses
resources :observations
resources :symptoms
end
resources :patients do
resources :admissions
resources :allergies
resources :diagnoses
resources :diagnostic_procedures
resources :medication_orders
resources :treatments
end
resources :transfers do
get 'dashboard', on: :collection
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment