| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?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">
- <option value=""><?=htmlspecialchars(__("All"))?></option>
- <?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 class="form-group">
- <label for="export-users-newsletter-consent"><?=htmlspecialchars(__("Newsletter Consent"))?></label>
- <select class="form-control" name="newsletter_consent" id="export-users-newsletter-consent">
- <option value=""><?=htmlspecialchars(__("Any"))?></option>
- <option value="1"><?=htmlspecialchars(__("Opted In"))?></option>
- <option value="0"><?=htmlspecialchars(__("Opted Out"))?></option>
- </select>
- </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>
|