mirror of
https://github.com/Karaka-Management/oms-Comments.git
synced 2026-01-29 16:58:42 +00:00
general fixes and tpl additions
This commit is contained in:
parent
a6a27cd317
commit
b3263f5b76
6
.directory
Normal file
6
.directory
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[Dolphin]
|
||||
Timestamp=2021,5,23,18,50,1
|
||||
Version=4
|
||||
|
||||
[Settings]
|
||||
HiddenFilesShown=true
|
||||
|
|
@ -28,5 +28,9 @@ abstract class CommentStatus extends Enum
|
|||
{
|
||||
public const VISIBLE = 1;
|
||||
|
||||
public const BLOCKED = 2;
|
||||
public const LOCKED = 2;
|
||||
|
||||
public const INVISIBLE = 3;
|
||||
|
||||
public const SHADOW = 4;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,31 +6,49 @@ use Modules\Comments\Models\CommentListStatus;
|
|||
$comments = $this->commentList->getComments();
|
||||
?>
|
||||
|
||||
<form method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}comment/list?id=' . $this->commentList->getId() . '{?}&csrf={$CSRF}'); ?>">
|
||||
<select name="commentlist_status">
|
||||
<option value="<?= CommentListStatus::ACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::ACTIVE); ?>
|
||||
<option value="<?= CommentListStatus::INACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::INACTIVE); ?>
|
||||
<option value="<?= CommentListStatus::LOCKED; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::LOCKED); ?>
|
||||
</select>
|
||||
|
||||
<label class="checkbox" for="iComment">
|
||||
<input id="iComment" type="checkbox" name="allow_voting" value="1">
|
||||
<span class="checkmark"></span>
|
||||
<?= $this->getHtml('Voting'); ?>
|
||||
</label>
|
||||
|
||||
<label class="checkbox" for="iComment">
|
||||
<input id="iComment" type="checkbox" name="allow_edit" value="1">
|
||||
<span class="checkmark"></span>
|
||||
<?= $this->getHtml('Edit'); ?>
|
||||
</label>
|
||||
|
||||
<label class="checkbox" for="iComment">
|
||||
<input id="iComment" type="checkbox" name="allow_upload" value="1">
|
||||
<span class="checkmark"></span>
|
||||
<?= $this->getHtml('Upload'); ?>
|
||||
</label>
|
||||
</form>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<section class="portlet">
|
||||
<div class="portlet-body">
|
||||
<form method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}comment/list?id=' . $this->commentList->getId() . '{?}&csrf={$CSRF}'); ?>">
|
||||
<div class="form-group">
|
||||
<div class="input-control">
|
||||
<select name="commentlist_status">
|
||||
<option value="<?= CommentListStatus::ACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::ACTIVE); ?>
|
||||
<option value="<?= CommentListStatus::INACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::INACTIVE); ?>
|
||||
<option value="<?= CommentListStatus::LOCKED; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::LOCKED); ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-control">
|
||||
<label class="checkbox" for="iComment">
|
||||
<input id="iComment" type="checkbox" name="allow_voting" value="1">
|
||||
<span class="checkmark"></span>
|
||||
<?= $this->getHtml('Voting'); ?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-control">
|
||||
<label class="checkbox" for="iComment">
|
||||
<input id="iComment" type="checkbox" name="allow_edit" value="1">
|
||||
<span class="checkmark"></span>
|
||||
<?= $this->getHtml('Edit'); ?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-control">
|
||||
<label class="checkbox" for="iComment">
|
||||
<input id="iComment" type="checkbox" name="allow_upload" value="1">
|
||||
<span class="checkmark"></span>
|
||||
<?= $this->getHtml('Upload'); ?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-control">
|
||||
<input name="saveCommentSettings" type="submit" value="<?= $this->getHtml('Save', '0', '0'); ?>">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
foreach ($comments as $comment) : ?>
|
||||
|
|
|
|||
0
Theme/Backend/Lang/ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ar.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/cs.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/da.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/de.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/el.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/en.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/es.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fi.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/fr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/hu.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/it.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ja.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ko.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/no.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pl.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/pt.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/ru.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/sv.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/th.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/tr.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/uk.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/zh.lang.php
Normal file → Executable file
0
Theme/Backend/Lang/zh.lang.php
Normal file → Executable file
Loading…
Reference in New Issue
Block a user