Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F124291420
webdeposit.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
Fri, Aug 1, 13:58
Size
5 KB
Mime Type
text/html
Expires
Sun, Aug 3, 13:58 (2 d)
Engine
blob
Format
Raw Data
Handle
27829658
Attached To
R3600 invenio-infoscience
webdeposit.html
View Options
{% extends "page.html" %}
{% block header %}
{{ super() }}
<script
type=
"text/javascript"
src=
"http://bp.yahooapis.com/2.4.21/browserplus-min.js"
></script>
{% js 'js/plupload/plupload.full.js' %}
{% js 'js/plupload/jquery.plupload.queue/jquery.plupload.queue.js' %}
{% js 'js/webdeposit_form.js' %}
{% css 'js/plupload/jquery.plupload.queue/css/jquery.plupload.queue.css' %}
{% endblock %}
{% block body %}
<style>
.ui-autocomplete-loading
{
background
:
white
url('{{ url_for('static', filename='img/loading.gif')
}
}'
)
right
center
no-repeat
;
}
.typeahead
{
max-height
:
250px
;
overflow-y
:
auto
;
/* prevent horizontal scrollbar */
overflow-x
:
hidden
;
}
#link
{
float
:
left
;
position
:
absolute
;
font-size
:
15px
;
/*color:#272727;*/
color
:
rgb
(
59
,
89
,
152
);
font-weight
:
bold
;
}
#link
:hover
{
text-decoration
:
underline
;
}
.l
{
size
:
10px
;
}
div
#editable
{
border
:
none
;
z-index
:-
1
;
display
:
none
;
}
div
#conditions
{
border
:
none
;
z-index
:-
1
;
display
:
none
;
}
.required
:after
{
color
:
red
;
content
:
" *"
;
}
</style>
<div
class=
"page-header"
>
<h2>
{{ form._title }}
{% if form._drafting %}
<small
class=
"pull-right"
>
<a
class=
"btn btn-info"
href=
"{{ url_for('webdeposit.create_new', deposition_type=deposition_type) }}"
>
<i
class=
"icon-edit icon-white"
></i>
{{ _('New Deposition') }}
</a>
<a
class=
"btn btn-danger"
href=
"{{ url_for('webdeposit.delete', deposition_type=deposition_type, uuid=uuid) }}"
>
<i
class=
"icon-remove icon-white"
></i>
{{ _('Delete Deposition') }}
</a>
<div
class=
"btn-group"
>
<a
class=
"btn dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
<i
class=
"icon-list"
></i>
{{ _('Ongoing Depositions') }}
<span
class=
"caret"
></span>
</a>
<ul
class=
"dropdown-menu"
>
{% for draft in drafts %}
<li>
<a
href=
"{{ url_for('webdeposit.add', deposition_type=draft.deposition_type, uuid=draft.uuid) }}"
>
{{ '
<strong>
'|safe if uuid == draft.uuid }}
{{ draft.deposition_type }}:
{% if draft.form_values and draft.form_values.title %}
{{ draft.form_values.title }}
{% else %}
{{ _('Untitled') }}
{% endif %}
{{ '
</strong>
'|safe if uuid == draft.uuid }}
<span
style=
"font-size: 80%;"
class=
"muted"
>
{{ draft.timestamp|invenio_pretty_date }}
</span>
</a>
</li>
{% endfor %}
</ul>
</div>
</small>
<div
class=
"clearfix"
></div>
{% endif %}
</h2>
</div>
<form
enctype=
"multipart/form-data"
name=
"submitForm"
id=
"submitForm"
class=
"form-horizontal"
method=
"post"
action=
"{{ url_for('webdeposit.add', deposition_type=deposition_type, uuid=uuid) }}"
>
<fieldset>
{% for field in form %}
<div
class=
"control-group"
>
{% if field._icon_html %}
<span
class=
"pull-left"
style=
"margin-right: 5px; margin-top: 5px;"
>
{{ field._icon_html|safe }}
</span>
{% endif %}
<div
class=
"control-label"
>
{% if "submit" not in field.__html__() %}
{% set label_class = 'pull-left' + (' required' if field.required else '') %}
{{ field.label(class_=label_class) }}
{% endif %}
<div
id=
"wait-{{ field.name }}"
style=
"height: 20px; width: 20px; margin-top: -17px; display:none;"
>
<img
src=
"{{ url_for('static', filename='img/loading.gif') }}"
/>
</div>
</div>
<div
class=
"controls {% if show_error_list and field.errors %} error{% endif %}"
>
{{ field(class_=field.short_name) }}
{% if show_error_list and field.errors %}
{% for error in field.errors %}
<span
class=
"help-inline"
>
{{ error }}
</span>
{% endfor %}
{% endif %}
<div
class=
"alert alert-error help-inline"
id=
"error-{{ field.name }}"
style=
"display:none;"
>
error message
</div>
</div>
</div>
{% if ("keywords" in field.__html__()) %}
<div
class=
"control-group"
style=
"display: none;"
>
<input
name=
"keywords-{{ field.short_name}}"
type=
"text"
value=
""
>
</div>
{% endif %}
{% endfor %}
</fieldset>
</form>
<div
class=
"alert alert-error"
id=
"empty-fields-error"
style=
"font-size:12px; display:none;"
></div>
<script
type=
"text/javascript"
>
$
(
function
()
{
var
required_fields
=
{{
form
.
required_field_names
|
tojson
|
safe
}};
webdeposit_init_plupload
(
'.pluploader'
,
'{{ url_for('
webdeposit
.
plupload
', uuid=uuid) }}'
)
webdeposit_input_error_check
(
'#submitForm input, #submitForm textarea, #submitForm select'
,
'{{ url_for("webdeposit.error_check", deposition_type=deposition_type, uuid=uuid) }}'
,
required_fields
)
{
%
for
field
in
form
%
}
{
%
if
field
.
autocomplete
%
}
webdeposit_field_autocomplete
(
'input[name="{{ field.name }}"]'
,
'{{ url_for("webdeposit.autocomplete", deposition_type=deposition_type, uuid=uuid, type=field.name) }}'
)
{
%
endif
%
}
{
%
endfor
%
}
$
(
".datepicker"
).
datepicker
();
$
(
"input#submitButton"
).
click
(
function
(
e
)
{
e
.
preventDefault
();
emptyForm
=
checkEmptyFields
(
true
,
''
,
required_fields
);
if
(
emptyForm
[
0
]
==
0
){
$
(
'#empty-fields-error'
).
hide
(
'slow'
);
$
(
'#submitForm'
).
submit
();
}
else
{
$
(
'#empty-fields-error'
).
html
(
"These fields are required!</br>"
+
"<a class='close' data-dismiss='alert' href='#'>×</a>"
+
emptyForm
[
1
]);
$
(
'#empty-fields-error'
).
show
(
'slow'
);
}
});
});
</script>
{% endblock %}
Event Timeline
Log In to Comment