Skip to content

Commit 6a32b29

Browse files
committed
changed address field type declaration
1 parent 3efc4fe commit 6a32b29

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ All Notable changes to `Backpack CRUD` will be documented in this file
2020
- Nothing
2121

2222

23+
## [3.1.24] - 2016-09-27
24+
25+
### Added
26+
- address field type - thanks to [Owen Melbourne](https://github.com/OwenMelbz);
27+
28+
2329
## [3.1.23] - 2016-09-27
2430

2531
### Added

src/resources/views/fields/address.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
@if(isset($field['prefix']) || isset($field['suffix'])) <div class="input-group"> @endif
66
@if(isset($field['prefix'])) <div class="input-group-addon">{!! $field['prefix'] !!}</div> @endif
7-
@if(isset($field['address_full']) && $field['address_full'])
7+
@if(isset($field['store_as_json']) && $field['store_as_json'])
88
<input
99
type="text"
10-
data-address="{&quot;field&quot;: &quot;{{$field['name']}}&quot;, &quot;full&quot;: {{isset($field['address_full']) && $field['address_full'] ? 'true' : 'false'}} }"
10+
data-address="{&quot;field&quot;: &quot;{{$field['name']}}&quot;, &quot;full&quot;: {{isset($field['store_as_json']) && $field['store_as_json'] ? 'true' : 'false'}} }"
1111
@include('crud::inc.field_attributes')
1212
>
1313
<input type="hidden" value="{{ old($field['name']) ? old($field['name']) : (isset($field['value']) ? $field['value'] : (isset($field['default']) ? $field['default'] : '' )) }}" name="{{ $field['name'] }}">
1414
@else
1515
<input
1616
type="text"
17-
data-address="{&quot;field&quot;: &quot;{{$field['name']}}&quot;, &quot;full&quot;: {{isset($field['address_full']) && $field['address_full'] ? 'true' : 'false'}} }"
17+
data-address="{&quot;field&quot;: &quot;{{$field['name']}}&quot;, &quot;full&quot;: {{isset($field['store_as_json']) && $field['store_as_json'] ? 'true' : 'false'}} }"
1818
name="{{ $field['name'] }}"
1919
value="{{ old($field['name']) ? old($field['name']) : (isset($field['value']) ? $field['value'] : (isset($field['default']) ? $field['default'] : '' )) }}"
2020
@include('crud::inc.field_attributes')

0 commit comments

Comments
 (0)