|
|
@@ -0,0 +1,43 @@
|
|
|
+<?php /** @noinspection PhpUnhandledExceptionInspection */
|
|
|
+$level_options = [
|
|
|
+ User::LEVEL_REGISTERED => __("Registered"),
|
|
|
+ User::LEVEL_UNVERIFIED => __("Pending Verification"),
|
|
|
+ User::LEVEL_TESTER => __("Testers"),
|
|
|
+];
|
|
|
+?>
|
|
|
+<div class="modal fade" role="dialog" tabindex="-1" data-backdrop="static" id="user-export-modal">
|
|
|
+ <div class="modal-dialog modal-lg">
|
|
|
+ <form class="modal-content" method="get" action="/account/users/export/email">
|
|
|
+ <?php
|
|
|
+ View::include("modals/header", ["title" => __("Export Users")]);
|
|
|
+ ?>
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="export-users-level"><?=htmlspecialchars(__("User Level"))?></label>
|
|
|
+ <select class="form-control" name="level" id="export-users-level">
|
|
|
+ <?php
|
|
|
+ HtmlHelper::renderOptions($level_options);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="export-users-max-age"><?=htmlspecialchars(__("Maximum Age"))?></label>
|
|
|
+ <input class="form-control" type="number" name="max_age" id="export-users-max-age" placeholder="<?=htmlspecialchars(__("Type max age"))?>" />
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label for="export-users-no-tests-after"><?=htmlspecialchars(__("No Test After"))?></label>
|
|
|
+ <input class="form-control" type="date" name="no_tests_after" id="export-users-no-tests-after" placeholder="<?=htmlspecialchars(__("Enter date"))?>" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">
|
|
|
+ <?=htmlspecialchars(__("Close"))?>
|
|
|
+ </button>
|
|
|
+ <button type="submit" class="btn btn-success">
|
|
|
+ <?=htmlspecialchars(__("Export"))?>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+</div>
|