Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101429764
webdeposit_add_base.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, Feb 10, 09:24
Size
7 KB
Mime Type
text/html
Expires
Wed, Feb 12, 09:24 (2 d)
Engine
blob
Format
Raw Data
Handle
24162043
Attached To
R3600 invenio-infoscience
webdeposit_add_base.html
View Options
{#
## This file is part of Invenio.
## Copyright (C) 2013 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" %}
{% macro form_action_bar(margin="") -%}
{% include "webdeposit_add_action_bar.html" %}
{%- endmacro %}
{%- macro form_group_accordion_start(group, idx) -%}
{% include "webdeposit_add_group_start.html" %}
{%- endmacro -%}
{%- macro form_group_accordion_end(group, idx) -%}
{% include "webdeposit_add_group_end.html" %}
{%- endmacro -%}
{%- macro field_label(thisfield) -%}
{% include "webdeposit_add_field_label.html" %}
{%- endmacro -%}
{%- macro field_display(thisfield, field_class="span5", container_class="control-group") -%}
{% include "webdeposit_add_field.html" %}
{%- endmacro -%}
{%- macro field_display_subform(thisfield) -%}
{% include "webdeposit_add_field_subform.html" %}
{%- endmacro -%}
{% block header %}
{{ super() }}
{% js 'js/jquery-ui.min.js', '20-jquery-ui' %}
{% js 'js/plupload/plupload.full.js', '50-webdeposit' %}
{% js 'js/webdeposit_form.js', '50-webdeposit' %}
{% js 'js/hogan.js', '40-webdeposit-hogan' %}
{% js 'js/webdeposit_templates.js', '50-webdeposit' %}
{% js 'ckeditor/ckeditor.js', '50-ckeditor' %}
{% js 'ckeditor/invenio-ckeditor-config.js', '50-ckeditor' %}
{% css 'img/jquery-ui/themes/base/jquery.ui.theme.css', '20-jquery-ui' %}
{% css 'img/jquery-ui/themes/base/jquery.ui.datepicker.css', '20-jquery-ui' %}
<style>
.ui-autocomplete-loading { background: white url('{{ url_for('static', filename='img/loading.gif') }}') right center no-repeat; }
span.ui-icon.ui-icon-circle-triangle-w { color: transparent; cursor: pointer; }
span.ui-icon.ui-icon-circle-triangle-e { color: transparent; cursor: pointer; }
.typeahead {
max-height: 250px;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
}
.l{
size: 10px;
}
.required:after {
color: red;
content:" *";
}
.rmlink {
cursor: pointer;
display: block;
margin-left: auto;
margin-right: auto
}
</style>
{% endblock %}
{% block body %}
<div class="row">
<div id="file_container" class="span8 form-feedback-warning">
<div id="flash-message"></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) }}">
{% block form_header scoped %}{{ form_action_bar() }}{% endblock form_header%}
{% block form_title scoped %}
<h1>{{ form._title }}</h1>
{% if form._subtitle %}
<p class="muted"><small>{{ form._subtitle|safe }}</small></p>
{% endif %}
{% endblock form_title %}
{% block form_body scoped %}
{% for group, fields in form.get_groups() %}
{% set grouploop = loop %}
{% block form_group scoped %}
{% if grouploop.first %}
<div id="webdeposit_form_accordion" class="accordion">
{% endif %}
{% block form_group_header scoped %}
{% if group %}
{{ form_group_accordion_start(group, grouploop.index) }}
{% endif %}
{% endblock %}
{% block form_group_body scoped %}
{% if group and group.meta.description %}
<p>{{ group.meta.description|urlize }}</p>
{% endif %}
{% block fieldset scoped %}
<fieldset>
{% for field in fields %}
{% block field_body scoped %}
{% if field.form %}
{{ field_display_subform(field) }}
{% else %}
{{ field_display(field) }}
{% endif %}
{% endblock field_body %}
{% endfor %}
</fieldset>
{% endblock fieldset %}
{% endblock form_group_body%}
{% block form_group_footer scoped %}
{% if group %}
{{ form_group_accordion_end(group, grouploop.index) }}
{% endif %}
{% endblock form_group_footer %}
{% if grouploop.last %}</div>{% endif %}
{% endblock form_group %}
{% endfor %}
{% endblock form_body %}
</form>
</div>
{% if form._drafting %}
<div class="span4">
{% include "webdeposit_myview.html" %}
</div>
{% endif %}
</div>
</div>
{% endblock %}
{% block javascript %}
{{ super() }}
{%- block form_script_options %}
<script type="text/javascript">
var date_options = {dateFormat: 'yy-mm-dd'}
</script>
{%- endblock form_script_options %}
<script type="text/javascript" src="https://www.dropbox.com/static/api/1/dropbox.js" id="dropboxjs" data-app-key="{{config.CFG_DROPBOX_API_KEY}}"></script>
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
required_fields = {{ form.required_field_names|tojson|safe }};
webdeposit_init_plupload(
'.pluploader',
'{{ url_for('webdeposit.plupload', deposition_type=deposition_type, uuid=uuid) }}',
'{{ url_for('webdeposit.plupload_delete', uuid=uuid) }}',
'{{ url_for('webdeposit.plupload_get_file', uuid=uuid) }}',
{{ form.files|safe }},
'{{ url_for('webdeposit.upload_from_url', deposition_type=deposition_type, uuid=uuid) }}'
);
webdeposit_input_error_check('#submitForm input, #submitForm textarea, #submitForm select', '{{ url_for("webdeposit.error_check", uuid=uuid) }}');
webdeposit_button_click('#submitForm .form-button', '{{ url_for("webdeposit.error_check", uuid=uuid) }}');
webdeposit_check_status('{{ url_for('webdeposit.check_status', uuid=uuid) }}');
// Render autocomplete functions and ckeditor
{%- for field in form %}
{%- if field.autocomplete %}
webdeposit_field_autocomplete('input[name="{{ field.name }}"]', '{{ url_for("webdeposit.autocomplete", form_type=form.type, field=field.name) }}');
{%- endif %}
{%- if field.ckeditor %}
webdeposit_ckeditor_init( '{{ field.id }}', '{{ url_for("webdeposit.error_check", uuid=uuid) }}');
{%- endif %}
{%- endfor %}
$(".datepicker").datepicker();
// Save & submit buttons
webdeposit_init_save('{{ url_for("webdeposit.error_check", uuid=uuid) }}', '.form-save', '#submitForm');
webdeposit_init_submit('{{ url_for("webdeposit.error_check", uuid=uuid) }}', '.form-submit', '#submitForm');
});
</script>
{% endblock javascript %}
Event Timeline
Log In to Comment