| @@ 110-121 (lines=12) @@ | ||
| 107 | /** |
|
| 108 | * {@inheritdoc} |
|
| 109 | */ |
|
| 110 | public function creationFields(NovaRequest $request) |
|
| 111 | { |
|
| 112 | $fields = $this->removeNonCreationFields($request, $this->resolveFields($request)); |
|
| 113 | ||
| 114 | return new FieldCollection([ |
|
| 115 | 'Tabs' => [ |
|
| 116 | 'panel' => Panel::defaultNameForCreate($request->newResource()), |
|
| 117 | 'fields' => $this->translationsFields($fields), |
|
| 118 | 'component' => 'tabs', |
|
| 119 | ], |
|
| 120 | ]); |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * {@inheritdoc} |
|
| @@ 126-137 (lines=12) @@ | ||
| 123 | /** |
|
| 124 | * {@inheritdoc} |
|
| 125 | */ |
|
| 126 | public function updateFields(NovaRequest $request) |
|
| 127 | { |
|
| 128 | $fields = $this->removeNonUpdateFields($request, $this->resolveFields($request)); |
|
| 129 | ||
| 130 | return new FieldCollection([ |
|
| 131 | 'Tabs' => [ |
|
| 132 | 'panel' => Panel::defaultNameForUpdate($request->newResource()), |
|
| 133 | 'fields' => $this->translationsFields($fields, true), |
|
| 134 | 'component' => 'tabs', |
|
| 135 | ], |
|
| 136 | ]); |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * {@inheritdoc} |
|