adjustments to form + rendering of resource kinds

This commit is contained in:
2022-01-19 19:46:01 +01:00
parent d6bf1988f6
commit 4b188e2df6
4 changed files with 84 additions and 20 deletions

View File

@@ -7,7 +7,27 @@
{{ form_row(form.kind) }}
<div id="linked-entity">
{{ form_row(form.linkedEntity) }}
<fieldset class="mb-3">
<div class="row">
<legend class="col-sm-4 col-form-label required">Associer un</legend>
<div class="col-sm-8">
<div id="chill_personbundle_person_resource_linkedEntity">
<div class="form-check">
<input type="radio" id="chill_personbundle_person_resource_linkedEntity_0" class="form-check-input" value="person" />
<label class="form-check-label" for="chill_personbundle_person_resource_linkedEntity_0">Usager</label>
</div>
<div class="form-check">
<input type="radio" id="chill_personbundle_person_resource_linkedEntity_1" class="form-check-input" value="thirdparty" />
<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" class="form-check-input" value="freeText" />
<label class="form-check-label" for="chill_personbundle_person_resource_linkedEntity_2">Description libre</label>
</div>
</div>
</div>
</div>
</fieldset>
</div>
<div id="person-entity">
@@ -21,13 +41,12 @@
</div>
{{ form_row(form.comment) }}
<ul class="record_actions sticky-form-buttons">
<li class="dropdown">
<a class="btn btn-create"
href="#" role="button" id="newPersonResource">
<ul class="record_actions">
<li class="create">
<button class="btn btn-create"
type="submit" id="newPersonResource">
{{ 'Add a person resource'|trans }}
</a>
</button>
</li>
</ul>