Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
feat(debug): change display
Browse files Browse the repository at this point in the history
change text area for text field
display empty field if value inherited

Signed-off-by: Naylin <nmedina@teclib.com>
  • Loading branch information
Naylin15 authored and DIOHz0r committed Apr 24, 2018
1 parent 10cf68e commit e3807da
Showing 1 changed file with 32 additions and 22 deletions.
54 changes: 32 additions & 22 deletions tpl/entity_entityconfig.html.twig
Expand Up @@ -3,54 +3,62 @@
{{ __('Support name', 'flyvemdm') }}
</td>
<td>
<input name="support_name" value="{{ entityConfig.support_name }}" />
{% if entityConfig._support_name == -2 %}
{% if entityConfig._support_name == -2 %}
<input name="support_name" />
<div class="green">{{ __('Inheritance of the parent entity') }}</div>
{% endif %}
{% else %}
<input name="support_name" value="{{ entityConfig.support_name }}" />
{% endif %}
</td>
<td rowspan="4">
{{ __('Support address', 'flyvemdm') }}
</td>
<td rowspan="4">
<textarea cols="45" rows="8" name="support_address">{{ entityConfig.support_address }}</textarea>
{% if entityConfig._support_address == -2 %}
{% if entityConfig._support_address == -2 %}
<textarea cols="45" rows="8" name="support_address"></textarea>
<div class="green">{{ __('Inheritance of the parent entity') }}</div>
{% endif %}
{% else %}
<textarea cols="45" rows="8" name="support_address">{{ entityConfig.support_address }}</textarea>
{% endif %}
</td>
</tr>
<tr class='tab_bg_1'>
<td>
{{ __('Support phone', 'flyvemdm') }}
</td>
<td>
<input name="support_phone" value="{{ entityConfig.support_phone }}" />
{% if entityConfig._support_phone == -2 %}
{% if entityConfig._support_phone == -2 %}
<input name="support_phone" />
<div class="green">{{ __('Inheritance of the parent entity') }}</div>
{% endif %}
{% else %}
<input name="support_phone" value="{{ entityConfig.support_phone }}" />
{% endif %}
</td>
</tr>
<tr class='tab_bg_1'>
<td>
{{ __('Support website', 'flyvemdm') }}
</td>
<td>
<input name="support_website" value="{{ entityConfig.support_website }}" />
{% if entityConfig._support_website == -2 %}
{% if entityConfig._support_website == -2 %}
<input name="support_website" />
<div class="green">{{ __('Inheritance of the parent entity') }}</div>
{% endif %}
{% else %}
<input name="support_website" value="{{ entityConfig.support_website }}" />
{% endif %}
</td>
</tr>
<tr class='tab_bg_1'>
<td>
{{ __('Support email', 'flyvemdm') }}
</td>
<td>
<input name="support_email" value="{{ entityConfig.support_email }}" />
{% if entityConfig._support_email == -2 %}
{% if entityConfig._support_email == -2 %}
<input name="support_email" />
<div class="green">{{ __('Inheritance of the parent entity') }}</div>
{% endif %}
</td>
<td>
{% else %}
<input name="support_email" value="{{ entityConfig.support_email }}" />
{% endif %}
</td>
<td>
</td>
Expand All @@ -59,12 +67,14 @@
<th colspan="5" class="">{{ __('Configuration', 'flyvemdm') }}</th>
</tr>
<tr class="tab_bg_1">
<td>{{ __('MDM Agent URL', 'flyvemdm') }}</td>
<td>
<textarea cols="30" rows="2" name="download_url">{{ entityConfig.download_url }}</textarea>
<td>{{ __('MDM Agent URL', 'flyvemdm') }}</td>
<td>
{% if entityConfig._download_url == -2 %}
<div class="green">{{ __('Inheritance of the parent entity') }}</div>
<input name="download_url" value="" />
<div class="green">{{ __('Inheritance of the parent entity') }}</div>
{% else %}
<input name="download_url" value="{{ entityConfig.download_url }}" />
{% endif %}
</td>
</td>
<td></td>
</tr>

0 comments on commit e3807da

Please sign in to comment.