We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -23,13 +23,13 @@ |
||
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
26 | - //for update form, get initial state of the entity |
|
27 | - if( isset($id) && $id ){ |
|
26 | + //for update form, get initial state of the entity |
|
27 | + if( isset($id) && $id ){ |
|
28 | 28 | |
29 | 29 | //get entity with relations for primary dependency |
30 | 30 | $entity_dependencies = $entity_model->with($primary_dependency['entity']) |
31 | - ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
32 | - ->find($id); |
|
31 | + ->with($primary_dependency['entity'].'.'.$primary_dependency['entity_secondary']) |
|
32 | + ->find($id); |
|
33 | 33 | |
34 | 34 | $secondaries_from_primary = []; |
35 | 35 |
@@ -167,18 +167,18 @@ |
||
167 | 167 | { |
168 | 168 | foreach ($modifications as $key => $newValue) { |
169 | 169 | switch (strtolower($form)) { |
170 | - case 'create': |
|
170 | + case 'create': |
|
171 | 171 | $this->create_fields[$field][$key] = $newValue; |
172 | - break; |
|
172 | + break; |
|
173 | 173 | |
174 | - case 'update': |
|
174 | + case 'update': |
|
175 | 175 | $this->update_fields[$field][$key] = $newValue; |
176 | - break; |
|
176 | + break; |
|
177 | 177 | |
178 | - default: |
|
178 | + default: |
|
179 | 179 | $this->create_fields[$field][$key] = $newValue; |
180 | - $this->update_fields[$field][$key] = $newValue; |
|
181 | - break; |
|
180 | + $this->update_fields[$field][$key] = $newValue; |
|
181 | + break; |
|
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - return [ |
|
16 | + return [ |
|
17 | 17 | 'infoFiltered' => '(filtered from _MAX_ total entries)', |
18 | 18 | 'thousands' => ',', |
19 | 19 | 'admin' => 'المشرف', |
@@ -119,10 +119,10 @@ |
||
119 | 119 | // add the details_row button to the first column |
120 | 120 | if ($this->details_row) { |
121 | 121 | $details_row_button = \View::make('crud::columns.details_row_button') |
122 | - ->with('crud', $this) |
|
123 | - ->with('entry', $entry) |
|
124 | - ->with('row_number', $rowNumber) |
|
125 | - ->render(); |
|
122 | + ->with('crud', $this) |
|
123 | + ->with('entry', $entry) |
|
124 | + ->with('row_number', $rowNumber) |
|
125 | + ->render(); |
|
126 | 126 | $row_items[0] = $details_row_button.$row_items[0]; |
127 | 127 | } |
128 | 128 |
@@ -5,24 +5,24 @@ |
||
5 | 5 | |
6 | 6 | <span> |
7 | 7 | <?php |
8 | - if ($values !== null) { |
|
9 | - if (is_array($values)) { |
|
10 | - $array_of_values = []; |
|
8 | + if ($values !== null) { |
|
9 | + if (is_array($values)) { |
|
10 | + $array_of_values = []; |
|
11 | 11 | |
12 | - foreach ($values as $key => $value) { |
|
13 | - $array_of_values[] = $column['options'][$value]; |
|
14 | - } |
|
12 | + foreach ($values as $key => $value) { |
|
13 | + $array_of_values[] = $column['options'][$value]; |
|
14 | + } |
|
15 | 15 | |
16 | - if (count($array_of_values) > 1) { |
|
17 | - echo implode(', ', $array_of_values); |
|
18 | - } else { |
|
19 | - echo $array_of_values; |
|
20 | - } |
|
21 | - } else { |
|
22 | - echo $column['options'][$values]; |
|
23 | - } |
|
24 | - } else { |
|
25 | - echo "-"; |
|
26 | - } |
|
27 | - ?> |
|
16 | + if (count($array_of_values) > 1) { |
|
17 | + echo implode(', ', $array_of_values); |
|
18 | + } else { |
|
19 | + echo $array_of_values; |
|
20 | + } |
|
21 | + } else { |
|
22 | + echo $column['options'][$values]; |
|
23 | + } |
|
24 | + } else { |
|
25 | + echo "-"; |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | </span> |
29 | 29 | \ No newline at end of file |
@@ -7,14 +7,14 @@ |
||
7 | 7 | |
8 | 8 | <div class="form-group backpack-filter mb-0"> |
9 | 9 | <?php |
10 | - $from = ''; |
|
11 | - $to = ''; |
|
12 | - if($filter->currentValue) { |
|
13 | - $range = (array)json_decode($filter->currentValue); |
|
14 | - $from = $range['from']; |
|
15 | - $to = $range['to']; |
|
16 | - } |
|
17 | - ?> |
|
10 | + $from = ''; |
|
11 | + $to = ''; |
|
12 | + if($filter->currentValue) { |
|
13 | + $range = (array)json_decode($filter->currentValue); |
|
14 | + $from = $range['from']; |
|
15 | + $to = $range['to']; |
|
16 | + } |
|
17 | + ?> |
|
18 | 18 | <div class="input-group"> |
19 | 19 | <input class="form-control pull-right from" |
20 | 20 | type="number" |
@@ -5,11 +5,11 @@ discard block |
||
5 | 5 | // Title Block |
6 | 6 | |
7 | 7 | $blocks['select_item'] = [ |
8 | - 'type' => 'select_item', |
|
9 | - 'label' => 'Select Item', |
|
10 | - 'icon' => 'fa fa-hand-o-up', // TODO: make this icon attribute work |
|
11 | - 'fields' => [ |
|
12 | - [ // select_entity |
|
8 | + 'type' => 'select_item', |
|
9 | + 'label' => 'Select Item', |
|
10 | + 'icon' => 'fa fa-hand-o-up', // TODO: make this icon attribute work |
|
11 | + 'fields' => [ |
|
12 | + [ // select_entity |
|
13 | 13 | 'name' => 'entity_type', |
14 | 14 | 'label' => "Type", |
15 | 15 | 'type' => 'select_entity', |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | 'allows_null' => false, |
28 | 28 | 'default' => 'article', |
29 | 29 | 'wrapperAttributes' => [ |
30 | - 'class' => 'form-group col-md-3' |
|
31 | - ], |
|
30 | + 'class' => 'form-group col-md-3' |
|
31 | + ], |
|
32 | 32 | ], |
33 | 33 | [ // select2_entity_item |
34 | 34 | 'label' => "Item", // Table column heading |
@@ -40,48 +40,48 @@ discard block |
||
40 | 40 | 'minimum_input_length' => 2, // minimum characters to type before querying results |
41 | 41 | 'allows_null' => true, |
42 | 42 | 'wrapperAttributes' => [ |
43 | - 'class' => 'form-group col-md-9' |
|
44 | - ], |
|
43 | + 'class' => 'form-group col-md-9' |
|
44 | + ], |
|
45 | 45 | 'fake' => true, |
46 | 46 | ], |
47 | - [ |
|
48 | - 'name' => 'text_block_separator', |
|
49 | - 'type' => 'custom_html', |
|
50 | - 'value' => '<hr>', |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'name' => 'class', |
|
54 | - 'label' => 'Class', |
|
55 | - 'type' => 'text', |
|
56 | - 'wrapperAttributes' => [ |
|
57 | - 'class' => 'form-group col-md-6' |
|
58 | - ], |
|
59 | - ], |
|
60 | - [ |
|
61 | - 'name' => 'id', |
|
62 | - 'label' => 'ID', |
|
63 | - 'type' => 'text', |
|
64 | - 'wrapperAttributes' => [ |
|
65 | - 'class' => 'form-group col-md-6' |
|
66 | - ], |
|
67 | - ], |
|
68 | - [ |
|
69 | - 'label' => 'Background Color', |
|
70 | - 'name' => 'background_color', |
|
71 | - 'type' => 'color_picker', |
|
72 | - 'wrapperAttributes' => [ |
|
73 | - 'class' => 'form-group col-md-6' |
|
74 | - ], |
|
75 | - ], |
|
76 | - [ |
|
77 | - 'label' => 'Background image', |
|
78 | - 'name' => 'background_image', |
|
79 | - 'type' => 'browse', |
|
80 | - 'wrapperAttributes' => [ |
|
81 | - 'class' => 'form-group col-md-6' |
|
82 | - ], |
|
83 | - ], |
|
84 | - ], |
|
47 | + [ |
|
48 | + 'name' => 'text_block_separator', |
|
49 | + 'type' => 'custom_html', |
|
50 | + 'value' => '<hr>', |
|
51 | + ], |
|
52 | + [ |
|
53 | + 'name' => 'class', |
|
54 | + 'label' => 'Class', |
|
55 | + 'type' => 'text', |
|
56 | + 'wrapperAttributes' => [ |
|
57 | + 'class' => 'form-group col-md-6' |
|
58 | + ], |
|
59 | + ], |
|
60 | + [ |
|
61 | + 'name' => 'id', |
|
62 | + 'label' => 'ID', |
|
63 | + 'type' => 'text', |
|
64 | + 'wrapperAttributes' => [ |
|
65 | + 'class' => 'form-group col-md-6' |
|
66 | + ], |
|
67 | + ], |
|
68 | + [ |
|
69 | + 'label' => 'Background Color', |
|
70 | + 'name' => 'background_color', |
|
71 | + 'type' => 'color_picker', |
|
72 | + 'wrapperAttributes' => [ |
|
73 | + 'class' => 'form-group col-md-6' |
|
74 | + ], |
|
75 | + ], |
|
76 | + [ |
|
77 | + 'label' => 'Background image', |
|
78 | + 'name' => 'background_image', |
|
79 | + 'type' => 'browse', |
|
80 | + 'wrapperAttributes' => [ |
|
81 | + 'class' => 'form-group col-md-6' |
|
82 | + ], |
|
83 | + ], |
|
84 | + ], |
|
85 | 85 | ]; |
86 | 86 | |
87 | 87 | ?> |
88 | 88 | \ No newline at end of file |
@@ -5,64 +5,64 @@ |
||
5 | 5 | // Title Block |
6 | 6 | |
7 | 7 | $blocks['title'] = [ |
8 | - 'type' => 'title', |
|
9 | - 'label' => 'Title', |
|
10 | - 'icon' => 'fa fa-text-height', |
|
11 | - 'fields' => [ |
|
12 | - [ |
|
13 | - 'name' => 'content', |
|
14 | - 'label' => 'Content', |
|
15 | - 'type' => 'text', |
|
16 | - ], |
|
17 | - [ |
|
18 | - 'name' => 'text_block_separator', |
|
19 | - 'type' => 'custom_html', |
|
20 | - 'value' => '<hr>', |
|
21 | - ], |
|
22 | - // [ |
|
23 | - // 'name' => 'start_well', |
|
24 | - // 'type' => 'start_div', |
|
25 | - // 'wrapperAttributes' => [ |
|
8 | + 'type' => 'title', |
|
9 | + 'label' => 'Title', |
|
10 | + 'icon' => 'fa fa-text-height', |
|
11 | + 'fields' => [ |
|
12 | + [ |
|
13 | + 'name' => 'content', |
|
14 | + 'label' => 'Content', |
|
15 | + 'type' => 'text', |
|
16 | + ], |
|
17 | + [ |
|
18 | + 'name' => 'text_block_separator', |
|
19 | + 'type' => 'custom_html', |
|
20 | + 'value' => '<hr>', |
|
21 | + ], |
|
22 | + // [ |
|
23 | + // 'name' => 'start_well', |
|
24 | + // 'type' => 'start_div', |
|
25 | + // 'wrapperAttributes' => [ |
|
26 | 26 | // 'class' => 'well well-sm col-md-12 m-t-20 m-b-0' |
27 | 27 | // ], |
28 | - // ], |
|
29 | - [ |
|
30 | - 'name' => 'class', |
|
31 | - 'label' => 'Class', |
|
32 | - 'type' => 'text', |
|
33 | - 'wrapperAttributes' => [ |
|
34 | - 'class' => 'form-group col-md-6' |
|
35 | - ], |
|
36 | - ], |
|
37 | - [ |
|
38 | - 'name' => 'id', |
|
39 | - 'label' => 'ID', |
|
40 | - 'type' => 'text', |
|
41 | - 'wrapperAttributes' => [ |
|
42 | - 'class' => 'form-group col-md-6' |
|
43 | - ], |
|
44 | - ], |
|
45 | - [ |
|
46 | - 'label' => 'Background Color', |
|
47 | - 'name' => 'background_color', |
|
48 | - 'type' => 'color_picker', |
|
49 | - 'wrapperAttributes' => [ |
|
50 | - 'class' => 'form-group col-md-6' |
|
51 | - ], |
|
52 | - ], |
|
53 | - [ |
|
54 | - 'label' => 'Background image', |
|
55 | - 'name' => 'background_image', |
|
56 | - 'type' => 'browse', |
|
57 | - 'wrapperAttributes' => [ |
|
58 | - 'class' => 'form-group col-md-6' |
|
59 | - ], |
|
60 | - ], |
|
61 | - // [ |
|
62 | - // 'name' => 'end_well', |
|
63 | - // 'type' => 'end_div', |
|
64 | - // ], |
|
65 | - ], |
|
28 | + // ], |
|
29 | + [ |
|
30 | + 'name' => 'class', |
|
31 | + 'label' => 'Class', |
|
32 | + 'type' => 'text', |
|
33 | + 'wrapperAttributes' => [ |
|
34 | + 'class' => 'form-group col-md-6' |
|
35 | + ], |
|
36 | + ], |
|
37 | + [ |
|
38 | + 'name' => 'id', |
|
39 | + 'label' => 'ID', |
|
40 | + 'type' => 'text', |
|
41 | + 'wrapperAttributes' => [ |
|
42 | + 'class' => 'form-group col-md-6' |
|
43 | + ], |
|
44 | + ], |
|
45 | + [ |
|
46 | + 'label' => 'Background Color', |
|
47 | + 'name' => 'background_color', |
|
48 | + 'type' => 'color_picker', |
|
49 | + 'wrapperAttributes' => [ |
|
50 | + 'class' => 'form-group col-md-6' |
|
51 | + ], |
|
52 | + ], |
|
53 | + [ |
|
54 | + 'label' => 'Background image', |
|
55 | + 'name' => 'background_image', |
|
56 | + 'type' => 'browse', |
|
57 | + 'wrapperAttributes' => [ |
|
58 | + 'class' => 'form-group col-md-6' |
|
59 | + ], |
|
60 | + ], |
|
61 | + // [ |
|
62 | + // 'name' => 'end_well', |
|
63 | + // 'type' => 'end_div', |
|
64 | + // ], |
|
65 | + ], |
|
66 | 66 | ]; |
67 | 67 | |
68 | 68 | ?> |
69 | 69 | \ No newline at end of file |
@@ -5,75 +5,75 @@ |
||
5 | 5 | // Text Block |
6 | 6 | |
7 | 7 | $blocks['text'] = [ |
8 | - 'type' => 'text', |
|
9 | - 'label' => 'Text', |
|
10 | - 'icon' => 'fa fa-align-left', |
|
11 | - 'fields' => [ |
|
12 | - [ |
|
13 | - 'name' => 'content', |
|
14 | - 'label' => 'Content', |
|
15 | - 'type' => 'ckeditor', |
|
16 | - ], |
|
17 | - [ |
|
18 | - 'name' => 'text_block_separator', |
|
19 | - 'type' => 'custom_html', |
|
20 | - 'value' => '<hr>', |
|
21 | - ], |
|
22 | - [ // title size |
|
23 | - 'name' => 'title_size', |
|
24 | - 'label' => "Title size", |
|
25 | - 'type' => 'select_from_array', |
|
26 | - 'options' => ['h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5'], |
|
27 | - 'allows_null' => false, |
|
28 | - 'default' => 'h1', |
|
29 | - 'wrapperAttributes' => [ |
|
30 | - 'class' => 'form-group col-md-3' |
|
31 | - ], |
|
32 | - ], |
|
33 | - [ // title size |
|
34 | - 'name' => 'title_alignment', |
|
35 | - 'label' => "Align", |
|
36 | - 'type' => 'select_from_array', |
|
37 | - 'options' => ['left' => 'left', 'center' => 'center', 'right' => 'right', 'justify' => 'justify'], |
|
38 | - 'allows_null' => false, |
|
39 | - 'default' => 'left', |
|
40 | - 'wrapperAttributes' => [ |
|
41 | - 'class' => 'form-group col-md-3' |
|
42 | - ], |
|
43 | - ], |
|
44 | - [ // color_picker |
|
45 | - 'label' => 'Text Color', |
|
46 | - 'name' => 'title_text_color', |
|
47 | - 'type' => 'color_picker', |
|
48 | - 'wrapperAttributes' => [ |
|
49 | - 'class' => 'form-group col-md-3' |
|
50 | - ], |
|
51 | - ], |
|
52 | - [ |
|
53 | - 'name' => 'id', |
|
54 | - 'label' => 'ID', |
|
55 | - 'type' => 'text', |
|
56 | - 'wrapperAttributes' => [ |
|
57 | - 'class' => 'form-group col-md-3' |
|
58 | - ], |
|
59 | - ], |
|
60 | - [ |
|
61 | - 'label' => 'Background Color', |
|
62 | - 'name' => 'background_color', |
|
63 | - 'type' => 'color_picker', |
|
64 | - 'wrapperAttributes' => [ |
|
65 | - 'class' => 'form-group col-md-6' |
|
66 | - ], |
|
67 | - ], |
|
68 | - [ |
|
69 | - 'label' => 'Background image', |
|
70 | - 'name' => 'background_image', |
|
71 | - 'type' => 'browse', |
|
72 | - 'wrapperAttributes' => [ |
|
73 | - 'class' => 'form-group col-md-6' |
|
74 | - ], |
|
75 | - ], |
|
76 | - ], |
|
8 | + 'type' => 'text', |
|
9 | + 'label' => 'Text', |
|
10 | + 'icon' => 'fa fa-align-left', |
|
11 | + 'fields' => [ |
|
12 | + [ |
|
13 | + 'name' => 'content', |
|
14 | + 'label' => 'Content', |
|
15 | + 'type' => 'ckeditor', |
|
16 | + ], |
|
17 | + [ |
|
18 | + 'name' => 'text_block_separator', |
|
19 | + 'type' => 'custom_html', |
|
20 | + 'value' => '<hr>', |
|
21 | + ], |
|
22 | + [ // title size |
|
23 | + 'name' => 'title_size', |
|
24 | + 'label' => "Title size", |
|
25 | + 'type' => 'select_from_array', |
|
26 | + 'options' => ['h1' => 'H1', 'h2' => 'H2', 'h3' => 'H3', 'h4' => 'H4', 'h5' => 'H5'], |
|
27 | + 'allows_null' => false, |
|
28 | + 'default' => 'h1', |
|
29 | + 'wrapperAttributes' => [ |
|
30 | + 'class' => 'form-group col-md-3' |
|
31 | + ], |
|
32 | + ], |
|
33 | + [ // title size |
|
34 | + 'name' => 'title_alignment', |
|
35 | + 'label' => "Align", |
|
36 | + 'type' => 'select_from_array', |
|
37 | + 'options' => ['left' => 'left', 'center' => 'center', 'right' => 'right', 'justify' => 'justify'], |
|
38 | + 'allows_null' => false, |
|
39 | + 'default' => 'left', |
|
40 | + 'wrapperAttributes' => [ |
|
41 | + 'class' => 'form-group col-md-3' |
|
42 | + ], |
|
43 | + ], |
|
44 | + [ // color_picker |
|
45 | + 'label' => 'Text Color', |
|
46 | + 'name' => 'title_text_color', |
|
47 | + 'type' => 'color_picker', |
|
48 | + 'wrapperAttributes' => [ |
|
49 | + 'class' => 'form-group col-md-3' |
|
50 | + ], |
|
51 | + ], |
|
52 | + [ |
|
53 | + 'name' => 'id', |
|
54 | + 'label' => 'ID', |
|
55 | + 'type' => 'text', |
|
56 | + 'wrapperAttributes' => [ |
|
57 | + 'class' => 'form-group col-md-3' |
|
58 | + ], |
|
59 | + ], |
|
60 | + [ |
|
61 | + 'label' => 'Background Color', |
|
62 | + 'name' => 'background_color', |
|
63 | + 'type' => 'color_picker', |
|
64 | + 'wrapperAttributes' => [ |
|
65 | + 'class' => 'form-group col-md-6' |
|
66 | + ], |
|
67 | + ], |
|
68 | + [ |
|
69 | + 'label' => 'Background image', |
|
70 | + 'name' => 'background_image', |
|
71 | + 'type' => 'browse', |
|
72 | + 'wrapperAttributes' => [ |
|
73 | + 'class' => 'form-group col-md-6' |
|
74 | + ], |
|
75 | + ], |
|
76 | + ], |
|
77 | 77 | ]; |
78 | 78 | |
79 | 79 | ?> |
80 | 80 | \ No newline at end of file |