mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-01-11 08:08:41 +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 VOTE = 3;
|
||||
|
||||
public const MODERATION = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use phpOMS\Uri\UriFactory;
|
|||
<div class="col-xs-12">
|
||||
<section class="portlet">
|
||||
<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">
|
||||
<textarea name="comment"></textarea>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -16,9 +16,11 @@ return ['Comments' => [
|
|||
'Created' => 'Erstellt',
|
||||
'Creator' => 'Ersteller',
|
||||
'Edit' => 'Bearbeiten',
|
||||
'Comments' => 'Kommentare',
|
||||
'Comment' => 'Kommentar',
|
||||
'Upload' => 'Hochladen',
|
||||
'Voting' => 'Wählen',
|
||||
'lstatus-1' => 'Aktiv',
|
||||
'lstatus-2' => 'Inaktiv',
|
||||
'lstatus-3' => 'Gesperrt',
|
||||
'lstatus-2' => 'Gesperrt',
|
||||
'lstatus-3' => 'Inaktiv',
|
||||
]];
|
||||
|
|
|
|||
|
|
@ -15,10 +15,12 @@ declare(strict_types=1);
|
|||
return ['Comments' => [
|
||||
'Created' => 'Created',
|
||||
'Creator' => 'Creator',
|
||||
'Comment' => 'Comment',
|
||||
'Comments' => 'Comments',
|
||||
'Edit' => 'Edit',
|
||||
'Upload' => 'Upload',
|
||||
'Voting' => 'Voting',
|
||||
'lstatus-1' => 'Active',
|
||||
'lstatus-2' => 'Inactive',
|
||||
'lstatus-3' => 'Locked',
|
||||
'lstatus-2' => 'Locked',
|
||||
'lstatus-3' => 'Inactive',
|
||||
]];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user