Skip to content

Commit

Permalink
Merge pull request #30 from helsingborg-stad/feat/prefill-icons
Browse files Browse the repository at this point in the history
feat: prefill icons
  • Loading branch information
sebastianthulin authored Aug 28, 2024
2 parents 509dd4d + 02a3e83 commit f3e7b60
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 36 deletions.
97 changes: 76 additions & 21 deletions acf-fields/json/modularity-contact-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"key": "field_609a4bd6da499",
"label": "Display Options",
"name": "mod_contactbanner_display_options",
"aria-label": "",
"type": "checkbox",
"instructions": "",
"required": 0,
Expand All @@ -24,12 +25,14 @@
"layout": "horizontal",
"toggle": 0,
"return_format": "value",
"save_custom": 0
"save_custom": 0,
"custom_choice_button_text": "Add new choice"
},
{
"key": "field_609a423160be0",
"label": "Main content",
"name": "mod_contactbanner_main_content",
"aria-label": "",
"type": "textarea",
"instructions": "",
"required": 0,
Expand All @@ -51,12 +54,14 @@
"placeholder": "",
"maxlength": "",
"rows": "",
"new_lines": ""
"new_lines": "",
"acfe_textarea_code": 0
},
{
"key": "field_609a44af3c871",
"label": "Header - Business hours",
"name": "mod_contactbanner_header_business_hours",
"aria-label": "",
"type": "text",
"instructions": "Enter business hours header",
"required": 0,
Expand Down Expand Up @@ -84,6 +89,7 @@
"key": "field_609a482679912",
"label": "Hours list",
"name": "mod_contactbanner_hours_list",
"aria-label": "",
"type": "repeater",
"instructions": "",
"required": 0,
Expand All @@ -105,12 +111,15 @@
"min": 0,
"max": 0,
"layout": "row",
"button_label": "",
"button_label": "Add Row",
"rows_per_page": 20,
"acfe_repeater_stylised_button": 0,
"sub_fields": [
{
"key": "field_609a488179913",
"label": "Weekdays",
"name": "mod_contactbanner_weekdays",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
Expand All @@ -124,12 +133,14 @@
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
"maxlength": "",
"parent_repeater": "field_609a482679912"
},
{
"key": "field_609a488d79914",
"label": "Hours from",
"name": "mod_contactbanner_hours_from",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
Expand All @@ -143,12 +154,14 @@
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": 5
"maxlength": 5,
"parent_repeater": "field_609a482679912"
},
{
"key": "field_609a48db79915",
"label": "Hours to",
"name": "mod_contactbanner_hours_to",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
Expand All @@ -162,14 +175,16 @@
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": 5
"maxlength": 5,
"parent_repeater": "field_609a482679912"
}
]
},
{
"key": "field_609a8a4e0fce9",
"label": "Abnormalities - Business hours",
"name": "mod_contactbanner_abnormalities_business_hours",
"aria-label": "",
"type": "group",
"instructions": "",
"required": 0,
Expand All @@ -193,6 +208,7 @@
"key": "field_609a8aa20fcea",
"label": "Text",
"name": "text",
"aria-label": "",
"type": "text",
"instructions": "Leave empty if you don't want to use this option",
"required": 0,
Expand All @@ -212,6 +228,7 @@
"key": "field_609a8ac30fceb",
"label": "Link",
"name": "link",
"aria-label": "",
"type": "url",
"instructions": "Leave empty if you don't want to use this option",
"required": 0,
Expand All @@ -231,12 +248,18 @@
"default_value": "",
"placeholder": ""
}
]
],
"acfe_seamless_style": 0,
"acfe_group_modal": 0,
"acfe_group_modal_close": 0,
"acfe_group_modal_button": "",
"acfe_group_modal_size": "large"
},
{
"key": "field_5e1ed6113cdb8",
"label": "Call to action icon list",
"name": "mod_contactbanner_cta_list",
"aria-label": "",
"type": "repeater",
"instructions": "",
"required": 0,
Expand All @@ -251,11 +274,14 @@
"max": 4,
"layout": "block",
"button_label": "Add item",
"rows_per_page": 20,
"acfe_repeater_stylised_button": 0,
"sub_fields": [
{
"key": "field_5e1ed6a13cdb9",
"label": "Title",
"name": "mod_contactbanner_cta_title",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
Expand All @@ -269,31 +295,40 @@
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
"maxlength": "",
"parent_repeater": "field_5e1ed6113cdb8"
},
{
"key": "field_5e1ed6cd3cdba",
"key": "field_66cf17d72c91e",
"label": "Icon",
"name": "mod_contactbanner_cta_icon",
"type": "text",
"instructions": "You can find the icons we use at following address:\r\nhttp:\/\/v2.styleguide.helsingborg.se\/icons\r\n\r\nJust click the icon to copy or copy the icon name and paste the icon name here.",
"aria-label": "",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"choices": {},
"default_value": false,
"return_format": "value",
"multiple": 0,
"allow_custom": 0,
"search_placeholder": "",
"allow_null": 0,
"ui": 1,
"ajax": 0,
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
"parent_repeater": "field_5e1ed6113cdb8"
},
{
"key": "field_5e1ed7603cdbb",
"label": "Content",
"name": "mod_contactbanner_cta_content",
"aria-label": "",
"type": "wysiwyg",
"instructions": "",
"required": 0,
Expand All @@ -307,12 +342,14 @@
"tabs": "all",
"toolbar": "full",
"media_upload": 1,
"delay": 0
"delay": 0,
"parent_repeater": "field_5e1ed6113cdb8"
},
{
"key": "field_5e1ed76b3cdbc",
"label": "Label - Call to action",
"name": "mod_contactbanner_cta_label",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
Expand All @@ -326,12 +363,14 @@
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
"maxlength": "",
"parent_repeater": "field_5e1ed6113cdb8"
},
{
"key": "field_5e1ed8323cdbd",
"label": "URL - Call to action",
"name": "mod_contactbanner_cta_url",
"aria-label": "",
"type": "text",
"instructions": "",
"required": 0,
Expand All @@ -345,12 +384,14 @@
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
"maxlength": "",
"parent_repeater": "field_5e1ed6113cdb8"
},
{
"key": "field_5e1ee12b3cdbe",
"label": "onClick - Call to action",
"name": "mod_contactbanner_cta_onclick",
"aria-label": "",
"type": "text",
"instructions": "Enter javascript",
"required": 0,
Expand All @@ -364,7 +405,8 @@
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
"maxlength": "",
"parent_repeater": "field_5e1ed6113cdb8"
}
]
}
Expand All @@ -376,6 +418,13 @@
"operator": "==",
"value": "mod-contact-banner"
}
],
[
{
"param": "block",
"operator": "==",
"value": "acf\/contact-banner"
}
]
],
"menu_order": 0,
Expand All @@ -385,6 +434,12 @@
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": ""
"description": "",
"show_in_rest": 0,
"acfe_display_title": "",
"acfe_autosync": "",
"acfe_form": 0,
"acfe_meta": "",
"acfe_note": ""
}]


Loading

0 comments on commit f3e7b60

Please sign in to comment.