Skip to content

Commit

Permalink
Merge pull request #120 from nochlezhka/report-fix
Browse files Browse the repository at this point in the history
fix: обязательное поле "Тип" в Отчётах
  • Loading branch information
a-menshchikov authored Oct 5, 2023
2 parents 9d76b1d + b28837f commit e3a78ae
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions shared/homeless/templates/admin/report.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@
Тип
</label>
<div class="sonata-ba-field sonata-ba-field-standard-natural">
<select id="s5a37cdd74da55_type" name="type" onchange="changeType()"
class=" form-control">
<select
id="s5a37cdd74da55_type"
name="type"
onchange="changeType()"
class=" form-control"
required="required"
>
<option value=""></option>
{% for id, name in types %}
<option value="{{ id }}">{{ name }}</option>
Expand All @@ -99,8 +104,11 @@
Сотрудник
</label>
<div class="sonata-ba-field sonata-ba-field-standard-natural">
<select id="s5a37cdd74da56_type" name="userId"
class=" form-control">
<select
id="s5a37cdd74da56_type"
name="userId"
class=" form-control"
>
<option value=""></option>
{% for user in users %}
<option value="{{ user.id }}">{{ user.fullname }}</option>
Expand Down

0 comments on commit e3a78ae

Please sign in to comment.