|
17 | 17 | [%- disambiguation_error() -%]
|
18 | 18 | [%- form_row_select(r, 'type_id', add_colon(l('Type'))) -%]
|
19 | 19 | [%- form_row_select(r, 'gender_id', add_colon(l('Gender'))) -%]
|
20 |
| - [% WRAPPER form_row %] |
21 |
| - [% area_field = form.field('area.name') %] |
22 |
| - <label for="id-edit-artist.area.name">[% add_colon(l('Area')) %]</label> |
23 |
| - <span id="area" class="area autocomplete"> |
24 |
| - [% React.embed(c, 'static/scripts/common/components/SearchIcon') %] |
25 |
| - [% r.hidden(form.field('area').field('gid'), { class => 'gid' }) %] |
26 |
| - [% r.hidden('area_id', class => 'id') %] |
27 |
| - [% r.text(area_field, class => 'name') %] |
28 |
| - </span> |
29 |
| - [% field_errors(r.form, 'area.name') %] |
30 |
| - [% END %] |
| 20 | + [% React.embed(c, 'static/scripts/edit/components/FormRowArea', { |
| 21 | + label => add_colon(l('Area')), |
| 22 | + field => form_to_json(form.field('area')), |
| 23 | + idField => form_to_json(form.field('area_id')), |
| 24 | + }) %] |
31 | 25 | [% React.embed(c, 'static/scripts/edit/components/FormRowTextListSimple', {
|
32 | 26 | repeatable => form_to_json(form.field('ipi_codes')),
|
33 | 27 | label => add_colon(l('IPI codes')),
|
|
46 | 40 |
|
47 | 41 | [% React.embed(c, 'static/scripts/edit/components/HydratedDateRangeFieldset', {
|
48 | 42 | initialField => form_to_json(form.field('period')),
|
49 |
| - endedLabel => 'This area has ended.', |
| 43 | + endedLabel => 'This artist has ended.', |
| 44 | + beginAreaField => form_to_json(form.field('begin_area')), |
| 45 | + beginAreaIdField => form_to_json(form.field('begin_area_id')), |
| 46 | + endAreaField => form_to_json(form.field('end_area')), |
| 47 | + endAreaIdField => form_to_json(form.field('end_area_id')), |
50 | 48 | }) %]
|
51 | 49 | [% script_manifest('edit/components/HydratedDateRangeFieldset', {async => 'async'}) %]
|
52 | 50 |
|
|
0 commit comments