Skip to content

Commit

Permalink
add reviewer to edit material
Browse files Browse the repository at this point in the history
  • Loading branch information
PUMCZACZ committed Jun 16, 2024
1 parent 431d4d2 commit 49ba1a4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions resources/js/Components/Admin/MaterialEdit/MaterialFields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ const types = new Map([
addTypeLabel: 'Dodaj tłumaczy',
},
],
[
'reviewer',
{
sectionRemovable: false,
sectionDescription: 'Recenzent',
addTypeLabel: 'Dodaj recenzenta',
},
],
]);
const requestResultInfoTime = 5000;
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Components/Materials/AuthorsCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {Link} from '@inertiajs/vue3';
</h3>
<div
v-if="$page.props.methodics.length > 0"
class="grid grid-cols-4 gap-2 place-items-center mt-5 mb-5"
class="grid grid-cols-4 md:grid-cols-3 lg:grid-cols-4 gap-2 place-items-center mt-5 mb-5"
>
<Link
v-for="methodic in $page.props.methodics"
Expand Down
3 changes: 3 additions & 0 deletions resources/js/Pages/Admin/MaterialsEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ const statuses = {
<div class="mb-3">
<MaterialFields type="translator" />
</div>
<div class="mb-3">
<MaterialFields type="reviewer" />
</div>
<div class="mb-3">
<MaterialTags />
</div>
Expand Down

0 comments on commit 49ba1a4

Please sign in to comment.