58 lines
2.4 KiB
XML
58 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
Copyright 2016 Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program 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 Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<openerp>
|
|
<data>
|
|
<!-- Assets inclusion -->
|
|
<template id="web_image_uploader_assets"
|
|
inherit_id="web.assets_common" name="Mass Image Upload Editor">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript"
|
|
src="/web_image_uploader/static/src/js/dmuploader.js"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="mass_upload_page" name="Mass Image Upload Page">
|
|
<t t-call="web.assets_common"/>
|
|
<t t-call="web.assets_backend"/>
|
|
<div style="padding:50px;">
|
|
<form action="demo_form.asp">
|
|
Enter the name of the field which matches the filename e.g. field 'pin' with value 138 matches up with 138.jpg<br/>
|
|
<b>Mapping Field</b> <input type="textbox" id="mapField" /><br/>
|
|
<input id="mass_image_upload_input" name="mass_image_upload_input[]" type="file" multiple="multiple" accept="image/*" /><br/>
|
|
<br/>
|
|
<input type="button" id="mass_image_upload_button" value="Upload"/><br/>
|
|
<b>Currently Complete: </b><span id="complete_count"></span>
|
|
</form>
|
|
<br/>
|
|
<br/>
|
|
<div id="logdiv" style="float:left;width:50%;">
|
|
<b>Log</b><br/>
|
|
<textarea id="massimageuploadsuccess" style="width:90%;height:500px;"/>
|
|
</div>
|
|
<div id="errordiv" style="float:right;width:50%">
|
|
<b>Errors</b><br/>
|
|
<textarea id="massimageuploaderror" style="width:100%;height:500px;"/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
</data>
|
|
</openerp>
|