forked from oxygenxml/web-author-learn-words-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration-form.html
86 lines (83 loc) · 3.44 KB
/
configuration-form.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
<style>
.container {
padding: 15px;
}
.roboto {
font-family: robotolight, Arial, Helvetica, sans-serif;
}
.container p {
margin-top: 5px;
margin-bottom: 5px;
}
#url {
border-top: 1px solid #e6e6e6;
}
.disabled {
opacity: 0.3;
}
.fullWidth {
width: 100%;
}
.hidden {
display: none;
}
.description {
font-size: 14px;
color: #8e8e8e;
}
.parameters {
background-color: #f0f8ff;
border-radius: 4px;
border: 1px solid #e6e6e6;
padding: 5px;
color: #424242;
}
.parameters ul {
padding-left: 20px;
margin-top: 10px;
margin-bottom: 10px;
}
</style>
<div class="container roboto" style="padding: 0;">
<form class="configz" style="margin-bottom: 0;">
<div style="padding-bottom: 20px;">
<div style="padding: 10px 10px 10px 15px;">
<label>Number of suggestions to show:
<input style="width:40px;" th:name="${SUGGESTIONS_NUMBER_NAME}" th:value="${suggestionsNumberValue}"/>
</label>
</div>
<div style="padding: 10px 10px 10px 15px;">
<label ><input id="readOnlyModeCheckBox" type="checkbox" th:name="${READ_ONLY_MODE}" th:checked="${readOnlyValue}"/> Read-only mode
<div class="description" style="margin-left:25px">New words cannot be added from the Web Author</div></label>
</div>
</div>
<div>Dictionary source:</div>
<div id="file" class="container">
<label><input id="fileCheckBox" type="checkbox" th:name="${FILE_SELECTED_NAME}" th:checked="${fileSelectedChecked}"> Use file:</label>
<div class="content" th:classappend="${urlSelectedChecked} ? disabled : ''">
<div><input class="fullWidth" th:attrappend="disabled=${urlSelectedChecked} ? 'true' : ''" th:name="${FILE_PATH_NAME}" th:value="${filePathValue}"/></div>
</div>
</div>
<div id="url" class="container" style="padding-bottom: 0;">
<label><input id="urlCheckBox" type="checkbox" th:name="${URL_SELECTED_NAME}" th:checked="${urlSelectedChecked}"> Use URL:</label>
<div class="content" th:classappend="${fileSelectedChecked} ? disabled : ''">
<div><input class="fullWidth" th:attrappend="disabled=${fileSelectedChecked} ? 'true' : ''" th:name="${URL_NAME}" th:value="${urlValue}"/></div>
<div class="more-info description">
<p>
GET requests are made to load the dictionary.<br>
<span class="post" th:classappend="${readOnlyValue} ? hidden : ''">POST requests are made to learn words.</span>
</p>
<div class="post parameters" th:classappend="${readOnlyValue} ? hidden : ''">
<p>Parameters (x-www-form-urlencoded) are:</p>
<ul>
<li><i>mode</i>: "learned" or "forbidden".</li>
<li><i>lang</i>: "en" or other two letter language codes.</li>
<li><i>word</i>: the word to learn or forbid for the specified language.</li>
</ul>
</div>
</div>
</div>
</div>
</form>
</div>
<script src='../plugin-resources/learn-word/custom.js'></script>