This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
forked from prtksxna/wmf-cu-prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblock.html
152 lines (121 loc) · 3.88 KB
/
block.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Special:Investigate</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="loading.css">
<script src="res/jquery.min.js"></script>
<script src="res/oojs.min.js"></script>
<script src="res/oojs-ui.js"></script>
<script src="res/oojs-ui-wikimediaui.js"></script>
<link rel="stylesheet" href="res/oojs-ui-wikimediaui.css">
</head>
<body>
<main>
<h1>Special:Investigate</h1>
<div id="">
<ul class="tabs">
<li><a href="index.html">Preliminary check</a></li>
<li><a href="compare.html">Compare</a></li>
<li><a href="timeline.html">Timeline</a></li>
<li class="right-tab"><a href="block.html" class="active">Block</a></li>
</ul>
<form class="block-form" style="width:600px;">
<h2>Block</h2>
<p>
Selected accounts will be blocked indefinitely, with autoblocking of
IP addresses enabled and account creation disabled. IP addresses
will be blocked for one week for anonymous users only and account
creation will be disabled
</p>
<span class="user-select"></span>
<br>
<span class="replace-user"></span>
<span class="user-wikitext"></span>
<br>
<span class="replace-talk"></span>
<span class="talk-wikitext"></span>
<br>
<span class="prevent-editing"></span>
<br>
<span class="prevent-email"></span>
<br>
<span class="reason"></span>
</form>
</div>
</main>
<script type="text/javascript">
$(function () {
var users = new OO.ui.FieldLayout(
new OO.ui.TagMultiselectWidget( {
placeholder: 'JohnSmith or 1.1.1.42',
allowArbitrary: true,
selected: [ 'Apples', '1.1.1.2', 'Grapes' ]
} ), {
align: 'top',
label: 'Usernames, IP addresses or IP ranges',
}
);
$('.user-select').append(users.$element);
var replaceUser = new OO.ui.FieldLayout(
new OO.ui.CheckboxInputWidget(),
{
align: 'inline',
label: 'Replace user pages with:',
}
);
$('.replace-user').append(replaceUser.$element);
$('.user-wikitext').append(
new OO.ui.MultilineTextInputWidget().$element
)
var replaceTalk = new OO.ui.FieldLayout(
new OO.ui.CheckboxInputWidget(),
{
align: 'inline',
label: 'Replace talk pages with:',
}
);
$('.replace-talk').append(replaceTalk.$element);
$('.talk-wikitext').append(
new OO.ui.MultilineTextInputWidget().$element
)
var preventEditing = new OO.ui.FieldLayout(
new OO.ui.CheckboxInputWidget(),
{
align: 'inline',
label: 'Prevent from editing their own talk page while blocked',
}
);
$('.prevent-editing').append(preventEditing.$element);
var preventEmail = new OO.ui.FieldLayout(
new OO.ui.CheckboxInputWidget(),
{
align: 'inline',
label: 'Prevent from sending email',
}
);
$('.prevent-email').append(preventEmail.$element);
var reason = new OO.ui.FieldLayout(
new OO.ui.MultilineTextInputWidget(),
{
align: 'top',
label: 'Reason'
}
);
var submit = new OO.ui.ButtonWidget( {
label: 'Submit',
flags: [
'primary',
'progressive'
]
} );
$('.reason').append(
reason.$element,
'<br>',
submit.$element
);
})
</script>
</body>
</html>