File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ public function configureFields(string $pageName): iterable
102102 'BLUE ' => new TranslatableMessage ('smiley.BLUE ' ),
103103 'YELLOW ' => new TranslatableMessage ('smiley.YELLOW ' ),
104104 ])
105- // ->setRequired(true)
105+ // We want to use fancy smileys in the options (cf. translations/messages.da.yml).
106+ ->escapeHtml (false )
106107 ;
107108 yield TextareaField::new ('note ' );
108109 }
Original file line number Diff line number Diff line change @@ -286,7 +286,28 @@ group.placeholder: Magistrat
286286sysOwnerSub.placeholder : Afdeling
287287selfServiceAvailableFromItems.placeholder : Selvbetjeningsløsning
288288
289- smiley.GREEN : ' Grøn'
290- smiley.RED : ' Rød'
291- smiley.BLUE : ' Blå'
292- smiley.YELLOW : ' Gul'
289+ # Cf. templates/easy_admin_overrides/field_smiley.html.twig
290+ #
291+ # ../templates/svg/info-circle-solid.svg
292+ smiley.BLUE : |
293+ <div class="smiley-icon smiley-icon-blue" style="width: 25px; height: 25px;">
294+ <svg aria-hidden="true" data-prefix="fas" data-icon="info-circle" class="svg-inline--fa fa-info-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"></path></svg>
295+ </div>
296+
297+ # ../templates/svg/check-circle-solid.svg
298+ smiley.GREEN : |
299+ <div class="smiley-icon smiley-icon-green" style="width: 25px; height: 25px;">
300+ <svg aria-hidden="true" data-prefix="fas" data-icon="check-circle" class="svg-inline--fa fa-check-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg>
301+ </div>
302+
303+ # ../templates/svg/check-circle-solid.svg
304+ smiley.YELLOW : |
305+ <div class="smiley-icon smiley-icon-yellow" style="width: 25px; height: 25px;">
306+ <svg aria-hidden="true" data-prefix="fas" data-icon="check-circle" class="svg-inline--fa fa-check-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg>
307+ </div>
308+
309+ # ../exclamation-circle-solid.svg
310+ smiley.RED : |
311+ <div class="smiley-icon smiley-icon-red" style="width: 25px; height: 25px;">
312+ <svg aria-hidden="true" data-prefix="fas" data-icon="exclamation-circle" class="svg-inline--fa fa-exclamation-circle fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"></path></svg>
313+ </div>
You can’t perform that action at this time.
0 commit comments