This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
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 #246 from TechforgoodCAST/dev
v0.3.18
- Loading branch information
Showing
71 changed files
with
2,633 additions
and
1,014 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,29 @@ | ||
# frozen_string_literal: true | ||
|
||
ActiveAdmin.register AdminUser do | ||
permit_params :email, :password, :password_confirmation | ||
|
||
index do | ||
selectable_column | ||
id_column | ||
column :email | ||
column :current_sign_in_at | ||
column :sign_in_count | ||
column :created_at | ||
actions | ||
end | ||
|
||
filter :email | ||
filter :current_sign_in_at | ||
filter :sign_in_count | ||
filter :created_at | ||
|
||
form do |f| | ||
f.inputs do | ||
f.input :email | ||
f.input :password | ||
f.input :password_confirmation | ||
end | ||
f.actions | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# frozen_string_literal: true | ||
|
||
ActiveAdmin.register Cohort do | ||
permit_params :name, :description, project_ids: [] | ||
|
||
index do | ||
selectable_column | ||
column :name | ||
column :description | ||
column :projects | ||
column :created_at | ||
column :updated_at | ||
actions | ||
end | ||
|
||
filter :name | ||
filter :description | ||
filter :projects | ||
filter :created_at | ||
filter :updated_at | ||
|
||
form do |f| | ||
f.inputs do | ||
f.input :name | ||
f.input :description | ||
f.input :projects | ||
end | ||
f.actions | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# frozen_string_literal: true | ||
|
||
ActiveAdmin.register_page 'Dashboard' do | ||
menu priority: 1, label: proc { I18n.t('active_admin.dashboard') } | ||
|
||
content title: proc { I18n.t('active_admin.dashboard') } do | ||
div class: 'blank_slate_container', id: 'dashboard_default_message' do | ||
span class: 'blank_slate' do | ||
span I18n.t('active_admin.dashboard_welcome.welcome') | ||
small I18n.t('active_admin.dashboard_welcome.call_to_action') | ||
end | ||
end | ||
|
||
# Here is an example of a simple dashboard with columns and panels. | ||
# | ||
# columns do | ||
# column do | ||
# panel 'Recent Posts' do | ||
# ul do | ||
# Post.recent(5).map do |post| | ||
# li link_to(post.title, admin_post_path(post)) | ||
# end | ||
# end | ||
# end | ||
# end | ||
|
||
# column do | ||
# panel 'Info' do | ||
# para 'Welcome to ActiveAdmin.' | ||
# end | ||
# end | ||
# end | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# frozen_string_literal: true | ||
|
||
ActiveAdmin.register Offer do | ||
permit_params :provider_id, :title, :short_description, :long_description, | ||
:sign_up_link, :logo_link, :duration_category, :provider_email, | ||
:duration_description, cohort_ids: [], topic_ids: [] | ||
|
||
index do | ||
selectable_column | ||
column :provider | ||
column :title | ||
column :cohorts | ||
column :topics | ||
column :updated_at | ||
actions | ||
end | ||
|
||
filter :provider | ||
filter :title | ||
filter :cohorts | ||
filter :topics | ||
filter :created_at | ||
filter :updated_at | ||
|
||
form do |f| | ||
f.inputs do | ||
f.input :cohorts | ||
f.input :topics | ||
f.input :provider | ||
f.input :provider_email | ||
f.input :title | ||
f.input :duration_category | ||
f.input :duration_description | ||
f.input :sign_up_link | ||
f.input :logo_link | ||
f.input :short_description, as: :trix_editor | ||
f.input :long_description, as: :trix_editor | ||
end | ||
f.actions | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
ActiveAdmin.register Provider do | ||
permit_params :name, :website | ||
|
||
index do | ||
selectable_column | ||
column :name | ||
column :website | ||
column :created_at | ||
column :updated_at | ||
actions | ||
end | ||
|
||
filter :name | ||
filter :website | ||
filter :created_at | ||
filter :updated_at | ||
|
||
form do |f| | ||
f.inputs do | ||
f.input :name | ||
f.input :website | ||
end | ||
f.actions | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# frozen_string_literal: true | ||
|
||
ActiveAdmin.register Topic do | ||
permit_params :title, :short_desc, :long_desc | ||
|
||
index do | ||
selectable_column | ||
column :title | ||
column :short_desc | ||
column :long_desc | ||
column :created_at | ||
column :updated_at | ||
actions | ||
end | ||
|
||
filter :title | ||
filter :short_desc | ||
filter :long_desc | ||
filter :created_at | ||
filter :updated_at | ||
|
||
form do |f| | ||
f.inputs do | ||
f.input :title | ||
f.input :short_desc | ||
f.input :long_desc | ||
end | ||
f.actions | ||
end | ||
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
//= require active_admin/base | ||
//= require trix |
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,2 @@ | ||
// Place all the behaviors and hooks related to the matching controller here. | ||
// All this logic will automatically be available in application.js. |
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,18 @@ | ||
// SASS variable overrides must be declared before loading up Active Admin's styles. | ||
// | ||
// To view the variables that Active Admin provides, take a look at | ||
// `app/assets/stylesheets/active_admin/mixins/_variables.scss` in the | ||
// Active Admin source. | ||
// | ||
// For example, to change the sidebar width: | ||
// $sidebar-width: 242px; | ||
|
||
// Active Admin's got SASS! | ||
@import "active_admin/mixins"; | ||
@import "active_admin/base"; | ||
@import "trix"; | ||
|
||
// Overriding any non-variable SASS must be done after the fact. | ||
// For example, to change the default status-tag color: | ||
// | ||
// .status_tag { background: #6090DB; } |
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,3 @@ | ||
// Place all the styles related to the SupportRequests controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: https://sass-lang.com/ |
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
Oops, something went wrong.