ecm_courses2_backend 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ecm/courses/backend/course_categories_controller.rb +2 -4
- data/app/controllers/ecm/courses/backend/courses_controller.rb +1 -8
- data/app/views/ecm/courses/backend/course_categories/_table.haml +4 -4
- data/app/views/ecm/courses/backend/course_dates/_table.haml +4 -4
- data/app/views/ecm/courses/backend/courses/_table.haml +4 -4
- data/config/locales/de.yml +1 -2
- data/config/locales/en.yml +5 -0
- data/lib/ecm/courses/backend/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 728d1f9fa3e3d0feb05dfaeec95e0ea033434748
|
4
|
+
data.tar.gz: 926bb1f5b073e9f77ffc0ce46e753bd17374fe20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e931199b583604580f6e88d144a6c9fdb2a3594eef40a5c29ce21d8d5ec156dd88b95f25b235cbcd885a869ed9667b5816576e845e23e19524628e14d98b3d5c
|
7
|
+
data.tar.gz: 64cc8c7b4ebbd377a301a726d9e7f0539a626a10d68fe134df524f991ce263df056578bc1931c0087b3fb961b176835b2e91c09d15adfb5af6049ec7a2bd1cbb
|
@@ -2,16 +2,14 @@ module Ecm
|
|
2
2
|
module Courses
|
3
3
|
module Backend
|
4
4
|
class CourseCategoriesController < Itsf::Backend::Resource::BaseController
|
5
|
+
include Controller::FriendlyIdConcern
|
6
|
+
|
5
7
|
def self.resource_class
|
6
8
|
Ecm::Courses::CourseCategory
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|
10
12
|
|
11
|
-
def load_resource
|
12
|
-
load_scope.friendly.find(params[:id])
|
13
|
-
end
|
14
|
-
|
15
13
|
def permitted_params
|
16
14
|
params.require(:course_category).permit(:parent_id, :locale, :name, :description)
|
17
15
|
end
|
@@ -3,6 +3,7 @@ module Ecm
|
|
3
3
|
module Backend
|
4
4
|
class CoursesController < Itsf::Backend::Resource::BaseController
|
5
5
|
include Controller::ActsAsListConcern
|
6
|
+
include Controller::FriendlyIdConcern
|
6
7
|
|
7
8
|
def self.resource_class
|
8
9
|
Ecm::Courses::Course
|
@@ -10,14 +11,6 @@ module Ecm
|
|
10
11
|
|
11
12
|
private
|
12
13
|
|
13
|
-
def load_scope
|
14
|
-
resource_class.friendly
|
15
|
-
end
|
16
|
-
|
17
|
-
# def load_resource
|
18
|
-
# load_scope.friendly.find(params[:id])
|
19
|
-
# end
|
20
|
-
|
21
14
|
def permitted_params
|
22
15
|
params.require(:course).permit(:course_category_id, :locale, :name, :description)
|
23
16
|
end
|
@@ -1,5 +1,5 @@
|
|
1
|
-
= table.column :parent, as: :association
|
2
|
-
= table.column :locale
|
3
|
-
= table.column :name
|
4
|
-
= table.column :description, class: 'truncate-chars truncate-chars-30'
|
1
|
+
= table.column :parent, as: :association, sortable: :parent_name
|
2
|
+
= table.column :locale, sortable: true
|
3
|
+
= table.column :name, sortable: true
|
4
|
+
= table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
|
5
5
|
= table.timestamps
|
@@ -1,5 +1,5 @@
|
|
1
|
-
= table.column :course, as: :association
|
2
|
-
= table.column :description, class: 'truncate-chars truncate-chars-30'
|
3
|
-
= table.column :start_at
|
4
|
-
= table.column :end_at
|
1
|
+
= table.column :course, as: :association, sortable: true
|
2
|
+
= table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
|
3
|
+
= table.column :start_at, sortable: true
|
4
|
+
= table.column :end_at, sortable: true
|
5
5
|
= table.timestamps
|
@@ -1,6 +1,6 @@
|
|
1
|
-
= table.column :course_category, as: :association
|
2
|
-
= table.column :locale
|
3
|
-
= table.column :name
|
4
|
-
= table.column :description, class: 'truncate-chars truncate-chars-30'
|
1
|
+
= table.column :course_category, as: :association, sortable: true
|
2
|
+
= table.column :locale, sortable: true
|
3
|
+
= table.column :name, sortable: true
|
4
|
+
= table.column :description, sortable: true, class: 'truncate-chars truncate-chars-30'
|
5
5
|
= table.acts_as_list_actions scope: 'course_category_id'
|
6
6
|
= table.timestamps
|
data/config/locales/de.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_courses2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- app/views/layouts/ecm/courses/backend/application.html.erb
|
70
70
|
- config/initializers/assets.rb
|
71
71
|
- config/locales/de.yml
|
72
|
+
- config/locales/en.yml
|
72
73
|
- config/rbac.yml
|
73
74
|
- config/routes.rb
|
74
75
|
- lib/ecm/courses/backend.rb
|
@@ -100,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
101
|
version: '0'
|
101
102
|
requirements: []
|
102
103
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
104
|
+
rubygems_version: 2.6.11
|
104
105
|
signing_key:
|
105
106
|
specification_version: 4
|
106
107
|
summary: Ecm::Courses::Backend.
|
107
108
|
test_files: []
|
108
|
-
has_rdoc:
|