Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104569081
webmessage_write.html
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Mar 10, 13:30
Size
4 KB
Mime Type
text/html
Expires
Wed, Mar 12, 13:30 (2 d)
Engine
blob
Format
Raw Data
Handle
24805792
Attached To
R3600 invenio-infoscience
webmessage_write.html
View Options
{#
## This file is part of Invenio.
## Copyright (C) 2012 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
#}
{% extends "page.html" %}
{% set title = _("Write a message") %}
{% block header %}
<script
type=
"text/javascript"
src=
"{{ url_for("
static
",
filename=
"/js/jquery/jquery-ui-1.8.17.custom.min.js"
)
}}"
></script>
<style
type=
"text/css"
src=
"{{ url_for("
static
",
filename=
"/js/jquery/redmond/jquery-ui-1.8.17.custom.css"
)
}}"
></style>
{% endblock header %}
{% block javascript %}
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
(){
function
split
(
val
)
{
return
val
.
split
(
/,\s*/
);
}
function
extractLast
(
term
)
{
return
split
(
term
).
pop
();
}
var
selectLast
=
function
(
event
,
ui
)
{
var
terms
=
split
(
this
.
value
);
terms
.
pop
();
terms
.
push
(
ui
.
item
.
value
);
terms
.
push
(
""
);
this
.
value
=
terms
.
join
(
", "
);
return
false
;
}
$
(
"#msg_to_user"
).
autocomplete
({
minLength
:
3
,
source
:
function
(
request
,
response
)
{
$
.
ajax
({
url
:
"{{ url_for('.ajax')|safe }}"
,
data
:
{
q
:
"users"
,
p
:
extractLast
(
request
.
term
)
},
focus
:
function
()
{
return
false
;
},
success
:
function
(
data
,
textStatus
,
jqXHR
){
response
(
data
[
"nicknames"
]);
}
})},
select
:
selectLast
});
$
(
"#msg_to_group"
).
autocomplete
({
minLength
:
3
,
source
:
function
(
request
,
response
)
{
$
.
ajax
({
url
:
"{{ url_for('.ajax')|safe }}"
,
data
:
{
q
:
"groups"
,
p
:
extractLast
(
request
.
term
)
},
focus
:
function
()
{
return
false
;
},
success
:
function
(
data
,
textStatus
,
jqXHR
){
response
(
data
[
"groups"
]);
}
});
},
select
:
selectLast
});
});
</script>
{% endblock javascript %}
{% block body %}
<form
name=
"write_message"
action=
"{{ url_for('.send') }}"
method=
"post"
>
<table
class=
"mailbox"
>
<thead
class=
"mailboxheader"
>
<tr>
<td
class=
"inboxheader"
colspan=
"2"
>
<table
class=
"messageheader"
>
<tr>
<td
class=
"mailboxlabel"
>
{{ _("To:") }}
</td>
<td
class=
"mailboxlabel"
>
{{ _("Users") }}
</td>
<td
style=
"width:100%;"
>
<input
class=
"mailboxinput"
type=
"text"
name=
"msg_to_user"
value=
"{{ msg_to }}"
id=
"msg_to_user"
/>
</td>
</tr>
<tr>
<td
class=
"mailboxlabel"
>
</td>
<td
class=
"mailboxlabel"
>
{{ _("Groups") }}
</td>
<td
style=
"width:100%;"
>
<input
class=
"mailboxinput"
type=
"text"
name=
"msg_to_group"
value=
"{{ msg_to_group }}"
id=
"msg_to_group"
/>
</td>
</tr>
<tr>
<td
class=
"mailboxlabel"
>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td
class=
"mailboxlabel"
>
{{ _("Subject:") }}
</td>
<td
colspan=
"2"
>
<input
class=
"mailboxinput"
type=
"text"
name=
"msg_subject"
value=
"{{ msg_subject }}"
/>
</td>
</tr>
</table>
</td>
</tr>
</thead>
<tfoot>
<tr>
<td
style=
"height:0px"
colspan=
"2"
></td>
</tr>
</tfoot>
<tbody
class=
"mailboxbody"
>
<tr>
<td
class=
"mailboxlabel"
>
{{ _("Message:") }}
</td>
<td>
<textarea
name=
"msg_body"
rows=
"10"
cols=
"50"
>
{{ msg_body }}
</textarea>
</td>
</tr>
<tr
class=
"mailboxfooter"
>
<td
colspan=
"2"
class=
"mailboxfoot"
>
<input
type=
"submit"
name=
"send_button"
value=
"{{ _("
Send
")
}}"
class=
"formbutton"
/>
</td>
</tr>
</tbody>
</table>
</form>
{% endblock %}
Event Timeline
Log In to Comment