templates/bundles/SyliusAdminBundle/Layout/_search.html.twig line 1

Open in your IDE?
  1. {# <div class="item">
  2.     <form method="get" action="{{ path('sylius_admin_product_index') }}">
  3.         <div class="ui transparent left icon input">
  4.             <input type="text" name="criteria[search][value]" placeholder="{{ 'sylius.ui.search_products'|trans }}...">
  5.             <i class="search link icon"></i>
  6.         </div>
  7.     </form>
  8. </div> #}
  9. <style>
  10.     .env-label {
  11.         padding: 4px 8px;
  12.         border-radius: 4px;
  13.         font-weight: bold;
  14.         font-size: 0.875rem;
  15.         display: inline-block;
  16.         white-space: nowrap;
  17.     }
  18.     .env-danger {
  19.         border: 2px solid #ff4d4f;
  20.         color: #ff4d4f;
  21.         font-weight: 'bold';
  22.         font-size: 15px;
  23.         border-radius: 5px;
  24.     }
  25.     .env-warning {
  26.         border: 2px solid #faad14;
  27.         color: #faad14;
  28.         font-weight: 'bold';
  29.         font-size: 15px;
  30.         border-radius: 5px;
  31.     }
  32.     .env-info {
  33.         border: 2px solid #1890ff;
  34.         color: #1890ff;
  35.         font-weight: 'bold';
  36.         font-size: 15px;
  37.         border-radius: 5px;
  38.     }
  39.     .text-shadow {
  40.         display: inline-block;
  41.         padding: 5px 10px;
  42.         background-color: #1a30918c;
  43.         color: #fff;
  44.         border-radius: 10px;
  45.         font-weight: bold;
  46.         box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4);
  47.     }
  48. </style>
  49. <div class="item">
  50.     {% set env_class = '' %}
  51.     {% set env_icon = '' %}
  52.     {% set env_goal = '' %}
  53.     {% if my_database_env == 'Production' %}
  54.         {% set env_class = 'env-danger' %}
  55.         {% set env_icon = '🔥' %}
  56.         {% set env_goal = ' (Non destinée aux tests)' %}
  57.     {% elseif my_database_env == 'Développement' %}
  58.         {% set env_class = 'env-warning' %}
  59.         {% set env_icon = '⚠️' %}
  60.         {% set env_goal = ' (Destinée aux tests LOKINA)' %}
  61.     {% elseif my_database_env == 'Préprod' %}
  62.         {% set env_class = 'env-info' %}
  63.         {% set env_icon = 'ℹ️' %}
  64.         {% set env_goal = ' (Destinée aux tests DOD)' %}
  65.     {% endif %}
  66.     <span class="env-label {{ env_class }}">
  67.         {{"Vous êtes connecté à la base de : "}}    {{ env_icon }} {{ my_database_env }} {{ env_goal }} - <small class="text-shadow"> {{ my_database_date }} </small>
  68.     </span>
  69. </div>