mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-02-14 08:18:42 +00:00
Add permissions and l11n
This commit is contained in:
parent
ec38b04c1b
commit
fbf3ba794c
|
|
@ -31,4 +31,6 @@ abstract class PermissionCategory extends Enum
|
||||||
public const LIST = 2;
|
public const LIST = 2;
|
||||||
|
|
||||||
public const VOTE = 3;
|
public const VOTE = 3;
|
||||||
|
|
||||||
|
public const MODERATION = 4;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ use phpOMS\Uri\UriFactory;
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<section class="portlet">
|
<section class="portlet">
|
||||||
<form id="commentCreate" class="Comments_create" method="PUT" action="<?= UriFactory::build('{/api}comment/list?id={!#commentCreate [name=comment]}&csrf={$CSRF}'); ?>">
|
<form id="commentCreate" class="Comments_create" method="PUT" action="<?= UriFactory::build('{/api}comment/list?id={!#commentCreate [name=comment]}&csrf={$CSRF}'); ?>">
|
||||||
<div class="portlet-head">Create Comment</div>
|
<div class="portlet-head"><?= $this->getHtml('Comment', 'Comments', 'Backend'); ?></div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<textarea name="comment"></textarea>
|
<textarea name="comment"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,11 @@ return ['Comments' => [
|
||||||
'Created' => 'Erstellt',
|
'Created' => 'Erstellt',
|
||||||
'Creator' => 'Ersteller',
|
'Creator' => 'Ersteller',
|
||||||
'Edit' => 'Bearbeiten',
|
'Edit' => 'Bearbeiten',
|
||||||
|
'Comments' => 'Kommentare',
|
||||||
|
'Comment' => 'Kommentar',
|
||||||
'Upload' => 'Hochladen',
|
'Upload' => 'Hochladen',
|
||||||
'Voting' => 'Wählen',
|
'Voting' => 'Wählen',
|
||||||
'lstatus-1' => 'Aktiv',
|
'lstatus-1' => 'Aktiv',
|
||||||
'lstatus-2' => 'Inaktiv',
|
'lstatus-2' => 'Gesperrt',
|
||||||
'lstatus-3' => 'Gesperrt',
|
'lstatus-3' => 'Inaktiv',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,12 @@ declare(strict_types=1);
|
||||||
return ['Comments' => [
|
return ['Comments' => [
|
||||||
'Created' => 'Created',
|
'Created' => 'Created',
|
||||||
'Creator' => 'Creator',
|
'Creator' => 'Creator',
|
||||||
|
'Comment' => 'Comment',
|
||||||
|
'Comments' => 'Comments',
|
||||||
'Edit' => 'Edit',
|
'Edit' => 'Edit',
|
||||||
'Upload' => 'Upload',
|
'Upload' => 'Upload',
|
||||||
'Voting' => 'Voting',
|
'Voting' => 'Voting',
|
||||||
'lstatus-1' => 'Active',
|
'lstatus-1' => 'Active',
|
||||||
'lstatus-2' => 'Inactive',
|
'lstatus-2' => 'Locked',
|
||||||
'lstatus-3' => 'Locked',
|
'lstatus-3' => 'Inactive',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user