show hide functional

This commit is contained in:
2022-01-21 12:35:33 +01:00
parent ecae7dab44
commit 416b62fc60
6 changed files with 66 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
<div class="row">
<legend class="col-sm-4 col-form-label">Associer un</legend>
<div class="col-sm-8">
<div id="chill_personbundle_person_resource_linkedEntity">
<div id="entity-selector">
<div class="form-check">
<input type="radio" id="chill_personbundle_person_resource_linkedEntity_0" name="linked-entity" class="form-check-input" value="person" />
<label class="form-check-label" for="chill_personbundle_person_resource_linkedEntity_0">Usager</label>
@@ -19,7 +19,7 @@
<label class="form-check-label" for="chill_personbundle_person_resource_linkedEntity_1">Tiers</label>
</div>
<div class="form-check">
<input type="radio" id="chill_personbundle_person_resource_linkedEntity_2" name="linked-entity" class="form-check-input" value="freeText" />
<input type="radio" id="chill_personbundle_person_resource_linkedEntity_2" name="linked-entity" class="form-check-input" value="freetext" />
<label class="form-check-label" for="chill_personbundle_person_resource_linkedEntity_2">Description libre</label>
</div>
</div>

View File

@@ -93,5 +93,7 @@
{% endblock %}
{% block js %}
{{ encore_entry_script_tags('page_person_resource') }}
{{ encore_entry_script_tags('page_person_resource_person_input') }}
{{ encore_entry_script_tags('page_person_resource_thirdparty_input') }}
{{ encore_entry_script_tags('page_person_resource_freetext_input') }}
{% endblock %}