general fixes and tpl additions

This commit is contained in:
Dennis Eichhorn 2021-05-28 20:28:40 +02:00
parent a6a27cd317
commit b3263f5b76
25 changed files with 54 additions and 26 deletions

6
.directory Normal file
View File

@ -0,0 +1,6 @@
[Dolphin]
Timestamp=2021,5,23,18,50,1
Version=4
[Settings]
HiddenFilesShown=true

View File

@ -28,5 +28,9 @@ abstract class CommentStatus extends Enum
{ {
public const VISIBLE = 1; public const VISIBLE = 1;
public const BLOCKED = 2; public const LOCKED = 2;
public const INVISIBLE = 3;
public const SHADOW = 4;
} }

View File

@ -6,31 +6,49 @@ use Modules\Comments\Models\CommentListStatus;
$comments = $this->commentList->getComments(); $comments = $this->commentList->getComments();
?> ?>
<form method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}comment/list?id=' . $this->commentList->getId() . '{?}&csrf={$CSRF}'); ?>"> <div class="row">
<select name="commentlist_status"> <div class="col-xs-12">
<option value="<?= CommentListStatus::ACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::ACTIVE); ?> <section class="portlet">
<option value="<?= CommentListStatus::INACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::INACTIVE); ?> <div class="portlet-body">
<option value="<?= CommentListStatus::LOCKED; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::LOCKED); ?> <form method="POST" action="<?= \phpOMS\Uri\UriFactory::build('{/api}comment/list?id=' . $this->commentList->getId() . '{?}&csrf={$CSRF}'); ?>">
</select> <div class="form-group">
<div class="input-control">
<label class="checkbox" for="iComment"> <select name="commentlist_status">
<input id="iComment" type="checkbox" name="allow_voting" value="1"> <option value="<?= CommentListStatus::ACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::ACTIVE); ?>
<span class="checkmark"></span> <option value="<?= CommentListStatus::INACTIVE; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::INACTIVE); ?>
<?= $this->getHtml('Voting'); ?> <option value="<?= CommentListStatus::LOCKED; ?>"><?= $this->getHtml('lstatus-' . CommentListStatus::LOCKED); ?>
</label> </select>
</div>
<label class="checkbox" for="iComment"> <div class="input-control">
<input id="iComment" type="checkbox" name="allow_edit" value="1"> <label class="checkbox" for="iComment">
<span class="checkmark"></span> <input id="iComment" type="checkbox" name="allow_voting" value="1">
<?= $this->getHtml('Edit'); ?> <span class="checkmark"></span>
</label> <?= $this->getHtml('Voting'); ?>
</label>
<label class="checkbox" for="iComment"> </div>
<input id="iComment" type="checkbox" name="allow_upload" value="1"> <div class="input-control">
<span class="checkmark"></span> <label class="checkbox" for="iComment">
<?= $this->getHtml('Upload'); ?> <input id="iComment" type="checkbox" name="allow_edit" value="1">
</label> <span class="checkmark"></span>
</form> <?= $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 <?php
foreach ($comments as $comment) : ?> foreach ($comments as $comment) : ?>

0
Theme/Backend/Lang/ar.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/cs.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/da.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/de.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/el.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/en.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/es.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/fi.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/fr.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/hu.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/it.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/ja.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/ko.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/no.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/pl.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/pt.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/ru.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/sv.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/th.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/tr.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/uk.lang.php Normal file → Executable file
View File

0
Theme/Backend/Lang/zh.lang.php Normal file → Executable file
View File