Skip to content

Commit bf12f9c

Browse files
committed
fixed conflicts when merging
2 parents 121391d + 8b85153 commit bf12f9c

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
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.26] - 2016-09-30
24+
25+
### Fixed
26+
- bug fix for 'table' field type - you can now have multiple fields on the same form;
27+
28+
2329
## [3.1.25] - 2016-09-28
2430

2531
### Fixed

src/resources/views/create.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@endsection
1515

1616
@section('content')
17-
<div class="row">
17+
<div class="row" ng-app="backPack">
1818
<div class="col-md-8 col-md-offset-2">
1919
<!-- Default box -->
2020
@if ($crud->hasAccess('list'))

src/resources/views/edit.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@endsection
1515

1616
@section('content')
17-
<div class="row">
17+
<div class="row" ng-app="backPack">
1818
<div class="col-md-8 col-md-offset-2">
1919
<!-- Default box -->
2020
@if ($crud->hasAccess('list'))

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
2424
?>
25-
<div ng-app="backpackTable" ng-controller="tableController" @include('crud::inc.field_wrapper_attributes') >
25+
<div ng-controller="tableController" @include('crud::inc.field_wrapper_attributes') >
2626

2727
<label>{!! $field['label'] !!}</label>
2828

@@ -66,7 +66,7 @@
6666

6767
</table>
6868

69-
<div class="array-controls btn-group">
69+
<div class="array-controls btn-group m-t-10">
7070
<button class="btn btn-sm btn-default" type="button" ng-click="addItem()"><i class="fa fa-plus"></i> Add {{ $item_name }}</button>
7171
</div>
7272

@@ -96,11 +96,13 @@
9696
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
9797
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-sortable/0.14.3/sortable.min.js"></script>
9898
<script>
99-
angular.module('backpackTable', ['ui.sortable'], function($interpolateProvider){
99+
100+
window.angularApp = window.angularApp || angular.module('backPack', ['ui.sortable'], function($interpolateProvider){
100101
$interpolateProvider.startSymbol('<%');
101102
$interpolateProvider.endSymbol('%>');
102-
})
103-
.controller('tableController', function($scope){
103+
});
104+
105+
window.angularApp.controller('tableController', function($scope){
104106
105107
$scope.sortableOptions = {
106108
handle: '.sort-handle'

src/resources/views/list.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,15 @@ function register_details_row_button_action() {
286286
287287
if ( row.child.isShown() ) {
288288
// This row is already open - close it
289-
$(this).children('i').removeClass('fa-minus-square-o').addClass('fa-plus-square-o');
289+
$(this).removeClass('fa-minus-square-o').addClass('fa-plus-square-o');
290290
$('div.table_row_slider', row.child()).slideUp( function () {
291291
row.child.hide();
292292
tr.removeClass('shown');
293293
} );
294294
}
295295
else {
296296
// Open this row
297-
$(this).children('i').removeClass('fa-plus-square-o').addClass('fa-minus-square-o');
297+
$(this).removeClass('fa-plus-square-o').addClass('fa-minus-square-o');
298298
// Get the details with ajax
299299
$.ajax({
300300
url: '{{ Request::url() }}/'+btn.data('entry-id')+'/details',

0 commit comments

Comments
 (0)