diff --git a/app/Resources/LightSamlSpBundle/views/discovery.html.twig b/app/Resources/LightSamlSpBundle/views/discovery.html.twig new file mode 100644 index 00000000000..fb0b3f2b018 --- /dev/null +++ b/app/Resources/LightSamlSpBundle/views/discovery.html.twig @@ -0,0 +1,16 @@ + + +
+ + + + + +-----BEGIN CERTIFICATE-----
."
+mautic.user.saml.metadata.invalid="The metadata file seems to be invalid."
\ No newline at end of file
diff --git a/app/bundles/UserBundle/Views/FormTheme/Config/_config_userconfig_widget.html.php b/app/bundles/UserBundle/Views/FormTheme/Config/_config_userconfig_widget.html.php
new file mode 100644
index 00000000000..583046b15a6
--- /dev/null
+++ b/app/bundles/UserBundle/Views/FormTheme/Config/_config_userconfig_widget.html.php
@@ -0,0 +1,82 @@
+children;
+$fieldKeys = array_keys($fields);
+$generateDownloadRow = function ($field) use ($formConfig, $fields, $view) {
+ $hasErrors = count($fields[$field]->vars['errors']);
+ $feedbackClass = (!empty($hasErrors)) ? ' has-error' : '';
+ $hide = (!empty($formConfig['parameters'][$field])) ? '' : ' hide';
+ $filename = \Mautic\CoreBundle\Helper\InputHelper::alphanum($view['translator']->trans($fields[$field]->vars['label']), true, '_');
+ $downloadUrl = $view['router']->path('mautic_config_action',
+ [
+ 'objectAction' => 'download',
+ 'objectId' => $field,
+ 'filename' => $filename,
+ ]
+ );
+ echo <<
+