ecm_staff2_backend 0.1.1 → 0.1.2
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/staff/backend/business_units_controller.rb +4 -2
- data/app/controllers/ecm/staff/backend/organisations_controller.rb +4 -2
- data/app/controllers/ecm/staff/backend/people_controller.rb +4 -2
- data/app/controllers/ecm/staff/backend/positions_controller.rb +4 -2
- data/app/views/ecm/staff/backend/business_units/_form.haml +5 -0
- data/app/views/ecm/staff/backend/business_units/_table.haml +5 -0
- data/app/views/ecm/staff/backend/organisations/_form.haml +3 -0
- data/app/views/ecm/staff/backend/people/_form.haml +13 -0
- data/app/views/ecm/staff/backend/people/_picture_fields.haml +5 -0
- data/app/views/ecm/staff/backend/people/_table.haml +3 -0
- data/app/views/ecm/staff/backend/positions/_form.haml +4 -0
- data/config/locales/de.yml +1 -2
- data/config/locales/en.yml +5 -0
- data/lib/ecm/staff/backend/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0f08007143e6070c7b2d4f7d4d141ad6362fb69
|
4
|
+
data.tar.gz: 7674f2cc7fb2e80fee5041607beaaa28bbcc59e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa8d2dd05b099f390092c13b409ac809334ea9c26411a4057aaa0b4de552010cda0d644a8f0b99bdaf38600fb6c425c62127c22718c77f9c69f3615f4449b770
|
7
|
+
data.tar.gz: 1fc743d02c2c45aab4ad31daa923b65e8de54c164efb55432b79e0c6990b67acfc03d44c71f5a2455205b8780812514bdedfb05c5b6d7bb33834b38894df09a9
|
@@ -2,14 +2,16 @@ module Ecm
|
|
2
2
|
module Staff
|
3
3
|
module Backend
|
4
4
|
class BusinessUnitsController < Itsf::Backend::Resource::BaseController
|
5
|
+
include Controller::FriendlyIdConcern
|
6
|
+
|
5
7
|
def self.resource_class
|
6
8
|
Ecm::Staff::BusinessUnit
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|
10
12
|
|
11
|
-
def
|
12
|
-
|
13
|
+
def permitted_params
|
14
|
+
params.require(:business_unit).permit(:organisation_id, :parent_id, :name, :description, :markup_language)
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -2,14 +2,16 @@ module Ecm
|
|
2
2
|
module Staff
|
3
3
|
module Backend
|
4
4
|
class OrganisationsController < Itsf::Backend::Resource::BaseController
|
5
|
+
include Controller::FriendlyIdConcern
|
6
|
+
|
5
7
|
def self.resource_class
|
6
8
|
Ecm::Staff::Organisation
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|
10
12
|
|
11
|
-
def
|
12
|
-
|
13
|
+
def permitted_params
|
14
|
+
params.require(:organisation).permit(:name, :description, :markup_language)
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -2,14 +2,16 @@ module Ecm
|
|
2
2
|
module Staff
|
3
3
|
module Backend
|
4
4
|
class PeopleController < Itsf::Backend::Resource::BaseController
|
5
|
+
include Controller::FriendlyIdConcern
|
6
|
+
|
5
7
|
def self.resource_class
|
6
8
|
Ecm::Staff::Person
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|
10
12
|
|
11
|
-
def
|
12
|
-
|
13
|
+
def permitted_params
|
14
|
+
params.require(:person).permit(:prefix, :firstname, :lastname, :birthdate, :position, :description, :markup_language, pictures_attributes: [ :image, :_destroy, :id ])
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -2,14 +2,16 @@ module Ecm
|
|
2
2
|
module Staff
|
3
3
|
module Backend
|
4
4
|
class PositionsController < Itsf::Backend::Resource::BaseController
|
5
|
+
include Controller::FriendlyIdConcern
|
6
|
+
|
5
7
|
def self.resource_class
|
6
8
|
Ecm::Staff::Position
|
7
9
|
end
|
8
10
|
|
9
11
|
private
|
10
12
|
|
11
|
-
def
|
12
|
-
|
13
|
+
def permitted_params
|
14
|
+
params.require(:position).permit(:markup_language, :parent_id, :name, :description)
|
13
15
|
end
|
14
16
|
end
|
15
17
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
= form.input :prefix
|
2
|
+
= form.input :firstname
|
3
|
+
= form.input :lastname
|
4
|
+
= form.input :birthdate, start_year: 100.years.ago.year, end_year: 14.years.ago.year, include_blank: true
|
5
|
+
= form.input :description, as: :text
|
6
|
+
= form.input :markup_language
|
7
|
+
|
8
|
+
%h4= resource_class.human_attribute_name(:pictures)
|
9
|
+
#pictures
|
10
|
+
= form.simple_fields_for(:pictures) do |picture|
|
11
|
+
= render 'picture_fields', f: picture
|
12
|
+
.well.well-xs.links
|
13
|
+
= link_to_add_association form, :pictures, class: 'btn btn-default btn-xs'
|
@@ -1,3 +1,6 @@
|
|
1
|
+
= table.column(:preview_picture) do |person|
|
2
|
+
- if person.preview_picture.present?
|
3
|
+
%img.img-responsive.bottom-margin-2{ src: person.preview_picture.image.url(:medium_thumb), alt: person.preview_picture.description, title: person.preview_picture.description }
|
1
4
|
= table.column :firstname
|
2
5
|
= table.column :lastname
|
3
6
|
= table.column :birthdate
|
data/config/locales/de.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_staff2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
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
|
@@ -62,10 +62,17 @@ files:
|
|
62
62
|
- app/controllers/ecm/staff/backend/positions_controller.rb
|
63
63
|
- app/helpers/ecm/staff/backend/application_helper.rb
|
64
64
|
- app/policies/ecm/staff/backend/engine_policy.rb
|
65
|
+
- app/views/ecm/staff/backend/business_units/_form.haml
|
66
|
+
- app/views/ecm/staff/backend/business_units/_table.haml
|
67
|
+
- app/views/ecm/staff/backend/organisations/_form.haml
|
68
|
+
- app/views/ecm/staff/backend/people/_form.haml
|
69
|
+
- app/views/ecm/staff/backend/people/_picture_fields.haml
|
65
70
|
- app/views/ecm/staff/backend/people/_table.haml
|
71
|
+
- app/views/ecm/staff/backend/positions/_form.haml
|
66
72
|
- app/views/layouts/ecm/staff/backend/application.html.erb
|
67
73
|
- config/initializers/assets.rb
|
68
74
|
- config/locales/de.yml
|
75
|
+
- config/locales/en.yml
|
69
76
|
- config/rbac.yml
|
70
77
|
- config/routes.rb
|
71
78
|
- lib/ecm/staff/backend.rb
|
@@ -97,9 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
104
|
version: '0'
|
98
105
|
requirements: []
|
99
106
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.6.11
|
101
108
|
signing_key:
|
102
109
|
specification_version: 4
|
103
110
|
summary: Ecm::Staff::Backend.
|
104
111
|
test_files: []
|
105
|
-
has_rdoc:
|