Start
This commit is contained in:
42
views/admin/pages/admin-scripts.twig
Normal file
42
views/admin/pages/admin-scripts.twig
Normal file
@@ -0,0 +1,42 @@
|
||||
{% extends '@plugin/admin/pages/base.twig' %}
|
||||
|
||||
{% block title %}
|
||||
<h1>{{ __('Admin Scripts', 'romhackplaza') }}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block page %}
|
||||
|
||||
<form id="script-loader" method="post" autocomplete="off">
|
||||
|
||||
<label for="script_select">
|
||||
{{ __('Select script', 'romhackplaza') }}
|
||||
</label>
|
||||
<select id="script_select" name="script_select">
|
||||
|
||||
{% for script in scripts %}
|
||||
<option value="{{ script }}">{{ script }}</option>
|
||||
{% else %}
|
||||
<option value="none" disabled selected>{{ __('No scripts found.', 'romhackplaza') }}</option>
|
||||
{% endfor %}
|
||||
|
||||
</select>
|
||||
|
||||
<hr>
|
||||
<div id="arguments" class="arguments">
|
||||
<div class="details">
|
||||
<span style="margin-right: 10%">{{ __( 'Name:', 'romhackplaza') }}</span>
|
||||
<span style="margin-right: 10%">{{ __( 'Value:', 'romhackplaza') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<button id="add_args">{{ __( 'Add a paramter', 'romhackplaza') }}</button>
|
||||
<hr>
|
||||
|
||||
<input type="submit" id="wp-load-custom-script" name="load" value="{{ __('Load script', 'romhackplaza') }}">
|
||||
</form>
|
||||
|
||||
<h3>{{ __( 'Script response', 'romhackplaza') }}</h3>
|
||||
<div id="script-response">
|
||||
</div>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
9
views/admin/pages/base.twig
Normal file
9
views/admin/pages/base.twig
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="wrap">
|
||||
|
||||
{% block title %}
|
||||
{% endblock %}
|
||||
|
||||
{% block page %}
|
||||
{% endblock %}
|
||||
|
||||
</div>
|
||||
5
views/admin/pages/main.twig
Normal file
5
views/admin/pages/main.twig
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends '@plugin/admin/pages/base.twig' %}
|
||||
|
||||
{% block title %}
|
||||
<h1>{{ __('RomhackPlaza - Admin', 'romhackplaza') }}</h1>
|
||||
{% endblock %}
|
||||
43
views/admin/pages/send-notification.twig
Normal file
43
views/admin/pages/send-notification.twig
Normal file
@@ -0,0 +1,43 @@
|
||||
{% extends '@plugin/admin/pages/base.twig' %}
|
||||
|
||||
{% block title %}
|
||||
<h1>{{ __('Send Notification', 'romhackplaza') }}</h1>
|
||||
{% endblock %}
|
||||
|
||||
{% block page %}
|
||||
|
||||
<form id="send-manual-notification" method="post" autocomplete="off">
|
||||
|
||||
<label for="type_select">
|
||||
{{ __('Type of notification', 'romhackplaza') }}
|
||||
</label>
|
||||
<select id="type_select" name="type_select">
|
||||
<option value="none" disabled selected>---</option>
|
||||
|
||||
{% for type, pretty_type in type_list %}
|
||||
<option value="{{ type }}">{{ __(pretty_type) }}</option>
|
||||
{% endfor %}
|
||||
|
||||
</select>
|
||||
|
||||
<hr>
|
||||
<input type="checkbox" name="sender_anonymous" id="sender_anonymous"> {{ __('Anonymous notification?', 'romhackplaza') }}
|
||||
<hr>
|
||||
|
||||
<label for="recipients">
|
||||
{{ __('Recipients', 'romhackplaza') }}
|
||||
</label>
|
||||
<select id="recipients" name="recipients[]" multiple="multiple" style="width: 15%">
|
||||
{# Filled by Select2 Ajax. #}
|
||||
</select>
|
||||
<br><input type="checkbox" name="recipients_all" id="recipients_all"> All users ?
|
||||
<hr>
|
||||
<label for="postContent">
|
||||
{{ __('Content', 'romhackplaza') }}
|
||||
</label>
|
||||
{{ fn( 'wp_editor', "", 'postContent' ) }}
|
||||
<hr>
|
||||
<input type="submit" name="send" value="{{ __('Send Notification', 'romhackplaza') }}">
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user