-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshare.html
More file actions
109 lines (95 loc) · 5.13 KB
/
share.html
File metadata and controls
109 lines (95 loc) · 5.13 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<!-- <link href="css/sprite.css" rel="stylesheet" type="text/css" />-->
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- <script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>-->
<script type="text/javascript" src="js/jquery.pmgform.js"></script>
<script>
$(document).ready(function(){
$('#containermodal').pmgform({
id:'myModal',
title: 'Invite collaborators',
closable:true,
buttons : [
{
title:'Send Invitations',
type :'primary',
onClick : function( elem ){
console.log(elem)
alert('clicked');
}
}
],
items: {
id : 'formid',
name : 'formulario',
items : [
{
type : 'text',
id : 'textArea1',
name : 'textField',
label : 'Permissions',
disabled : false,
placeHolder: 'Type something',
editable : true,
focused : false,
value : 'asdfa',
wtype : 'xlarge', //mini,small,medium,large,xlarge
requiered : false,
gtype : 'varchar' //varchar,email,number,password
},
{
type :'radiobutton',
id : 'radiobutton',
name : 'radiobutton',
label : 'New Invitation',
inline : true,
items :[['Email','Email'],['Generate Link','Generate Link']]
},
{
type : 'text',
id : 'emails',
name : 'emails',
label : ' ',
help : true, //false
helpText : 'Enter email addresses (comma separated)',
disabled : false,
placeHolder: 'aaa@pmapper.com,bbb@pmapper.com,...',
editable : true,
focused : false,
value : 'asdfa',
wtype : 'xlarge', //mini,small,medium,large,xlarge
requiered : false,
gtype : 'varchar' //varchar,email,number,password
},
{
type : 'textarea',
id : 'message',
name : 'message',
label : 'Message',
rows : 3,
requiered :false //optional
},
]
}
}).pmvalidator();
})
</script>
</head>
<body>
<a class="btn" data-toggle="modal" href="#myModal" >Share and publish</a>
<div id="containermodal">
<!-- TODO EL CONTENIDO DEL FORMULARIO -->
</div>
</body>
</html>