Skip to content

Commit

Permalink
Merge pull request #15 from Vizzuality/cms/mpa_protection_stats_conte…
Browse files Browse the repository at this point in the history
…nt_type

[SKY30-74] Added new content type for linking MPAs with fishing protection levels
  • Loading branch information
Agnieszka Figiel authored Oct 20, 2023
2 parents 40248c0 + cab6c3b commit 63dc9b9
Show file tree
Hide file tree
Showing 13 changed files with 766 additions and 74 deletions.
74 changes: 63 additions & 11 deletions cms/config/sync/admin-role.strapi-super-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,19 +251,71 @@
{
"action": "plugin::content-manager.explorer.create",
"actionParameters": {},
"subject": "api::mpa.mpa",
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"wdpaid",
"name",
"area"
]
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.delete",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.read",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area"
]
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.update",
"actionParameters": {},
"subject": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"properties": {
"fields": [
"mpa",
"fishing_protection_level",
"mpaa_protection_level",
"location",
"area"
]
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.create",
"actionParameters": {},
"subject": "api::mpa.mpa",
"properties": {
"fields": [
"wdpaid",
"name",
"area",
"year",
"mpaa_establishment_stage",
"protection_status"
]
},
"conditions": []
},
{
"action": "plugin::content-manager.explorer.delete",
"actionParameters": {},
Expand All @@ -277,12 +329,12 @@
"subject": "api::mpa.mpa",
"properties": {
"fields": [
"location",
"wdpaid",
"name",
"mpaa_protection_level",
"fishing_protection_level",
"area"
"area",
"year",
"mpaa_establishment_stage",
"protection_status"
]
},
"conditions": []
Expand All @@ -293,12 +345,12 @@
"subject": "api::mpa.mpa",
"properties": {
"fields": [
"location",
"wdpaid",
"name",
"mpaa_protection_level",
"fishing_protection_level",
"area"
"area",
"year",
"mpaa_establishment_stage",
"protection_status"
]
},
"conditions": []
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
{
"key": "plugin_content_manager_configuration_content_types::api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"value": {
"uid": "api::mpa-protection-coverage-stat.mpa-protection-coverage-stat",
"settings": {
"bulkable": true,
"filterable": true,
"searchable": true,
"pageSize": 10,
"mainField": "id",
"defaultSortBy": "id",
"defaultSortOrder": "ASC"
},
"metadatas": {
"id": {
"edit": {},
"list": {
"label": "id",
"searchable": true,
"sortable": true
}
},
"mpa": {
"edit": {
"label": "mpa",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "name"
},
"list": {
"label": "mpa",
"searchable": true,
"sortable": true
}
},
"fishing_protection_level": {
"edit": {
"label": "fishing_protection_level",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "slug"
},
"list": {
"label": "fishing_protection_level",
"searchable": true,
"sortable": true
}
},
"mpaa_protection_level": {
"edit": {
"label": "mpaa_protection_level",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "slug"
},
"list": {
"label": "mpaa_protection_level",
"searchable": true,
"sortable": true
}
},
"location": {
"edit": {
"label": "location",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "code"
},
"list": {
"label": "location",
"searchable": true,
"sortable": true
}
},
"area": {
"edit": {
"label": "area",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "area",
"searchable": true,
"sortable": true
}
},
"createdAt": {
"edit": {
"label": "createdAt",
"description": "",
"placeholder": "",
"visible": false,
"editable": true
},
"list": {
"label": "createdAt",
"searchable": true,
"sortable": true
}
},
"updatedAt": {
"edit": {
"label": "updatedAt",
"description": "",
"placeholder": "",
"visible": false,
"editable": true
},
"list": {
"label": "updatedAt",
"searchable": true,
"sortable": true
}
},
"createdBy": {
"edit": {
"label": "createdBy",
"description": "",
"placeholder": "",
"visible": false,
"editable": true,
"mainField": "firstname"
},
"list": {
"label": "createdBy",
"searchable": true,
"sortable": true
}
},
"updatedBy": {
"edit": {
"label": "updatedBy",
"description": "",
"placeholder": "",
"visible": false,
"editable": true,
"mainField": "firstname"
},
"list": {
"label": "updatedBy",
"searchable": true,
"sortable": true
}
}
},
"layouts": {
"list": [
"id",
"mpa",
"fishing_protection_level",
"mpaa_protection_level"
],
"edit": [
[
{
"name": "mpa",
"size": 6
},
{
"name": "fishing_protection_level",
"size": 6
}
],
[
{
"name": "mpaa_protection_level",
"size": 6
},
{
"name": "location",
"size": 6
}
],
[
{
"name": "area",
"size": 4
}
]
]
}
},
"type": "object",
"environment": null,
"tag": null
}
Loading

0 comments on commit 63dc9b9

Please sign in to comment.