first commit
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<div class="wpml_tm_pagination_container">
|
||||
<div class="otgs-notice otgs-notice__errors error inline hidden">
|
||||
<p></p>
|
||||
</div>
|
||||
|
||||
<div class="tablenav">
|
||||
<div class="tablenav-pages">
|
||||
<span class="spinner"></span>
|
||||
|
||||
<span class="displaying-num">
|
||||
{% if total_items > 0 %}
|
||||
{{ strings.displaying }} {{ from }}–{{ to }} {{ strings.of }} {{ total_items_i18n }}
|
||||
{% else %}
|
||||
{{ strings.nothing_found }}
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
{% if current_page != -1 %}
|
||||
{% if ( paginate_links ) %}
|
||||
{% if current_page > 1 %}
|
||||
<a class="prev page-numbers" href="#">«</a>
|
||||
{% endif %}
|
||||
|
||||
{% for link in paginate_links %}
|
||||
{% if link.class == "current" %}
|
||||
<span aria-current="page" class="page-numbers current">{{ link.number }}</span>
|
||||
{% endif %}
|
||||
{% if link.class == "" %}
|
||||
<a class="page-numbers" href="#">{{ link.number }}</a>
|
||||
{% endif %}
|
||||
{% if link.class == "dots" %}
|
||||
<span class="page-numbers dots">{{ link.number }}</span>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if current_page < total_pages %}
|
||||
<a class="next page-numbers" href="#">»</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if total_items > select[0] %}
|
||||
<select name="wpml_tm_per_page">
|
||||
{% for option in select %}
|
||||
{% set selected = "" %}
|
||||
{% if option == select_value %}
|
||||
{% set selected = "selected" %}
|
||||
{% endif %}
|
||||
<option value="{{ option }}" {{ selected }}>{{ option }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endif %}
|
||||
|
||||
{% if ( current_page != -1 ) and ( total_items > select_value ) %}
|
||||
<a class="display-all" href="#">{{ strings.display_all }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="wpml-flex-table-row wpml_tm_search_container">
|
||||
<div class="wpml-flex-table-cell text-right">
|
||||
<span class="spinner"></span>
|
||||
<label>
|
||||
{{ strings.search_for }}:<input type="text" class="wpml_tm_search" value="{{ search_string }}">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="js-existing-user-section existing-user-section" style="display:none;">
|
||||
<div class="wpml-form-row">
|
||||
<input type="text" class="js-translation-manager-select" placeholder="{{ strings.placeholder }}"/>
|
||||
<button class="js-add-existing-translation-manager button-primary button-small" disabled="disabled">{{ strings.add_button }}</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,24 @@
|
||||
<div class="wpml-form-row">
|
||||
<label>{{ strings.first_name }}</label>
|
||||
<input type="text" class="js-first-name"/>
|
||||
</div>
|
||||
<div class="wpml-form-row">
|
||||
<label>{{ strings.last_name }}</label>
|
||||
<input type="text" class="js-last-name"/>
|
||||
</div>
|
||||
<div class="wpml-form-row">
|
||||
<label>{{ strings.email }}</label>
|
||||
<input type="text" class="js-email"/>
|
||||
</div>
|
||||
<div class="wpml-form-row">
|
||||
<label>{{ strings.user_name }}</label>
|
||||
<input type="text" class="js-user-name"/>
|
||||
</div>
|
||||
<div class="wpml-form-row">
|
||||
<label for="roles">{{ strings.wp_role }}</label>
|
||||
<select class="js-role" id="roles">
|
||||
{% for role in wp_roles %}
|
||||
<option value="{{ role.id }}" {% if role.default %}selected="selected"{% endif %}>{{ role.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="js-new-user-section new-user-section" style="display:none;">
|
||||
{% include 'new-user-inputs.twig' %}
|
||||
<div class="wpml-form-row">
|
||||
<button class="js-add-new-translation-manager button-primary" disabled="disabled">{{ strings.add_button }}</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<li data-user_id="{{ user.ID }}">
|
||||
<a class="translation-manager-link" href="{{ user.edit_link }}" title="{{ strings.edit }}">
|
||||
<span class="translation-manager-avatar">{{ user.avatar|raw }}</span>
|
||||
<span class="translation-manager-name js-translation-manager-name">{{ user.user_login }}</span>
|
||||
</a>
|
||||
<a class="otgs-ico-close js-remove-translation-manager js-otgs-popover-tooltip" title="{{ strings.remove }}"></a>
|
||||
</li>
|
||||
@@ -0,0 +1,50 @@
|
||||
<div class="js-translation-managers translation-managers-section wpml-section" data-nonce="{{ nonce }}" data-current-user-id="{{ user_id }}">
|
||||
<h2>{{ strings.title }}</h2>
|
||||
|
||||
<div class="js-choose-managers-section text-center clearfix">
|
||||
<button class="button-primary js-add-translation-manager"
|
||||
data-set-text="{{ strings.set_user }}"
|
||||
data-add-text="+ {{ strings.add_user }}"
|
||||
></button>
|
||||
</div>
|
||||
|
||||
{% include 'existing-user-section.twig' %}
|
||||
{% include 'new-user-section.twig' %}
|
||||
|
||||
<span class="notice notice-error inline js-error-message" style="display: none"></span>
|
||||
|
||||
<ul class="js-translation-managers-list translation-managers-list" style="display:none;">
|
||||
{% for user in translation_managers %}
|
||||
{% include 'translation-managers-row.twig' %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<div class="js-no-translation-managers notice notice-warning inline" style="display:none;"><p>{{ strings.no_users }}</p></div>
|
||||
|
||||
<div id="{{ dialog.id }}"
|
||||
class="{{ dialog.class }}"
|
||||
title="{{ dialog.strings.title }}"
|
||||
style="display:none"
|
||||
data-ok-text="{{ dialog.strings.add_text }}"
|
||||
data-cancel-text="{{ dialog.strings.cancel_text }}">
|
||||
|
||||
<div class="js-select-user"
|
||||
data-nonce="{{ dialog.nonce }}"
|
||||
style="width: 600px">
|
||||
|
||||
<label class="add-new-translation-role-label" for="manager-existing-user"><input type="radio" id="manager-existing-user" name="user" value="existing"/> {{ dialog.strings.existing_user }}</label>
|
||||
|
||||
<div class="js-existing-user-section add-new-translation-role-form" style="display: none">
|
||||
<input type="text" class="js-translation-user-select" placeholder=""/>
|
||||
</div>
|
||||
|
||||
<label class="add-new-translation-role-label" for="manager-new-user"> <input type="radio" id="manager-new-user" name="user" value="new"/> {{ dialog.strings.new_user }}</label>
|
||||
|
||||
<div class="js-new-user-section add-new-translation-role-form" style="display: none">
|
||||
{% include 'new-user-inputs.twig' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,59 @@
|
||||
<div class="js-wpml-active-service-wrapper">
|
||||
<div class="js-ts-refreshing-message ts-refreshing-message" style="display:none">
|
||||
<p><span class="spinner is-active"></span>{{ strings.refreshing_ts_message }}</p>
|
||||
</div>
|
||||
<div class="ts-active-service js-ts-active-service">
|
||||
<input type="hidden" class="active-service-title" value="{{ strings.modal_title }}">
|
||||
<input type="hidden" class="active-service-header" value="{{ strings.modal_header }}">
|
||||
<input type="hidden" class="active-service-tip" value="{{ strings.modal_tip|format( "<a target='_blank' href='" ~ active_service.get_url ~ "'>" ~ active_service.get_name ~ "</a>" ) }}">
|
||||
<input type="hidden" class="js-needs-info-refresh" value="{{ needs_info_refresh }}">
|
||||
<input type="hidden" class="js-ts-refresh-nonce" value="{{ nonces['refresh_ts_info'] }}">
|
||||
<div class="ts-admin-section-leftcol">
|
||||
<h3>{{ strings.title }}</h3>
|
||||
<div class="service-logo">
|
||||
<a href="{{ active_service.get_url }}" target="_blank" rel="noopener">
|
||||
<img src="{{ active_service.get_logo_url }}" alt="{{ active_service.get_name }}"/>
|
||||
</a>
|
||||
</div>
|
||||
<p>
|
||||
<button data-id="{{ active_service.get_id }}" class="wpml-antd-button wpml-antd-button-secondary js-deactivate-service">{{ strings.deactivate }}</button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="ts-admin-section-rightcol">
|
||||
|
||||
{% if active_service.get_has_language_pairs and active_service.get_custom_fields_data %}
|
||||
<div class="refresh-language-pairs-section">
|
||||
<div class="spinner"></div>
|
||||
<div class="wpml_ajax_response"></div>
|
||||
<a class="button-secondary js-refresh-language-pairs" data-nonce="{{ nonces['wpml-tp-refresh-language-pairs'] }}">
|
||||
{{ strings.refresh_language_pairs }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h3>{{ active_service.get_name }}</h3>
|
||||
<p>{{ active_service.get_description|raw }}</p>
|
||||
|
||||
<p><a target="_blank" href="{{ active_service.get_doc_url }}">{{ strings.documentation }}</a></p>
|
||||
|
||||
{% if 1 == active_service.get_requires_authentication %}
|
||||
<div class="ts-authentication notice notice-warning inline clearfix">
|
||||
|
||||
{% if active_service.get_custom_fields_data %}
|
||||
<p>{{ strings.authentication.is_authorized|raw }}</p>
|
||||
<p class="notice-action-link">
|
||||
<button data-id="{{ active_service.get_id }}" data-custom-fields="{{ active_service.get_custom_fields | json_encode }}" class="js-invalidate-service button-primary">{{ strings.authentication.de_authorize_button }}</button>
|
||||
<button data-id="{{ active_service.get_id }}" data-custom-fields="{{ active_service.get_custom_fields | json_encode }}" class="js-update-service-credentials button-primary">{{ strings.authentication.update_credentials_button }}</button>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>{{ strings.authentication.description|format( active_service.get_name, '<a target="_blank" href="' ~ active_service.get_doc_url ~ '">' ~ strings.documentation_lower ~ '</a>' )|raw }}</p>
|
||||
<p class="notice-action-link"><button class="js-authenticate-service wpml-antd-button wpml-antd-button-primary" data-id="{{ active_service.get_id }}" data-custom-fields="{{ active_service.get_custom_fields | json_encode }}">{{ strings.authentication.authenticate_button }}</button></p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="wpml-tm-nositekey-button-wrapper">
|
||||
<a class="button-primary button-lg" href="{{ registration.link }}">{{ registration.text }}</a>
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<button id="wpml-tm-refresh-services" data-nonce="{{ nonce }}" class="button-secondary">{{ button_text }}</button>
|
||||
<br />
|
||||
<small class="wpml-tm-refresh-services-msg"></small>
|
||||
@@ -0,0 +1,39 @@
|
||||
{% for key, nonce in nonces %}
|
||||
<input type="hidden" class="{{ key }}" name="{{ key }}" value="{{ nonce }}">
|
||||
{% endfor %}
|
||||
<div class="wpml-tm-ts-admin-section wpml-section">
|
||||
<h2>{{ strings.translation_services }}</h2>
|
||||
<p>
|
||||
{{ strings.translation_services_description|raw }}
|
||||
</p>
|
||||
{{ active_service|raw }}
|
||||
|
||||
{% if false == has_preferred_service and has_services %}
|
||||
|
||||
<div
|
||||
id="wpml-tp-services"
|
||||
data-services="{{ services|json_encode() }}"
|
||||
data-endpoints="{{ endpoints|json_encode() }}"
|
||||
data-logoPlaceholder="{{ lsp_logo_placeholder }}"
|
||||
data-selectendpoint="{{ select_endpoint|json_encode() }}"
|
||||
data-translate-everything="{{ translate_everything }}"
|
||||
data-settings-url="{{ settings_url }}"
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="js-bottom-section">
|
||||
<hr class="wpml-margin-top-base">
|
||||
<p>{{ strings.ts.different }} <a target="_blank" class="wpml-external-link" href="{{ strings.ts.tell_us_url }}">{{ strings.ts.tell_us }}</a></p>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if false == has_services %}
|
||||
<div class="warning notice-warning otgs-notice">
|
||||
{% for no_service_message in strings.no_service_found %}
|
||||
<p>{{ no_service_message|format( "<a target='_blank' href='" ~ strings.support_link ~ "'>" ~ strings.wpml_support ~ "</a>" )|raw }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="tablenav {{ nav_location }}">
|
||||
|
||||
{% include 'pagination.twig' with { 'pagination_model': pagination_model, 'nav_location': nav_location } only %}
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
{% for i in 1..5 %}
|
||||
<span class="otgs-ico-star{% if i <= filled %} full-star{% endif %}"></span>
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,9 @@
|
||||
<tr>
|
||||
<th scope="col" class="manage-column sortable ts-admin-section-logo-head {{ table_sort.name.classes }}"><a href="{{ table_sort.name.url }}"><span>{{ strings.columns.name }}</span><span class="sorting-indicator"></span></a></th>
|
||||
<th scope="col" class="manage-column ts-admin-section-description-head">{{ strings.columns.description }}</th>
|
||||
|
||||
<th scope="col" class="{{ table_sort.popularity.classes }} ts-admin-section-rating sortable"><a href="{{ table_sort.popularity.url }}"><span>{{ strings.columns.popularity }}</span><span class="sorting-indicator"></span></a></th>
|
||||
<th scope="col" class="{{ table_sort.speed.classes }} ts-admin-section-rating sortable"><a href="{{ table_sort.speed.url }}"><span>{{ strings.columns.speed }}</span><span class="sorting-indicator"></span></a></th>
|
||||
|
||||
<th scope="col" class="manage-column"></th>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user