aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/editrightbar.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-26 19:35:19 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-26 19:35:19 +0100
commit3cbecb3a54fac2708774158ae65dafec6d098937 (patch)
treebf3b105f0dffe425d528f4caa4de4dc40261167b /app/view/templates/editrightbar.php
parentb596f5d1c15ce3e2df50c756fd56080192e438ef (diff)
downloadwcms-3cbecb3a54fac2708774158ae65dafec6d098937.tar.gz
wcms-3cbecb3a54fac2708774158ae65dafec6d098937.zip
feature: invite editors
Diffstat (limited to 'app/view/templates/editrightbar.php')
-rw-r--r--app/view/templates/editrightbar.php30
1 files changed, 29 insertions, 1 deletions
diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php
index 8ee402d..e42cdf1 100644
--- a/app/view/templates/editrightbar.php
+++ b/app/view/templates/editrightbar.php
@@ -73,7 +73,35 @@
?>
</ul>
-
+
+ <?php if($user->level() >= 4) { ?>
+
+ <h3>Invites editors</h3>
+
+ <label for="invites">Invites editors</label>
+ <select name="invites[]" id="invites">
+ <option value="" selected>--select invite user--</option>
+ <?php
+ $newinviteuserlist = array_diff($inviteuserlist, $art->invites());
+ foreach ($newinviteuserlist as $inviteuser) {
+ echo '<option value="'.$inviteuser.'" >'.$inviteuser.'</option>';
+ }
+ ?>
+ </select>
+ <?php
+ $validateinviteusers = array_intersect($inviteuserlist, $art->invites());
+ foreach ($validateinviteusers as $invite) {
+ ?>
+ <div class="checkexternal">
+ <input type="checkbox" name="invites[]" id="<?= $invite ?>" value="<?= $invite ?>" checked>
+ <label for="<?= $invite ?>" >⬗ <?= $invite ?></label>
+ </div>
+ <?php
+ }
+ ?>
+
+ <?php } ?>
+
</div>
</div> \ No newline at end of file