File tree Expand file tree Collapse file tree
bundles/EasyAdminBundle/crud/field Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44{% if field .formattedValue is null %}
5- <span class =" badge badge-secondary" >{{ ' label.null' | trans(domain = ' EasyAdminBundle' ) }}</span >
5+ <span class =" badge badge-secondary" >{{ ' label.null' | trans(domain : ' EasyAdminBundle' ) }}</span >
66{% else %}
77 <code >{{ field .formattedValue }}</code >
8- {% endif %}
8+ {% endif %}
Original file line number Diff line number Diff line change 44{% if ea .crud .currentAction == ' detail' %}
55 <code >{{ field .formattedValue }}</code >
66{% else %}
7- <code >{{ field .formattedValue | replace({' /etc/nginx/sites-enabled/' : ' ./' }) }}</code >
8- {% endif %}
7+ <code >{{ field .formattedValue | replace ({' /etc/nginx/sites-enabled/' : ' ./' }) }}</code >
8+ {% endif %}
Original file line number Diff line number Diff line change 22{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44{% if field .formattedValue is null %}
5- <span class =" badge badge-secondary" >{{ ' label.null' | trans(domain = ' EasyAdminBundle' ) }}</span >
5+ <span class =" badge badge-secondary" >{{ ' label.null' | trans(domain : ' EasyAdminBundle' ) }}</span >
66{% else %}
77 <span class =" badge badge-info" >{{ field .formattedValue }}</span >
8- {% endif %}
8+ {% endif %}
Original file line number Diff line number Diff line change 99 <a target =" _blank" rel =" noopener" href =" https://{{ field .value }}" >{{ field .value }}</a >
1010{% else %}
1111 <a target =" _blank" rel =" noopener" href =" https://{{ field .value }}" >{{ field .formattedValue }}</a >
12- {% endif %}
12+ {% endif %}
Original file line number Diff line number Diff line change 22{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44
5- {% set slicedDate = field .formattedValue | slice(0 , 7 ) %}
5+ {% set slicedDate = field .formattedValue | slice (0 , 7 ) %}
66{% if ea .crud .currentAction == ' detail' %}
77 {% set outputValue = field .formattedValue %}
88{% else %}
Original file line number Diff line number Diff line change 33{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
44{% if field .formattedValue is empty %}
55 <span class =" badge badge-warning" >?</span >
6- {% elseif field .formattedValue == constant (' App\\Types\\HostingProviderType::AZURE' ) %}
6+ {% elseif field .formattedValue == constant (' App\\Types\\HostingProviderType::AZURE' ) %}
77 <span class =" badge badge-light" >{{ field .formattedValue }}</span >
8- {% elseif field .formattedValue == constant (' App\\Types\\HostingProviderType::IT_RELATION' ) %}
8+ {% elseif field .formattedValue == constant (' App\\Types\\HostingProviderType::IT_RELATION' ) %}
99 <span class =" badge badge-secondary" >{{ field .formattedValue }}</span >
10- {% elseif field .formattedValue == constant (' App\\Types\\HostingProviderType::DBC' ) %}
10+ {% elseif field .formattedValue == constant (' App\\Types\\HostingProviderType::DBC' ) %}
1111 <span class =" badge badge-dark" >{{ field .formattedValue }}</span >
1212{% else %}
1313 <span class =" badge badge-secondary" >{{ field .formattedValue }}</span >
Original file line number Diff line number Diff line change 77 <code class =" text-primary" >
88 <span title =" {{ field .formattedValue }}" >
99 {% if field .formattedValue starts with ' /data/www/' %}
10- {{ field .formattedValue | replace({' /data/www/' : ' ./' }) }}
10+ {{ field .formattedValue | replace ({' /data/www/' : ' ./' }) }}
1111 {% elseif field .formattedValue starts with ' /home/www/' %}
12- <code class =" text-primary" >{{ field .formattedValue | replace({' /home/www/' : ' ./' }) }}</code >
12+ <code class =" text-primary" >{{ field .formattedValue | replace ({' /home/www/' : ' ./' }) }}</code >
1313 {% else %}
1414 <code class =" text-primary" >{{ field .formattedValue }}</code >
1515 {% endif %}
Original file line number Diff line number Diff line change 1111 <span class =" badge badge-primary" >{{ field .formattedValue }}</span >
1212{% else %}
1313 <span class =" badge badge-secondary" >{{ field .formattedValue }}</span >
14- {% endif %}
14+ {% endif %}
Original file line number Diff line number Diff line change 11{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
22{# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
33{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
4- {% if field .formattedValue == constant (' App\\Types\\SiteType::NGINX' ) %}
4+ {% if field .formattedValue == constant (' App\\Types\\SiteType::NGINX' ) %}
55 <span class =" badge badge-secondary" >{{ field .formattedValue }}</span >
6- {% elseif field .formattedValue == constant (' App\\Types\\SiteType::DOCKER' ) %}
6+ {% elseif field .formattedValue == constant (' App\\Types\\SiteType::DOCKER' ) %}
77 <span class =" badge badge-light" >{{ field .formattedValue }}</span >
88{% else %}
99 <span class =" badge badge-dark" >{{ field .formattedValue }}</span >
Original file line number Diff line number Diff line change 44{% if ea .crud .currentAction == ' detail' %}
55 <ul class =" list-unstyled" >
66 {% for item in field .value %}
7- {# <li>{{ item }}</li>#}
7+ {# <li>{{ item }}</li> #}
88 <li ><a target =" _blank" rel =" noopener" href =" {{ item }}" >{{ item }}</a ></li >
99 {% endfor %}
1010 </ul >
You can’t perform that action at this time.
0 commit comments