translation-managers.twig
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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>