
Dokumentation | Skapa nytt driftkort
Denna sida laddar data skapad med Meta Box AIO genom tillägget WP Front Admin
Meta Box datan är nedan men går att anpassa med en visuell redigerare i backend.
<?php
add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
function your_prefix_function_name( $meta_boxes ) {
$prefix = '';
$meta_boxes[] = [
'title' => __( 'Driftkort', 'your-text-domain' ),
'id' => 'acf_group_6276842e5aae1-2-2',
'post_types' => ['driftkort'],
'closed' => false,
'default_hidden' => false,
'autosave' => false,
'revision' => true,
'tab_style' => 'box',
'tabs' => [
'allman_data' => [
'label' => 'Allmän data',
'icon' => 'dashicons-admin-generic',
],
'serverinfo' => [
'label' => 'Serverinfo',
'icon' => 'dashicons-database',
],
'systeminformation' => [
'label' => 'Systeminformation',
'icon' => 'dashicons-format-chat',
],
'tab_relationer' => [
'label' => 'Relationer',
'icon' => 'dashicons-networking',
],
'tab_sakerhet_leverantor' => [
'label' => 'Säkerhet & leverantör',
'icon' => 'dashicons-lock',
],
'kommentarer_tab' => [
'label' => 'Kommentarer',
'icon' => 'dashicons-format-chat',
],
],
'fields' => [
[
'name' => __( 'Systembeskrivning', 'your-text-domain' ),
'id' => $prefix . 'sammanfattning',
'type' => 'textarea',
'label_description' => __( 'Beskriv kort vad detta system gör/är till för:', 'your-text-domain' ),
'placeholder' => __( 'T.ex.: Driftkort för vår helpdesk, SD+', 'your-text-domain' ),
'rows' => 2,
'required' => true,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit' => 80,
'limit_type' => 'character',
'tab' => 'allman_data',
],
[
'name' => __( 'Vilken kommun använder systemet?', 'your-text-domain' ),
'id' => $prefix . 'kommun',
'type' => 'taxonomy',
'label_description' => __( 'Du kan välja fler kommuner om systemet används i mer än 1 kommun.', 'your-text-domain' ),
'taxonomy' => ['kommun'],
'field_type' => 'checkbox_list',
'add_new' => false,
'remove_default' => false,
'select_all_none' => false,
'required' => true,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'allman_data',
],
[
'name' => __( 'Vilka ska ha access till denna artikel?', 'your-text-domain' ),
'id' => $prefix . 'vilken_grupp',
'type' => 'taxonomy',
'label_description' => __( 'Välj de grupper som ska ha access att se denna artikel.', 'your-text-domain' ),
'taxonomy' => ['grupp'],
'field_type' => 'checkbox_list',
'placeholder' => __( 'IT-Infrastruktur', 'your-text-domain' ),
'add_new' => false,
'remove_default' => false,
'select_all_none' => false,
'required' => true,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'allman_data',
],
[
'name' => __( 'Taggar', 'your-text-domain' ),
'id' => $prefix . 'taggar',
'type' => 'taxonomy',
'label_description' => __( 'Taggar kan användas för att hitta artiklar/system/servrar som har kopplingar till varandra.', 'your-text-domain' ),
'desc' => __( 'Bra tagg på en domänkontrollant kan t.ex. "DC" och "Domänkontrollant". Sök fram tagg eller lägg till en ny om den inte finns genom knappen "Ny tagg".', 'your-text-domain' ),
'taxonomy' => ['driftkort-taggar'],
'field_type' => 'select_advanced',
'add_new' => true,
'remove_default' => false,
'multiple' => true,
'select_all_none' => false,
'required' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'allman_data',
],
[
'name' => __( 'Ladda upp filer', 'your-text-domain' ),
'id' => $prefix . 'ladda_upp_filer',
'type' => 'file_upload',
'desc' => __( 'T.ex. manualer', 'your-text-domain' ),
'max_file_uploads' => 30,
'force_delete' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'allman_data',
],
[
'name' => __( 'Serverinformation', 'your-text-domain' ),
'id' => $prefix . 'serverinformation',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett till serverblock', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Servernamn', 'your-text-domain' ),
'id' => $prefix . 'servernamn_taxo',
'type' => 'taxonomy_advanced',
'label_description' => __( 'Vad har servern för namn?', 'your-text-domain' ),
'taxonomy' => ['servernamn'],
'field_type' => 'select_tree',
'placeholder' => __( 'Välj i listan eller lägg till nytt servernamn...', 'your-text-domain' ),
'add_new' => true,
'remove_default' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Server IP', 'your-text-domain' ),
'id' => $prefix . 'server_ip',
'type' => 'text',
'label_description' => __( 'Vilken IP har servern?', 'your-text-domain' ),
'placeholder' => __( '172.0.0.1', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Servertyp', 'your-text-domain' ),
'id' => $prefix . 'servertyp',
'type' => 'radio',
'label_description' => __( 'Är servern en hårdvara eller virtuell maskin?', 'your-text-domain' ),
'options' => [
'Fysisk' => __( 'Fysisk', 'your-text-domain' ),
'Virtuell' => __( 'Virtuell', 'your-text-domain' ),
],
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Server kommun', 'your-text-domain' ),
'id' => $prefix . 'server_kommun',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar denna server?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'OS Version', 'your-text-domain' ),
'id' => $prefix . 'os_version',
'type' => 'autocomplete',
'label_description' => __( 'Vilket OS är installerat?', 'your-text-domain' ),
'desc' => __( 'Börja skriva för att välja...', 'your-text-domain' ),
'options' => [
'Windows Server 2008' => __( 'Windows Server 2008', 'your-text-domain' ),
'Windows Server 2012' => __( 'Windows Server 2012', 'your-text-domain' ),
'Windows Server 2012 R2' => __( 'Windows Server 2012 R2', 'your-text-domain' ),
'Windows Server 2012 Core' => __( 'Windows Server 2012 Core', 'your-text-domain' ),
'Windows Server 2016' => __( 'Windows Server 2016', 'your-text-domain' ),
'Windows Server 2016 R2' => __( 'Windows Server 2016 R2', 'your-text-domain' ),
'Windows Server 2016 Core' => __( 'Windows Server 2016 Core', 'your-text-domain' ),
'Windows Server 2019' => __( 'Windows Server 2019', 'your-text-domain' ),
'Windows Server 2019 R2' => __( 'Windows Server 2019 R2', 'your-text-domain' ),
'Windows Server 2019 Core' => __( 'Windows Server 2019 Core', 'your-text-domain' ),
'Windows Server 2022' => __( 'Windows Server 2022', 'your-text-domain' ),
'Windows Server 2022 R2' => __( 'Windows Server 2022 R2', 'your-text-domain' ),
'Windows Server 2022 Core' => __( 'Windows Server 2022 Core', 'your-text-domain' ),
'Ubuntu' => __( 'Ubuntu', 'your-text-domain' ),
'Linux' => __( 'Linux', 'your-text-domain' ),
'Forti OS' => __( 'Forti OS', 'your-text-domain' ),
],
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Driftförvaltare', 'your-text-domain' ),
'id' => $prefix . 'driftforvaltare',
'type' => 'user',
'label_description' => __( 'Vem/vilka förvaltar denna server/system.', 'your-text-domain' ),
'desc' => __( 'Du kan välja fler än 1.', 'your-text-domain' ),
'field_type' => 'select_advanced',
'placeholder' => __( 'Vem/vilka förvaltar detta system?', 'your-text-domain' ),
'add_new' => false,
'multiple' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Serverinformation', 'your-text-domain' ),
'id' => $prefix . 'serverinformation',
'type' => 'textarea',
'rows' => 4,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'serverinfo',
],
[
'name' => __( 'Vill du lägga till systemägare?', 'your-text-domain' ),
'id' => $prefix . 'systemagare_switch',
'type' => 'switch',
'style' => 'rounded',
'on_label' => 'Ja',
'off_label' => 'Nej',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'systeminformation',
],
[
'name' => __( 'Systemägare', 'your-text-domain' ),
'id' => $prefix . 'systemagare',
'type' => 'textarea',
'label_description' => __( 'Vem är systemägare?', 'your-text-domain' ),
'rows' => 2,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
'visible' => [
'when' => [['systemagare_switch', '=', 1]],
'relation' => 'or',
],
'tab' => 'systeminformation',
],
[
'name' => __( 'Är det någon intern som ger access? ', 'your-text-domain' ),
'id' => $prefix . 'access_internt_switch',
'type' => 'switch',
'style' => 'rounded',
'on_label' => 'Ja, vi sköter access internt',
'off_label' => 'Nej, access sköts internt',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'systeminformation',
],
[
'name' => __( 'Vem pratar man med för att få access till detta system?', 'your-text-domain' ),
'id' => $prefix . 'vem_pratar_man_med_for_att_fa_access',
'type' => 'user',
'field_type' => 'select_advanced',
'placeholder' => __( 'Sök & välj i listan', 'your-text-domain' ),
'add_new' => false,
'multiple' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'visible' => [
'when' => [['access_internt_switch', '=', 1]],
'relation' => 'or',
],
'tab' => 'systeminformation',
],
[
'name' => __( 'Är det extern part som ger access?', 'your-text-domain' ),
'id' => $prefix . 'extern_part_switch',
'type' => 'switch',
'style' => 'rounded',
'on_label' => 'Ja, extern part',
'off_label' => 'Nej, intern personal',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'systeminformation',
],
[
'name' => __( 'Okej, extern part, vem ger access till systemet?', 'your-text-domain' ),
'id' => $prefix . 'extern_part_on',
'type' => 'textarea',
'rows' => 3,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
'visible' => [
'when' => [['extern_part_switch', '=', 1]],
'relation' => 'or',
],
'tab' => 'systeminformation',
],
[
'name' => __( 'Finns det vanliga fel och lösningar?', 'your-text-domain' ),
'id' => $prefix . 'finns_det_vanliga_fel_och_losningar',
'type' => 'switch',
'style' => 'rounded',
'on_label' => 'Ja, jag vill anteckna dem',
'off_label' => 'Nej, inga kända fel',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'systeminformation',
],
[
'name' => __( 'Vanliga fel och lösningar', 'your-text-domain' ),
'id' => $prefix . 'vanliga_fel_och_losningar',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'min_clone' => -3,
'add_button' => __( 'Lägg till ett nytt fel & lösning', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Skriv en rubrik', 'your-text-domain' ),
'id' => $prefix . 'faq_rubrik',
'type' => 'text',
'label_description' => __( 'En kort rubrik så man snabbt förstår vad detta fel är', 'your-text-domain' ),
'placeholder' => __( 'T.ex: Servern blåskärmar vid uppstart', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Beskriv felet och hur man löser det', 'your-text-domain' ),
'id' => $prefix . 'faq_text',
'type' => 'textarea',
'rows' => 5,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'visible' => [
'when' => [['finns_det_vanliga_fel_och_losningar', '=', 1]],
'relation' => 'or',
],
'tab' => 'systeminformation',
],
[
'name' => __( 'Finns det extern DNS för servern/systemet?', 'your-text-domain' ),
'id' => $prefix . 'extern_dns_swtich',
'type' => 'switch',
'style' => 'rounded',
'on_label' => 'Ja, det finns extern DNS',
'off_label' => 'Nej, ingen extern DNS',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'systeminformation',
],
[
'name' => __( 'Extern DNS', 'your-text-domain' ),
'id' => $prefix . 'extern_dns_group',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Extern IP adress', 'your-text-domain' ),
'id' => $prefix . 'extern_ip',
'type' => 'text',
'label_description' => __( 'Fyll i extern IP, om fler, separera med kommatecken. ', 'your-text-domain' ),
'placeholder' => __( '72.90.20.9, 72.90.20.10', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Övrig information för extern DNS', 'your-text-domain' ),
'id' => $prefix . 'extern_dns_ovrig_info',
'type' => 'textarea',
'label_description' => __( 'Här kan du lägga till övrig information som har med extern DNS att göra.', 'your-text-domain' ),
'rows' => 3,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'visible' => [
'when' => [['extern_dns_swtich', '=', 1]],
'relation' => 'or',
],
'tab' => 'systeminformation',
],
[
'name' => __( 'Vill du lägga till mer information om systemet? ', 'your-text-domain' ),
'id' => $prefix . 'systeminfo_switch',
'type' => 'switch',
'style' => 'rounded',
'on_label' => 'Ja',
'off_label' => 'Nej',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'systeminformation',
],
[
'name' => __( 'Systeminformation', 'your-text-domain' ),
'id' => $prefix . 'systeminformation_text',
'type' => 'wysiwyg',
'raw' => false,
'options' => [
'textarea_rows' => 6,
'media_buttons' => false,
'drag_drop_upload' => true,
],
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
'visible' => [
'when' => [['systeminfo_switch', '=', 1]],
'relation' => 'or',
],
'tab' => 'systeminformation',
],
[
'name' => __( 'Vilka server/systemkopplingar finns det?', 'your-text-domain' ),
'id' => $prefix . 'systemkopplingar_grupp',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett till server/systemkopplingsblock', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Servernamn', 'your-text-domain' ),
'id' => $prefix . 'servernamn_koppling',
'type' => 'taxonomy_advanced',
'label_description' => __( 'T.ex. ITC-NOC05 | Kontrollera först om servern finns, annars lägg till den genom "Skapa ny server" ovan.', 'your-text-domain' ),
'taxonomy' => ['servernamn'],
'placeholder' => __( 'Välj server eller lägg till ny...', 'your-text-domain' ),
'add_new' => true,
'remove_default' => false,
'multiple' => false,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Tillhör kommun', 'your-text-domain' ),
'id' => $prefix . 'kommun_systemkoppling',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar denna systemkoppling?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Vad för typ av koppling är detta?', 'your-text-domain' ),
'id' => $prefix . 'vad_for_typ_av_koppling_ar_detta',
'type' => 'textarea',
'label_description' => __( 'Beskriv vad för typ av koppling det är, t.ex. databas/AD-integration', 'your-text-domain' ),
'placeholder' => __( 'MSSQL Databas', 'your-text-domain' ),
'rows' => 4,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'tab_relationer',
],
[
'name' => __( 'Webbplatser', 'your-text-domain' ),
'id' => $prefix . 'webbplatser_grupp',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett till server/systemkopplingsblock', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Finns det en webbportal?', 'your-text-domain' ),
'id' => $prefix . 'webbportal_switch',
'type' => 'switch',
'on_label' => 'Ja',
'off_label' => 'Nej',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Servernamn', 'your-text-domain' ),
'id' => $prefix . 'servernamn_webbplats',
'type' => 'taxonomy_advanced',
'label_description' => __( 'T.ex. ITC-NOC05 | Kontrollera först om servern finns, annars lägg till den genom "Skapa ny server" ovan.', 'your-text-domain' ),
'taxonomy' => ['servernamn'],
'placeholder' => __( 'Välj server eller lägg till ny...', 'your-text-domain' ),
'add_new' => true,
'remove_default' => false,
'multiple' => false,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'visible' => [
'when' => [['webbportal_switch', '=', 1]],
'relation' => 'or',
],
],
[
'name' => __( 'Webbadress:', 'your-text-domain' ),
'id' => $prefix . 'webbadress',
'type' => 'url',
'label_description' => __( 'Fyll i webbadressen till portalen', 'your-text-domain' ),
'placeholder' => __( 'https://prtg.osthammar.se', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'visible' => [
'when' => [['webbportal_switch', '=', 1]],
'relation' => 'or',
],
],
[
'name' => __( 'Tillhör kommun', 'your-text-domain' ),
'id' => $prefix . 'kommun_webbplatskoppling',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar denna systemkoppling?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'visible' => [
'when' => [['webbportal_switch', '=', 1]],
'relation' => 'or',
],
],
[
'name' => __( 'Beskriv vad denna portal gör/vad du kan göra i den', 'your-text-domain' ),
'id' => $prefix . 'webbportal_text',
'type' => 'textarea',
'rows' => 4,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
'visible' => [
'when' => [['webbportal_switch', '=', 1]],
'relation' => 'or',
],
],
],
'tab' => 'tab_relationer',
],
[
'name' => __( 'Finns det integrationer?', 'your-text-domain' ),
'id' => $prefix . 'integration_grupp',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett nytt integrationsblock', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Integrationsnamn', 'your-text-domain' ),
'id' => $prefix . 'integrationsnamn',
'type' => 'text',
'label_description' => __( 'Vad kallas integrationen?', 'your-text-domain' ),
'placeholder' => __( 'Teis', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Tillhör kommun', 'your-text-domain' ),
'id' => $prefix . 'kommun_integration',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar denna integration?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Vad gör denna integration?', 'your-text-domain' ),
'id' => $prefix . 'vad_gor_denna_integration',
'type' => 'textarea',
'label_description' => __( 'Beskriv vad för typ av koppling det är, t.ex. databas/AD-integration', 'your-text-domain' ),
'placeholder' => __( 'Hämtar användardata från AD.', 'your-text-domain' ),
'rows' => 4,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'tab_relationer',
],
[
'name' => __( 'Finns det gruppberoenden?', 'your-text-domain' ),
'id' => $prefix . 'gruppberoenden_grupp',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett nytt gruppberoende-block', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Gruppnamn', 'your-text-domain' ),
'id' => $prefix . 'gruppnamn',
'type' => 'text',
'label_description' => __( 'Om t.ex. en programgrupp, skriv namnet här', 'your-text-domain' ),
'placeholder' => __( 'InstansEDP', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Tillhör kommun', 'your-text-domain' ),
'id' => $prefix . 'kommun_grupp',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar denna grupp?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Vad gör denna grupp?', 'your-text-domain' ),
'id' => $prefix . 'vad_gor_denna_grupp',
'type' => 'textarea',
'label_description' => __( 'Beskriv vad denna grupp gör för något.', 'your-text-domain' ),
'placeholder' => __( 'Tillåter att användaren får access till systemet', 'your-text-domain' ),
'rows' => 4,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'tab_relationer',
],
[
'name' => __( 'Vilka tjänster, konton och jobb finns det?', 'your-text-domain' ),
'id' => $prefix . 'vilka_tjanster_konton',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett nytt tjänst/konto/jobb block', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Tjänstenamn', 'your-text-domain' ),
'id' => $prefix . 'tjanstenamn',
'type' => 'text',
'label_description' => __( 'Vad har tjänsten för namn?', 'your-text-domain' ),
'placeholder' => __( 'PRTG', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Tillhör kommun', 'your-text-domain' ),
'id' => $prefix . 'kommun_tjanstekonto',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar detta konto/tjänst?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Vilket konto används för denna tjänst?', 'your-text-domain' ),
'id' => $prefix . 'tjanstekonto',
'type' => 'wysiwyg',
'label_description' => __( 'Skriv användarnamnet som tjänsten använder sig av', 'your-text-domain' ),
'raw' => false,
'options' => [
'textarea_rows' => 4,
],
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'tab_relationer',
],
[
'name' => __( 'Finns det schemalagda jobb?', 'your-text-domain' ),
'id' => $prefix . 'schemalagda_jobb_grupp',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett nytt schemalagda jobb-block', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Jobbnamn', 'your-text-domain' ),
'id' => $prefix . 'jobb_namn',
'type' => 'text',
'label_description' => __( 'Skriv namnet på jobbet här', 'your-text-domain' ),
'placeholder' => __( 'Reboot_Win', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Tillhör kommun', 'your-text-domain' ),
'id' => $prefix . 'kommun_schemalagda_jobb',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar detta jobb?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Vad gör detta jobb?', 'your-text-domain' ),
'id' => $prefix . 'vad_gor_detta_jobb',
'type' => 'textarea',
'label_description' => __( 'Beskriv vad detta jobb gör för något.', 'your-text-domain' ),
'placeholder' => __( 'Startar om servern vid en viss tidpunkt', 'your-text-domain' ),
'rows' => 4,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'tab_relationer',
],
[
'name' => __( 'Finns det GPOer?', 'your-text-domain' ),
'id' => $prefix . 'gpoer_grupp',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till ett nytt GPO block', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'GPO namn', 'your-text-domain' ),
'id' => $prefix . 'gponamn',
'type' => 'text',
'label_description' => __( 'Vad har GPOn för namn?', 'your-text-domain' ),
'placeholder' => __( 'specops_computers', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Tillhör kommun', 'your-text-domain' ),
'id' => $prefix . 'kommun_gpo',
'type' => 'checkbox_list',
'label_description' => __( 'Vilken kommun nyttjar denna GPO?', 'your-text-domain' ),
'options' => [
'Heby' => __( 'Heby', 'your-text-domain' ),
'Älvkarleby' => __( 'Älvkarleby', 'your-text-domain' ),
'Knivsta' => __( 'Knivsta', 'your-text-domain' ),
'Tierp' => __( 'Tierp', 'your-text-domain' ),
'Östhammar' => __( 'Östhammar', 'your-text-domain' ),
],
'inline' => true,
'select_all_none' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
],
[
'name' => __( 'Vad gör denna GPO?', 'your-text-domain' ),
'id' => $prefix . 'vad_gor_denna_gpo',
'type' => 'textarea',
'label_description' => __( 'Beskriv vad denna gpo gör för något.', 'your-text-domain' ),
'placeholder' => __( 'Hämtar programpaket för datorer.', 'your-text-domain' ),
'rows' => 4,
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'tab_relationer',
],
[
'name' => __( 'Vilken klassning är det på systemet?', 'your-text-domain' ),
'id' => $prefix . 'vilken_klassning_ar_det_pa_systemet',
'type' => 'button_group',
'options' => [
'A-klassat' => __( 'A-klassat', 'your-text-domain' ),
'B-klassat' => __( 'B-klassat', 'your-text-domain' ),
'C-klassat' => __( 'C-klassat', 'your-text-domain' ),
],
'multiple' => false,
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'tab_sakerhet_leverantor',
],
[
'name' => __( 'Är innehållet på servern GDPR klassat?', 'your-text-domain' ),
'id' => $prefix . 'gdpr_knapp',
'type' => 'switch',
'style' => 'square',
'on_label' => 'Ja',
'off_label' => 'Nej',
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'columns' => 6,
'hide_from_rest' => false,
'hide_from_front' => false,
'tab' => 'tab_sakerhet_leverantor',
],
[
'name' => __( 'Kontaktuppgifter till leverantör', 'your-text-domain' ),
'id' => $prefix . 'kontaktuppgifter_till_leverantor',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till en till leverantörskontakt', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Leverantörsnamn', 'your-text-domain' ),
'id' => $prefix . 'leverantorsnamn',
'type' => 'text',
'label_description' => __( 'Vad heter leverantören?', 'your-text-domain' ),
'placeholder' => __( 'Manage Enginge', 'your-text-domain' ),
'required' => false,
'disabled' => false,
'readonly' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
[
'name' => __( 'Vilka kontaktuppgifter finns det?', 'your-text-domain' ),
'id' => $prefix . 'leverantor_kontaktuppgifter',
'type' => 'wysiwyg',
'label_description' => __( 'Fyll i de uppgifter som finns, t.ex. e-post & telefonnummer.', 'your-text-domain' ),
'raw' => false,
'options' => [
'teeny' => true,
'quicktags' => false,
'media_buttons' => false,
'textarea_rows' => 4,
],
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'tab_sakerhet_leverantor',
],
[
'name' => __( 'Övriga uppgifter', 'your-text-domain' ),
'id' => $prefix . 'ovriga_uppgifter',
'type' => 'wysiwyg',
'label_description' => __( 'T.ex. sökväg till KeePass eller annan bra info att veta:', 'your-text-domain' ),
'raw' => false,
'options' => [
'textarea_rows' => 4,
'media_buttons' => false,
'teeny' => true,
'quicktags' => false,
],
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
'tab' => 'tab_sakerhet_leverantor',
],
[
'name' => __( 'Kommentarer', 'your-text-domain' ),
'id' => $prefix . 'kommentarer_grupp',
'type' => 'group',
'collapsible' => false,
'clone' => true,
'sort_clone' => false,
'clone_default' => false,
'clone_as_multiple' => false,
'clone_empty_start' => false,
'add_button' => __( 'Lägg till en till kommentar', 'your-text-domain' ),
'hide_from_rest' => false,
'hide_from_front' => false,
'fields' => [
[
'name' => __( 'Kommentarer', 'your-text-domain' ),
'id' => $prefix . 'kommentarer_2',
'type' => 'wysiwyg',
'label_description' => __( 'Här kan man lämna kommentarer som visas längst ner på artikeln, t.ex. om man gjort något i en Change så kan man hänvisa till den här.', 'your-text-domain' ),
'raw' => false,
'options' => [
'media_buttons' => false,
'textarea_rows' => 4,
'teeny' => true,
],
'required' => false,
'clone' => false,
'clone_empty_start' => false,
'hide_from_rest' => false,
'hide_from_front' => false,
'limit_type' => 'character',
],
],
'tab' => 'kommentarer_tab',
],
],
];
return $meta_boxes;Last updated