Skip to content

Commit

Permalink
Issue #279: Basic profile configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-klima committed Feb 9, 2019
1 parent eff81db commit 13bcf01
Show file tree
Hide file tree
Showing 18 changed files with 658 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 31f3d27e-1137-4b59-8373-33e305e2341b
langcode: en
status: true
dependencies:
config:
- field.field.profile.company_membership.field_company_member
- profile.type.company_membership
id: profile.company_membership.default
targetEntityType: profile
bundle: company_membership
mode: default
content:
field_company_member:
weight: 0
settings:
match_operator: CONTAINS
size: 60
placeholder: ''
third_party_settings: { }
type: entity_reference_autocomplete
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: a837f677-cba1-42df-9cc2-3542f890babe
langcode: en
status: true
dependencies:
config:
- field.field.profile.personal_membership.field_fullname
- profile.type.personal_membership
id: profile.personal_membership.default
targetEntityType: profile
bundle: personal_membership
mode: default
content:
field_fullname:
weight: 0
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 68666641-38b3-4788-9c6a-1320762c039e
langcode: en
status: true
dependencies:
config:
- field.field.profile.company_membership.field_company_member
- profile.type.company_membership
id: profile.company_membership.default
targetEntityType: profile
bundle: company_membership
mode: default
content:
field_company_member:
weight: 0
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: dffe0fc3-4907-46d0-8c7d-8e59e8b93445
langcode: en
status: true
dependencies:
config:
- field.field.profile.personal_membership.field_fullname
- profile.type.personal_membership
id: profile.personal_membership.default
targetEntityType: profile
bundle: personal_membership
mode: default
content:
field_fullname:
weight: 0
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
hidden: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
uuid: e80fe8a9-80d2-4780-a6ec-db2fa137a98e
langcode: en
status: true
dependencies:
config:
- field.storage.profile.field_company_member
- profile.type.company_membership
id: profile.company_membership.field_company_member
field_name: field_company_member
entity_type: profile
bundle: company_membership
label: 'Company member'
description: 'Kdo patří do této firmy?'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:user'
handler_settings:
include_anonymous: false
filter:
type: _none
target_bundles: null
sort:
field: _none
auto_create: false
field_type: entity_reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 4272309f-8287-49cc-964a-a84edaccfd9a
langcode: en
status: true
dependencies:
config:
- field.storage.profile.field_fullname
- profile.type.personal_membership
id: profile.personal_membership.field_fullname
field_name: field_fullname
entity_type: profile
bundle: personal_membership
label: Fullname
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
20 changes: 20 additions & 0 deletions config/default/field.storage.profile.field_company_member.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: a23a3328-33c7-4ba0-aff1-ad2f74a510ea
langcode: en
status: true
dependencies:
module:
- profile
- user
id: profile.field_company_member
field_name: field_company_member
entity_type: profile
type: entity_reference
settings:
target_type: user
module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
21 changes: 21 additions & 0 deletions config/default/field.storage.profile.field_fullname.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 39b05045-bd47-4445-9936-6545504ea06f
langcode: en
status: true
dependencies:
module:
- profile
id: profile.field_fullname
field_name: field_fullname
entity_type: profile
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: 'Delete selected profile'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: 'Publish selected profile'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: 'Unpublish selected profile'
27 changes: 27 additions & 0 deletions config/default/language/en/views.view.profiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
label: Profiles
display:
default:
display_title: Master
display_options:
exposed_form:
options:
submit_button: Apply
reset_button_label: Reset
exposed_sorts_label: 'Sort by'
sort_asc_label: Asc
sort_desc_label: Desc
arguments:
uid:
exception:
title: All
type:
exception:
title: All
status:
exception:
title: All
title: Profiles
profile_type_listing:
display_title: 'Profile type listing'
user_view:
display_title: 'User view'
16 changes: 16 additions & 0 deletions config/default/profile.type.company_membership.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
uuid: 2ac102e1-3f2c-4ed4-a734-21f341920d87
langcode: en
status: true
dependencies: { }
id: company_membership
label: 'Company membership'
registration: false
multiple: true
roles:
authenticated: authenticated
contributor: '0'
editor: '0'
administrator: '0'
weight: 0
use_revisions: false
description: ''
16 changes: 16 additions & 0 deletions config/default/profile.type.personal_membership.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
uuid: c46e9960-fbfa-474d-8646-e6304f7e94c6
langcode: en
status: true
dependencies: { }
id: personal_membership
label: 'Personal membership'
registration: false
multiple: false
roles:
authenticated: authenticated
contributor: '0'
editor: '0'
administrator: '0'
weight: 0
use_revisions: false
description: ''
13 changes: 13 additions & 0 deletions config/default/system.action.profile_delete_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 5689aced-8caf-4e55-81d0-519f6c3c555f
langcode: cs
status: true
dependencies:
module:
- profile
_core:
default_config_hash: 7iaCHiR7rJnpuIcqcYxtZ6OFm7HnFfjZJdE1s-8K4RM
id: profile_delete_action
label: 'Delete selected profile'
type: profile
plugin: profile_delete_action
configuration: { }
13 changes: 13 additions & 0 deletions config/default/system.action.profile_publish_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: 0aa4f171-d8b9-4deb-abdc-fec0c3a79fb8
langcode: cs
status: true
dependencies:
module:
- profile
_core:
default_config_hash: dz5_l09fj1m6b4MZVYlHjYHsXSlG9aQHGGoupPb8phg
id: profile_publish_action
label: 'Publish selected profile'
type: profile
plugin: profile_publish_action
configuration: { }
13 changes: 13 additions & 0 deletions config/default/system.action.profile_unpublish_action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
uuid: f17ded1f-eaab-4098-8461-2b89ef7c82a8
langcode: cs
status: true
dependencies:
module:
- profile
_core:
default_config_hash: QWiXic0BIuoYYgvkiSTxsCsPPi7k1mYuHOTIAPhoT4Q
id: profile_unpublish_action
label: 'Unpublish selected profile'
type: profile
plugin: profile_unpublish_action
configuration: { }
Loading

0 comments on commit 13bcf01

Please sign in to comment.