-
{{ 'RPA Process Overview'|trans }}
+
{{ site_title }}
diff --git a/templates/admin/crud/process_overview/options_details.html.twig b/templates/admin/crud/process_overview/options_details.html.twig
new file mode 100644
index 0000000..fb1a90c
--- /dev/null
+++ b/templates/admin/crud/process_overview/options_details.html.twig
@@ -0,0 +1,41 @@
+
diff --git a/templates/admin/process_overview_form.html.twig b/templates/admin/process_overview_form.html.twig
new file mode 100644
index 0000000..9ec86f8
--- /dev/null
+++ b/templates/admin/process_overview_form.html.twig
@@ -0,0 +1,119 @@
+{# Form overrides #}
+{% extends '@EasyAdmin/crud/form_theme.html.twig' %}
+
+{% block admin_form_template_view_widget %}
+ {% set template_path = ea_vars.field.templatePath|default(null) %}
+ {% set template_context = ea_vars.field.customOptions.get('template_context')|default([]) %}
+ {{ include(template_path, template_context) }}
+{% endblock %}
+
+{% macro accordion_start() %}
+
+{% endmacro %}
+
+{% macro accordion_item_start(id, label, collapsed) %}
+ {% set item_id = 'accordion_item-' ~ id %}
+
+
+
+
+ {% if id == 'process_options' %}
+
+ {% endif %}
+{% endmacro %}
+
+{% macro accordion_item_end(id) %}
+ {% if id == 'process_options' %}
+
+ {% endif %}
+
+
+
+{% endmacro %}
+
+{% macro accordion_end() %}
+
+{% endmacro %}
+
+{# https://symfony.com/bundles/EasyAdminBundle/current/fields.html#form-fieldsets #}
+{% block _ProcessOverview_ea_form_fieldset_data_source_row %}
+ {{ _self.accordion_start }}
+
+ {% set overview = ea_vars.entity.instance|default(null) %}
+ {% set data_source = overview.dataSource|default(null) %}
+ {% set process = overview.processId|default(null) %}
+ {% set collapsed = data_source is not empty %}
+
+ {{ _self.accordion_item_start('data_source', form.vars.label|trans(label_translation_parameters, translation_domain), collapsed) }}
+{% endblock %}
+
+{% block _ProcessOverview_ea_form_fieldset_close_data_source_row %}
+ {% set action = ea_crud_form.ea_entity.actions['saveAndContinue']|default(null) %}
+ {% set label = 'Use data source'|trans %}
+
+ {% if action %}
+ {% set _ = action.setLabel(label) %}
+ {% set _ = action.setIcon(null) %}
+ {{ include('@EasyAdmin/crud/action.html.twig', {action: action}) }}
+ {% endif %}
+
+ {{ _self.accordion_item_end() }}
+{% endblock %}
+
+{% block _ProcessOverview_ea_form_fieldset_process_row %}
+ {% set overview = ea_vars.entity.instance|default(null) %}
+ {% set data_source = overview.dataSource|default(null) %}
+ {% set process = overview.processId|default(null) %}
+ {% set collapsed = data_source is empty or process is not empty %}
+
+ {{ _self.accordion_item_start('process', form.vars.label|trans(label_translation_parameters, translation_domain), collapsed) }}
+
+ {% if null == overview.id|default(null) %}
+
+ {{ 'You must select and use a data source before you can select a process.'|trans }}
+
+ {% endif %}
+{% endblock %}
+
+{% block _ProcessOverview_ea_form_fieldset_close_process_row %}
+ {% set overview = ea_vars.entity.instance|default(null) %}
+ {% set process = overview.processId|default(null) %}
+
+ {% if null != overview.id|default(null) %}
+ {% set action = ea_crud_form.ea_entity.actions['saveAndContinue']|default(null) %}
+ {% set label = 'Use process'|trans %}
+
+ {% if action %}
+ {% set _ = action.setLabel(label) %}
+ {% set _ = action.setIcon(null) %}
+ {{ include('@EasyAdmin/crud/action.html.twig', {action: action}) }}
+ {% endif %}
+ {% endif %}
+
+ {{ _self.accordion_item_end() }}
+{% endblock %}
+
+{% block _ProcessOverview_ea_form_fieldset_process_options_row %}
+ {% set overview = ea_vars.entity.instance|default(null) %}
+ {% set data_source = overview.dataSource|default(null) %}
+ {% set process = overview.processId|default(null) %}
+ {% set collapsed = data_source is empty or process is empty %}
+
+ {{ _self.accordion_item_start('process_options', form.vars.label|trans(label_translation_parameters, translation_domain), collapsed) }}
+
+ {% if not process %}
+
+ {{ 'You must select and use a data source and a process before you can define options.'|trans }}
+
+ {% endif %}
+{% endblock %}
+
+{% block _ProcessOverview_ea_form_fieldset_close_process_options_row %}
+ {{ _self.accordion_item_end('process_options') }}
+
+ {{ _self.accordion_end }}
+{% endblock %}
diff --git a/templates/base.html.twig b/templates/base.html.twig
index 1d6b6dd..f5b9182 100644
--- a/templates/base.html.twig
+++ b/templates/base.html.twig
@@ -3,24 +3,23 @@
-
{% block title %}RPA Process overview{% endblock %}
- {% block stylesheets %}
-
- {% endblock %}
-
+
{% block title %}{{ site_title }}{% endblock %}
+
{% block javascripts %}
{% block importmap %}{{ importmap('app') }}{% endblock %}
{% endblock %}
-
-{% block body %}
- {% block header %}
- {{ include('_partials/main_header.html.twig') }}
- {% endblock %}
-
- {% block content %}
+
+
+ {% block body %}
+ {% block header %}
+ {{ include('_partials/main_header.html.twig') }}
{% endblock %}
-
-{% endblock %}
+
+ {% block content %}
+ {% endblock %}
+
+ {% endblock %}
+
diff --git a/templates/default/index.html.twig b/templates/default/index.html.twig
index 4b55bb7..80d5b39 100644
--- a/templates/default/index.html.twig
+++ b/templates/default/index.html.twig
@@ -1,12 +1,12 @@
{% extends 'base.html.twig' %}
-{% block title %}{{ 'RPA Process Overview'|trans }}{% endblock %}
-
{% block content %}
+ {% if is_granted(enum('App\\Entity\\UserRole').Admin.value) %}
-
{{ 'Admin'|trans }}
+ {% endif %}
-
{{ 'Groups'|trans }}
diff --git a/templates/process_overview/show.html.twig b/templates/process_overview/show.html.twig
index fa911ff..26e6fe4 100644
--- a/templates/process_overview/show.html.twig
+++ b/templates/process_overview/show.html.twig
@@ -2,26 +2,22 @@
{% block title %}{{ 'Overview {label}'|trans({label: overview.label}) }}{% endblock %}
-{% block javascripts %}
- {{ parent() }}
-
-{% endblock %}
-
{% block content %}
{{ include('_partials/group_header.html.twig', {group: overview.group, overview: overview}) }}
-
{{ 'Loading data …'|trans }}
-
#process-search
+{% set messages = {
+ 'Missing data': 'Missing data'|trans,
+ 'Failed processes': 'Failed processes'|trans,
+ 'Loading data...': 'Loading data...'|trans,
+ } %}
+{% set config = {
+ messages: messages,
+ data_url: data_url,
+ } %}
+ {# https://standalone.brenoliradev.com/embed.html#auto-embed-with-target #}
+
+
-
{{ data_url }}
+
+
{% endblock %}
diff --git a/templates/security/login.html.twig b/templates/security/login.html.twig
new file mode 100644
index 0000000..6798f4a
--- /dev/null
+++ b/templates/security/login.html.twig
@@ -0,0 +1,38 @@
+{% extends '@EasyAdmin/page/login.html.twig' %}
+
+{% block title %}Log in!{% endblock %}
+
+{% block body %}
+
+{% endblock %}
diff --git a/translations/messages+intl-icu.da.xlf b/translations/messages+intl-icu.da.xlf
index a2ff5c4..1eeb67f 100644
--- a/translations/messages+intl-icu.da.xlf
+++ b/translations/messages+intl-icu.da.xlf
@@ -69,9 +69,65 @@
Toggle navigation
Vis/skjul navigation
-
- Loading data …
- Henter data …
+
+ Data source
+ Datakilde
+
+
+ Data sources
+ Datakilder
+
+
+ URL
+ Url
+
+
+ Process
+ Proces
+
+
+ Metadata
+ Metadata
+
+
+ Example use in "{options}"
+ Eksempel på brug i "{options}"
+
+
+ Steps
+ Skridt
+
+
+ Process options
+ Indstillinger
+
+
+ Use data source
+ Brug datakilde
+
+
+ Use process
+ Brug proces
+
+
+ Details for {process}
+ Detaljer for {process}
+
+
+ You must select and use a data source before you can select a process.
+ Du skal vælge og bruge en datakilde før du kan vælge en proces.
+
+
+ You must select and use a data source and a process before you can define options.
+ Du skal vælge og bruge en datakilde og en proces før du kan definere indstillinger.
+
+
+ Data source ({label})
+ Datakilde ({label})
+
+
+ Process ({label})
+ Proces ({label})