first commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{% if filters %}
|
||||
<ul class="subsubsub">
|
||||
{% for filter_key, filter in filters %}
|
||||
<li class="{{ filter_key }}">
|
||||
{% if filter.url %}
|
||||
<a href="{{ filter.url }}"{% if filter.current %} class="current"{% endif %}>
|
||||
{{ filter.label }} <span class="count">({{ filter.count }})</span>
|
||||
</a>
|
||||
{% else %}
|
||||
<b>{{ filter.label }}</b>
|
||||
{% endif %}
|
||||
{% if not loop.last %} |{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<br class="clear">
|
||||
{% endif %}
|
||||
@@ -0,0 +1,21 @@
|
||||
<tr>
|
||||
<td class="manage-column column-cb check-column">
|
||||
<label class="screen-reader-text" for="cb-select-all-{{ header_id }}">{{ strings.screen_reader.select_all }}</label>
|
||||
<input name="cb-select-all-{{ header_id }}" type="checkbox"{% if not has_admin_capabilities %} disabled="disabled"{% endif %}>
|
||||
</td>
|
||||
<th scope="col" class="{{ columns.feedback.classes }}">
|
||||
<a href="{{ columns.feedback.url }}"><span>{{ strings.table_header.feedback }}</span><span class="sorting-indicator"></span></a>
|
||||
</th>
|
||||
<th scope="col" class="{{ columns.rating.classes }}">
|
||||
<a href="{{ columns.rating.url }}"><span>{{ strings.table_header.rating }}</span><span class="sorting-indicator"></span></a>
|
||||
</th>
|
||||
<th scope="col" class="{{ columns.status.classes }}">
|
||||
<a href="{{ columns.status.url }}"><span>{{ strings.table_header.status }}</span><span class="sorting-indicator"></span></a>
|
||||
</th>
|
||||
<th scope="col" class="{{ columns.document_url.classes }}">
|
||||
<a href="{{ columns.document_url.url }}"><span>{{ strings.table_header.document }}</span><span class="sorting-indicator"></span></a>
|
||||
</th>
|
||||
<th scope="col" class="{{ columns.date.classes }}">
|
||||
<a href="{{ columns.date.url }}"><span>{{ strings.table_header.date }}</span><span class="sorting-indicator"></span></a>
|
||||
</th>
|
||||
</tr>
|
||||
@@ -0,0 +1,15 @@
|
||||
{% set arrows = {
|
||||
'first-page': '«',
|
||||
'previous-page': '‹',
|
||||
'next-page': '›',
|
||||
'last-page': '»'
|
||||
}
|
||||
%}
|
||||
|
||||
{% if url %}
|
||||
<a class="{{ class }}" href="{{ url }}">
|
||||
<span class="screen-reader-text">{{ label }}</span><span aria-hidden="true">{{ arrows[ class ] }}</span>
|
||||
</a>
|
||||
{% else %}
|
||||
<span class="tablenav-pages-navspan" aria-hidden="true">{{ arrows[ class ] }}</span>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,74 @@
|
||||
<div class="tablenav {{ nav_location }}">
|
||||
|
||||
<div class="alignleft actions js-wpml-tf-bulkactions">
|
||||
<label for="bulk-action-selector-{{ nav_location }}" class="screen-reader-text">{{ strings.bulk_actions.select }}</label>
|
||||
<select name="bulk_action{{ nav_location == 'bottom' ? '2' : '' }}" id="bulk-action-selector-{{ nav_location }}"
|
||||
{% if not has_admin_capabilities %} disabled="disabled"{% endif %}>
|
||||
{% for action, label in strings.bulk_actions.options %}
|
||||
<option value="{{ action }}">{{ label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input type="submit" class="button action" value="{{ strings.bulk_actions.apply_button }}"
|
||||
{% if not has_admin_capabilities %} disabled="disabled"{% endif %}>
|
||||
</div>
|
||||
|
||||
<h2 class="screen-reader-text">{{ strings.pagination.list_navigation }}</h2>
|
||||
|
||||
<div class="tablenav-pages">
|
||||
|
||||
<span class="displaying-num">{{ pagination.total_items }}</span>
|
||||
<span class="pagination-links">
|
||||
|
||||
{% include 'feedback-list-page-table-nav-arrow.twig'
|
||||
with {
|
||||
'url': pagination.first_page,
|
||||
'class': 'first-page',
|
||||
'label': strings.pagination.first_page,
|
||||
}
|
||||
%}
|
||||
|
||||
{% include 'feedback-list-page-table-nav-arrow.twig'
|
||||
with {
|
||||
'url': pagination.previous_page,
|
||||
'class': 'previous-page',
|
||||
'label': strings.pagination.previous_page,
|
||||
}
|
||||
%}
|
||||
|
||||
<span class="paging-input">
|
||||
{% if nav_location == 'top' %}
|
||||
<label for="current-page-selector-{{ nav_location }}" class="screen-reader-text">{{ strings.pagination.current_page }}</label>
|
||||
<input class="current-page" id="current-page-selector-{{ nav_location }}" type="text" name="paged"
|
||||
value="{{ pagination.current_page }}" size="{{ pagination.total_pages|length }}" aria-describedby="table-paging">
|
||||
<span class="tablenav-paging-text"> {{ strings.pagination.of }} <span class="total-pages">{{ pagination.total_pages }}</span></span>
|
||||
{% else %}
|
||||
<span class="tablenav-paging-text">{{ pagination.current_page }} {{ strings.pagination.of }}
|
||||
<span class="total-pages">{{ pagination.total_pages }}</span>
|
||||
</span>
|
||||
{% endif %}
|
||||
</span>
|
||||
|
||||
{% include 'feedback-list-page-table-nav-arrow.twig'
|
||||
with {
|
||||
'url': pagination.next_page,
|
||||
'class': 'next-page',
|
||||
'label': strings.pagination.next_page,
|
||||
}
|
||||
%}
|
||||
|
||||
|
||||
{% include 'feedback-list-page-table-nav-arrow.twig'
|
||||
with {
|
||||
'url': pagination.last_page,
|
||||
'class': 'last-page',
|
||||
'label': strings.pagination.last_page,
|
||||
}
|
||||
%}
|
||||
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<br class="clear">
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
<div class="submit wpml-tf-inline-edit-buttons">
|
||||
<div class="alignleft">
|
||||
<button type="button" class="js-wpml-tf-cancel wpml-tf-cancel button">{{ strings.cancel_button }}</button>
|
||||
{% if has_admin_capabilities %}
|
||||
<button type="button" class="js-wpml-tf-trash wpml-tf-trash button">{{ strings.trash_button }}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="alignright">
|
||||
{% if 'fixed' != feedback.get_status %}
|
||||
{% if has_admin_capabilities %}
|
||||
<button type="button" class="js-wpml-tf-translation-fixed button">{{ strings.translation_fixed_button }}</button>
|
||||
{% else %}
|
||||
<input type="checkbox" class="js-wpml-tf-translation-fixed-checkbox"
|
||||
value="1" id="translation_fixed_{{ feedback.get_id }}">
|
||||
<label for="translation_fixed_{{ feedback.get_id }}">{{ strings.translation_fixed_button }}</label>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if feedback.get_next_status %}
|
||||
<button type="button" class="js-wpml-tf-send wpml-tf-send button button-primary" value="{{ feedback.get_next_status.value }}">
|
||||
{{ feedback.get_next_status.label }}
|
||||
</button>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
<br class="clear">
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
{% set has_no_message = feedback.get_messages|length == 0 %}
|
||||
{% if has_no_message and 'fixed' != feedback.get_status %}
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<a href="#" class="js-wpml-tf-enable-translator-note">
|
||||
{% set add_note_label = has_admin_capabilities ? strings.add_note_to_translator : strings.add_note_to_admin %}
|
||||
{{ add_note_label }} <span class="otgs-ico-caret-down js-arrow-toggle"></span>
|
||||
</a>
|
||||
<div class="js-wpml-tf-translator-note"{% if has_no_message %} style="display:none;"{% endif %}>
|
||||
<div class="wpml-tf-title">{{ strings.communication }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
<textarea cols="50" rows="5" title="{{ strings.communication }}" class="js-wpml-tf-new-message wpml-tf-new-message"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ strings.communication }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
{% for message in feedback.get_messages|reverse %}
|
||||
<div class="wpml-tf-message {{ message.author_is_current_user ? 'wpml-tf-message-me' : 'wpml-tf-message-recipient' }}">
|
||||
<div class="wpml-tf-message-author">{{ message.get_author_display_label }}</div>
|
||||
<div class="wpml-tf-message-content">{{ message.get_content }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if 'fixed' != feedback.get_status %}
|
||||
{% set textarea_label = has_admin_capabilities ? strings.reply_to_translator_label : strings.reply_to_admin_label %}
|
||||
<div class="wpml-tf-line">
|
||||
<div class="js-wpml-tf-translator-note">
|
||||
<div class="wpml-tf-title">{{ textarea_label }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
<textarea cols="50" rows="5" title="{{ strings.communication }}" class="js-wpml-tf-new-message wpml-tf-new-message"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
@@ -0,0 +1,25 @@
|
||||
{% set corrected_by_label = 'fixed' == feedback.get_status ? strings.corrected_by : strings.reviewed_by %}
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ corrected_by_label }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
{% if has_admin_capabilities and 'fixed' != feedback.get_status %}
|
||||
{% if feedback.get_available_translators %}
|
||||
<select class="js-wpml-tf-reviewer" title="{{ corrected_by_label }}">
|
||||
{% set reviewer_name = feedback.get_translator_name %}
|
||||
{% if feedback.get_reviewer.get_id %}
|
||||
{% set reviewer_name = feedback.get_reviewer.get_reviewer_display_name %}
|
||||
{% endif %}
|
||||
{% for id, name in feedback.get_available_translators %}
|
||||
<option value="{{ id }}"
|
||||
{% if name == reviewer_name %} selected="selected"{% endif %}
|
||||
>{{ name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% else %}
|
||||
{{ strings.no_translator_available }}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{{ feedback.get_reviewer.get_reviewer_display_name }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
{% set tp_responses = feedback.get_tp_responses %}
|
||||
{% set ts_name = feedback.get_translator_name %}
|
||||
{% if tp_responses.is_manual_feedback %}
|
||||
<div class="wpml-tf-line wpml-tf-sent-to-ts-manual notice notice-info inline">
|
||||
{{ tp_responses.get_strings.display_for_manual|format(ts_name, ts_name) }}
|
||||
</div>
|
||||
{% elseif tp_responses.is_email_feedback and tp_responses.get_feedback_id %}
|
||||
<div class="wpml-tf-line wpml-tf-sent-to-ts-email notice notice-warning inline">
|
||||
{{ tp_responses.get_strings.display_for_email|format(ts_name) }}
|
||||
</div>
|
||||
{% elseif tp_responses.is_api_feedback and tp_responses.get_feedback_id %}
|
||||
<div class="wpml-tf-line wpml-tf-sent-to-ts-api">
|
||||
<div class="wpml-tf-value">
|
||||
<a class="wpml-external-link" href="{{ tp_responses.get_feedback_tp_url }}" target="_blank">
|
||||
{{ tp_responses.get_strings.display_for_api|format(ts_name) }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,121 @@
|
||||
<tr id="wpml-tf-feedback-details-{{ feedback.get_id }}" data-feedback-id="{{ feedback.get_id }}"
|
||||
class="js-wpml-tf-feedback-details wpml-tf-feedback-details" style="display:none;">
|
||||
<td colspan="6">
|
||||
|
||||
<div class="js-wpml-tf-feedback-details-error notice notice-error inline" style="display:none;"></div>
|
||||
|
||||
<h4>{{ strings.title }} {% include 'options-ui-request-status.twig' %}</h4>
|
||||
|
||||
<fieldset class="wpml-tf-inline-edit-col-left">
|
||||
<div class="wpml-tf-inline-edit-col">
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ strings.translation }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
<img width="18" height="12" src="{{ feedback.get_document_flag_url }}">
|
||||
<a href="{{ feedback.get_document_information.get_url }}" target="_blank">
|
||||
<span class="wpml-semibold">{{ feedback.get_document_information.get_title }}</span>
|
||||
</a>
|
||||
<a href="{{ feedback.get_document_information.get_edit_url }}" type="button" class="button button-small button-secondary">{{ strings.edit_translation }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ strings.original_post }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
<img width="18" height="12" src="{{ feedback.get_source_document_flag_url }}">
|
||||
<a href="{{ feedback.get_document_information.get_source_url }}" target="_blank">
|
||||
{{ feedback.get_document_information.get_source_title }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ strings.rating }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
{% for i in 1..5 %}
|
||||
<span class="otgs-ico-star{% if i <= feedback.get_rating %} full-star{% endif %}"></span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ strings.feedback }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
<div class="js-wpml-tf-readonly-feedback">
|
||||
{{- feedback.get_content -}}
|
||||
</div>
|
||||
<textarea class="js-wpml-tf-edit-feedback wpml-tf-value" cols="60" rows="5" style="display:none;">
|
||||
{{- feedback.get_content -}}
|
||||
</textarea>
|
||||
{% if has_admin_capabilities and 'pending' == feedback.get_status %}
|
||||
<a class="js-wpml-tf-enable-edit-feedback wpml-tf-enable-edit-feedback">{{ strings.edit_feedback }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="wpml-tf-inline-edit-col-right">
|
||||
<div class="wpml-tf-inline-edit-col">
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ strings.status }}</div>
|
||||
<div class="wpml-tf-value">
|
||||
{% set icon_classes = {
|
||||
'pending': 'otgs-ico-new',
|
||||
'translator_replied': 'otgs-ico-chat',
|
||||
'admin_replied': 'otgs-ico-chat',
|
||||
'sent_to_translator': 'otgs-ico-sent',
|
||||
'sent_to_ts_api': 'otgs-ico-sent',
|
||||
'sent_to_ts_manual': 'otgs-ico-sent',
|
||||
'sent_to_ts_email': 'otgs-ico-mail',
|
||||
'fixed': 'otgs-ico-translated'
|
||||
}
|
||||
%}
|
||||
<span class="{{ icon_classes[ feedback.get_status ] }} wpml-tf-status-ico"></span>
|
||||
<span class="wpml-semibold">{{ feedback.get_text_status }}</span>
|
||||
{% if 'sent_to_ts_api' == feedback.get_status %}
|
||||
<a class="js-wpml-tf-refresh-status otgs-ico-refresh"
|
||||
title="{{ strings.refresh_status }}"></a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wpml-tf-line">
|
||||
<div class="wpml-tf-title">{{ strings.translated_by }}</div>
|
||||
<div class="wpml-tf-value"> <span class="wpml-semibold">{{ feedback.get_translator_name }}</span></div>
|
||||
</div>
|
||||
|
||||
{% if feedback.is_local_translation %}
|
||||
{% include 'feedback-list-page-table-row-details-reviewer.twig'
|
||||
with {
|
||||
'feedback': feedback,
|
||||
'strings': strings,
|
||||
'has_admin_capabilities': has_admin_capabilities
|
||||
} only
|
||||
%}
|
||||
|
||||
{% include 'feedback-list-page-table-row-details-messages.twig'
|
||||
with {
|
||||
'feedback': feedback,
|
||||
'strings': strings,
|
||||
'has_admin_capabilities': has_admin_capabilities
|
||||
} only
|
||||
%}
|
||||
{% else %}
|
||||
{% include 'feedback-list-page-table-row-details-tp.twig'
|
||||
with { 'feedback': feedback, 'strings': strings } only
|
||||
%}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
{% include 'feedback-list-page-table-row-details-buttons.twig'
|
||||
with { 'feedback': feedback, 'strings': strings, 'has_admin_capabilities': has_admin_capabilities } only
|
||||
%}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,42 @@
|
||||
<tr id="wpml-tf-feedback-{{ feedback.get_id }}" data-feedback-id="{{ feedback.get_id }}"
|
||||
class="js-wpml-tf-feedback wpml-tf-feedback hentry{% if feedback.is_pending %} wpml-tf-feedback-pending{% endif %}">
|
||||
<th scope="row" class="check-column">
|
||||
<label class="screen-reader-text" for="cb-select-{{ feedback.get_id }}">{{ strings.select_validation }}</label>
|
||||
<input id="cb-select-{{ feedback.get_id }}" type="checkbox" name="feedback_ids[]"
|
||||
value="{{ feedback.get_id }}"{% if not has_admin_capabilities %} disabled="disabled"{% endif %}>
|
||||
</th>
|
||||
<td class="feedback column-feedback has-row-actions column-primary" data-colname="{{ strings.columns.feedback }}">
|
||||
{% set short_desc = feedback.get_content|length > 50 ? feedback.get_content|slice(0, 50) ~ '...' : feedback.get_content|default('---') %}
|
||||
<a class="js-wpml-tf-open-details row-feedback" href="#">{{ short_desc }}</a>
|
||||
|
||||
<div class="row-actions">
|
||||
{% if is_in_trash and has_admin_capabilities %}
|
||||
<span class="js-wpml-tf-untrash"><a href="#">{{ strings.inline_actions.untrash }}</a></span> |
|
||||
<span class="js-wpml-tf-delete delete"><a href="#" class="submitdelete">{{ strings.inline_actions.delete }}</a></span>
|
||||
{% elseif has_admin_capabilities %}
|
||||
<span class="review"><a class="js-wpml-tf-open-details" href="#">{{ strings.inline_actions.review }}</a></span> |
|
||||
<span class="js-wpml-tf-trash trash"><a href="#" class="submittrash">{{ strings.inline_actions.trash }}</a></span>
|
||||
{% elseif not is_in_trash %}
|
||||
<span class="review"><a class="js-wpml-tf-open-details" href="#">{{ strings.inline_actions.review }}</a></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
<td class="rating column-rating" data-colname="{{ strings.columns.rating }}">
|
||||
{% for i in 1..5 %}
|
||||
<span class="otgs-ico-star{% if i <= feedback.get_rating %} full-star{% endif %}"></span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td class="status column-status" data-colname="{{ strings.columns.status }}">
|
||||
{{ feedback.get_text_status }}
|
||||
</td>
|
||||
<td class="document_url column-document" data-colname="{{ strings.columns.document }}">
|
||||
<a href="{{ feedback.get_document_information.get_url }}" target="_blank">{{ feedback.get_document_information.get_title }}</a>
|
||||
|
||||
<div class="row-actions">
|
||||
<a href="{{ feedback.get_document_information.get_url }}" target="_blank">{{ strings.inline_actions.view_post }}</a>
|
||||
</div>
|
||||
</td>
|
||||
<td class="date column-date" data-colname="{{ strings.columns.date }}">
|
||||
{{ feedback.get_date_created|date('d/m/Y') }}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,70 @@
|
||||
<div class="wrap wpml-tf-feedback-list-page">
|
||||
<h1>{{ strings.page_title }}</h1>
|
||||
<h2>{{ strings.page_subtitle }}</h2>
|
||||
|
||||
<input type="hidden" name="ajax_action" value="{{ ajax_action }}">
|
||||
<input type="hidden" name="ajax_nonce" value="{{ ajax_nonce }}">
|
||||
|
||||
<form method="GET">
|
||||
|
||||
<input type="hidden" name="page" value="{{ admin_page_hook }}">
|
||||
|
||||
{% for filter_name, filter_value in current_query.filters if filter_value %}
|
||||
<input type="hidden" name="{{ filter_name }}" value="{{ filter_value }}">
|
||||
{% endfor %}
|
||||
|
||||
{% for sorter_name, sorter_value in current_query.sorters if sorter_value %}
|
||||
<input type="hidden" name="{{ sorter_name }}" value="{{ sorter_value }}">
|
||||
{% endfor %}
|
||||
|
||||
<input type="hidden" name="nonce" value="{{ nonce }}">
|
||||
<input type="submit" class="hidden">
|
||||
|
||||
{% include 'feedback-list-page-filters.twig' with { 'filters': page_filters.all_and_trash } %}
|
||||
{% include 'feedback-list-page-filters.twig' with { 'filters': page_filters.statuses } %}
|
||||
{% include 'feedback-list-page-filters.twig' with { 'filters': page_filters.languages } %}
|
||||
|
||||
{% include 'feedback-list-page-table-nav.twig' with { 'nav_location': 'top' } %}
|
||||
|
||||
<table class="js-wpml-tf-feedback-list-table wpml-tf-feedback-list-table widefat fixed"
|
||||
data-confirm-trash="{{ strings.confirm.trash }}">
|
||||
|
||||
<thead>
|
||||
{% include 'feedback-list-page-table-header.twig' with { 'header_id': 'thead' } %}
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% if 0 < feedback_collection|length %}
|
||||
{% for feedback in feedback_collection %}
|
||||
{% include 'feedback-list-page-table-row.twig'
|
||||
with {
|
||||
'feedback': feedback,
|
||||
'strings': strings.row_summary,
|
||||
'has_admin_capabilities': has_admin_capabilities,
|
||||
'is_in_trash': is_in_trash
|
||||
} only
|
||||
%}
|
||||
|
||||
{% if not is_in_trash %}
|
||||
{% include 'feedback-list-page-table-row-details.twig'
|
||||
with { 'feedback': feedback, 'strings': strings.row_details, 'has_admin_capabilities': has_admin_capabilities } only %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="6">{{ strings.no_feedback }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
|
||||
<tfoot>
|
||||
{% include 'feedback-list-page-table-header.twig' with { 'header_id': 'tfoot' } %}
|
||||
</tfoot>
|
||||
|
||||
</table>
|
||||
|
||||
{% include 'feedback-list-page-table-nav.twig' with { 'nav_location': 'bottom' } %}
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
{% set expiration_mode_dropdown %}
|
||||
<select name="expiration_mode" class="js-wpml-tf-trigger-save"{% if disabled %} disabled="disabled"{% endif %}>
|
||||
{% for mode in expiration_modes %}
|
||||
<option value="{{ mode.value }}"{% if mode.selected %} selected="selected"{% endif %}>{{ mode.label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endset %}
|
||||
|
||||
{% set delay_quantity_dropdown %}
|
||||
<select name="expiration_delay_quantity" class="js-wpml-tf-trigger-save"{% if disabled %} disabled="disabled"{% endif %}>
|
||||
{% for quantity in expiration_quantities %}
|
||||
<option value="{{ quantity.value }}"{% if quantity.selected %} selected="selected"{% endif %}>{{ quantity.value }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endset %}
|
||||
|
||||
{% set delay_unit_dropdown %}
|
||||
<select name="expiration_delay_unit" class="js-wpml-tf-trigger-save"{% if disabled %} disabled="disabled"{% endif %}>
|
||||
{% for unit in expiration_units %}
|
||||
<option value="{{ unit.value }}"{% if unit.selected %} selected="selected"{% endif %}>{{ unit.label }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endset %}
|
||||
|
||||
{{ mode.label|format(expiration_mode_dropdown, delay_quantity_dropdown, delay_unit_dropdown)|raw }}
|
||||
@@ -0,0 +1 @@
|
||||
<span class="js-wpml-tf-request-status wpml-tf-request-status" style="display: none;"></span><span class="spinner"></span>
|
||||
@@ -0,0 +1,106 @@
|
||||
<div id="wpml-translation-feedback-options" class="wpml-section" data-nonce="{{ nonce }}" data-action="{{ action }}">
|
||||
<form>
|
||||
<div class="wpml-section-header">
|
||||
<h3>{{ strings.section_title }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="wpml-settings-group wpml-section-content">
|
||||
<p class="js-wpml-tf-settings-block wpml-tf-form-line">
|
||||
<label for="wpml-tf-enable-translation-feedback">
|
||||
<input type="checkbox" id="wpml-tf-enable-translation-feedback"
|
||||
name="enabled" value="{{ module_toggle.value }}" class="js-wpml-tf-trigger-save"
|
||||
{% if module_toggle.selected %} checked="checked"{% endif %}
|
||||
data-target=".js-wpml-tf-options-toggle-target">
|
||||
{{ module_toggle.label }}
|
||||
</label>
|
||||
|
||||
{% include 'options-ui-request-status.twig' %}
|
||||
</p>
|
||||
|
||||
<div class="js-wpml-tf-full-options alignleft" {% if not module_toggle.selected %} style="display:none;"{% endif %}>
|
||||
|
||||
<div class="js-wpml-tf-settings-block wpml-tf-button-mode">
|
||||
<h4>{{ strings.button_mode_section_title }} {% include 'options-ui-request-status.twig' %}</h4>
|
||||
|
||||
<ul>
|
||||
{% for mode in button_modes %}
|
||||
{% set input_id = 'wpml_tf_button_mode_' ~ mode.value %}
|
||||
<li>
|
||||
<label for="{{ input_id }}">
|
||||
<input type="radio" name="button_mode" id="{{ input_id }}"
|
||||
class="js-wpml-tf-trigger-save" value="{{ mode.value }}"
|
||||
{% if mode.selected %} checked="checked"{% endif %}>
|
||||
{% if mode.link %}
|
||||
{% set link_before %}<a class="wpml-external-link" href="{{ mode.link }}" target="_blank">{% endset %}
|
||||
{{ mode.label|format(link_before, '</a>')|raw }}
|
||||
{% else %}
|
||||
{{ mode.label }}
|
||||
{% endif %}
|
||||
</label>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-tf-settings-block wpml-tf-icon-style">
|
||||
<h4>{{ strings.icon_style_section_title }} {% include 'options-ui-request-status.twig' %}</h4>
|
||||
|
||||
<ul>
|
||||
{% for style in icon_styles %}
|
||||
{% set input_id = 'wpml_tf_icon_style_' ~ style.value %}
|
||||
<li>
|
||||
<input type="radio" name="icon_style" id="{{ input_id }}"
|
||||
class="js-wpml-tf-trigger-save" value="{{ style.value }}"
|
||||
{% if style.selected %} checked="checked"{% endif %}>
|
||||
<label for="{{ input_id }}" class="{{ style.image_class }}"></label>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-tf-settings-block wpml-tf-languages-to">
|
||||
<h4>{{ strings.languages_to_section_title }} {% include 'options-ui-request-status.twig' %}</h4>
|
||||
|
||||
<ul>
|
||||
{% for language in languages_to %}
|
||||
{% set input_id = 'wpml_tf_languages_to_' ~ language.value %}
|
||||
<li>
|
||||
<label for="{{ input_id }}">
|
||||
<input type="checkbox" name="languages_to[]" id="{{ input_id }}"
|
||||
class="js-wpml-tf-trigger-save" value="{{ language.value }}"
|
||||
{% if language.selected %} checked="checked"{% endif %}>
|
||||
<img width="18" height="12" src="{{ language.flag_url }}" alt="{{ language.value }}">
|
||||
{{ language.label }}
|
||||
</label>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="js-wpml-tf-settings-block wpml-tf-expiration">
|
||||
<h4>{{ strings.expiration_section_title }} {% include 'options-ui-request-status.twig' %}</h4>
|
||||
|
||||
<ul>
|
||||
{% for mode in display_modes %}
|
||||
{% set input_id = 'wpml_tf_display_mode_' ~ mode.value %}
|
||||
<li>
|
||||
<label for="{{ input_id }}">
|
||||
<input type="radio" name="display_mode" id="{{ input_id }}"
|
||||
class="js-wpml-tf-trigger-save" value="{{ mode.value }}"
|
||||
{% if mode.selected %} checked="checked"{% endif %}>
|
||||
{% if mode.value == 'custom' %}
|
||||
{% include 'options-ui-custom-expiration.twig' with { 'disabled': not mode.selected } %}
|
||||
{% else %}
|
||||
{{ mode.label }}
|
||||
{% endif %}
|
||||
</label>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
<a href="#" class="{{ classes }}" title="{{ title }}">{{ title }}</a>
|
||||
@@ -0,0 +1,51 @@
|
||||
<div class="js-wpml-tf-feedback-form wpml-tf-feedback-form"
|
||||
data-dialog-title="{{ strings.dialog_title }}" style="display: none;">
|
||||
|
||||
<div class="wpml-tf-thank-you-rating">{{ strings.thank_you_rating }}</div>
|
||||
<div class="wpml-tf-thank-you-comment">{{ strings.thank_you_comment }}</div>
|
||||
|
||||
<header class="wpml-tf-header">
|
||||
{{ strings.translated_from }} <span class="wpml-tf-document-language">
|
||||
<img width="18" height="12" src="{{ flag_url }}"> <a href="{{ source_url }}" target="_blank">{{ language_name }}</a></span>
|
||||
</header>
|
||||
|
||||
<div style="display:none">
|
||||
<label for="wpml-tf-honeypot-field">{{ strings.honeypot_label }}</label>
|
||||
<textarea name="more_comment" id="wpml-tf-honeypot-field" cols="100%" rows="10"></textarea>
|
||||
</div>
|
||||
|
||||
<fieldset class="wpml-tf-rating">
|
||||
<div class="wpml-tf-before-rating">{{ strings.please_rate }}</div>
|
||||
<div class="wpml-tf-after-rating">{{ strings.your_rating }}</div>
|
||||
<div class="wpml-tf-rating-stars">
|
||||
<input type="radio" id="wpml-tf-5-star" name="wpml-tf-rating" value="5" />
|
||||
<label class="full otgs-ico-star" for="wpml-tf-5-star" title="{{ strings.star5_title }}"></label>
|
||||
<input type="radio" id="wpml-tf-4-star" name="wpml-tf-rating" value="4" />
|
||||
<label class="full otgs-ico-star" for="wpml-tf-4-star" title="{{ strings.star4_title }}"></label>
|
||||
<input type="radio" id="wpml-tf-3-star" name="wpml-tf-rating" value="3" />
|
||||
<label class="full otgs-ico-star" for="wpml-tf-3-star" title="{{ strings.star3_title }}"></label>
|
||||
<input type="radio" id="wpml-tf-2-star" name="wpml-tf-rating" value="2" />
|
||||
<label class="full otgs-ico-star" for="wpml-tf-2-star" title="{{ strings.star2_title }}"></label>
|
||||
<input type="radio" id="wpml-tf-1-star" name="wpml-tf-rating" value="1" />
|
||||
<label class="full otgs-ico-star" for="wpml-tf-1-star" title="{{ strings.star1_title }}"></label>
|
||||
</div>
|
||||
<div class="js-wpml-tf-change-rating wpml-tf-change-rating">
|
||||
<a href="#">{{ strings.change_rating }}</a>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="wpml-tf-poor-rating">
|
||||
<div class="wpml-tf-poor-rating-header">
|
||||
{{ strings.error_examples }}
|
||||
</div>
|
||||
|
||||
<textarea class="wpml-tf-comment" name="wpml-tf-comment"></textarea>
|
||||
<input type="button" disabled="disabled"
|
||||
class="js-wpml-tf-comment-button wpml-tf-comment-button" value="{{ strings.send_button }}">
|
||||
</fieldset>
|
||||
|
||||
<input type="hidden" name="document_id" value="{{ document_id }}">
|
||||
<input type="hidden" name="document_type" value="{{ document_type }}">
|
||||
<input type="hidden" name="action" value="{{ action }}">
|
||||
<input type="hidden" name="nonce" value="{{ nonce }}">
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class="{{ wrapper_css_classes }}" title="{{ strings.form_open_title }}">
|
||||
<span class="{{ icon_css_class }}"></span>
|
||||
</div>
|
||||
Reference in New Issue
Block a user