-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
95 lines (78 loc) · 3.09 KB
/
example.html
File metadata and controls
95 lines (78 loc) · 3.09 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
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
<!DOCTYPE html>
<!--
This file is published by transparency-everywhere with the best deeds.
Check transparency-everywhere.com for further information.
Licensed under the CC License, Version 4.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://creativecommons.org/licenses/by/4.0/legalcode
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@author nicZem for tranpanrency-everywhere.com
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
window.CKEDITOR_BASEPATH = 'js/plugins/ckeditor/';
</script>
<script type="text/javascript" src="JS/plugins.js"></script>
<script type="text/javascript" src="JS/class.js"></script>
<script>
var fieldArray = [];
var options = [];
options['headline'] = 'Create user';
options['action'] = function(){
console.log($('#username').val(), $('#usergroup').val(), $('#password').val(), $('#firstname').val(), $('#lastname').val());
alert('Submitted');
};
options['buttonTitle'] = 'Save';
var field0 = [];
field0['caption'] = 'Username';
field0['inputName'] = 'username';
field0['type'] = 'text';
fieldArray[0] = field0;
var captions = ['admin', 'moderator', 'standard-user'];
var group_ids = ['admin', 'moderator', 'standard-user'];
var field1 = [];
field1['caption'] = 'Usergroup';
field1['inputName'] = 'usergroup';
field1['values'] = group_ids;
field1['captions'] = captions;
field1['type'] = 'dropdown';
fieldArray[1] = field1;
var field2 = [];
field2['caption'] = 'Firstname';
field2['inputName'] = 'firstname';
field2['type'] = 'text';
fieldArray[2] = field2;
var field3 = [];
field3['caption'] = 'Lastname';
field3['inputName'] = 'lastname';
field3['type'] = 'text';
fieldArray[3] = field3;
var field4 = [];
field4['caption'] = 'Password';
field4['inputName'] = 'password';
field4['type'] = 'password';
fieldArray[4] = field4;
var field5 = [];
field5['caption'] = 'Repeat password';
field5['inputName'] = 'repeat_password';
field5['type'] = 'password';
fieldArray[5] = field5;
$(document).ready(function(){
gui.createForm('#content',fieldArray, options);
});
</script>
</head>
<body>
<div>TODO write content</div>
<div id="content"></div>
</body>
</html>