~acsone-openerp/acsone-addons/7.0

« back to all changes in this revision

Viewing changes to html_widget_embedded_picture/static/src/xml/mail_html_widget_embedded_picture.xml

  • Committer: Jonathan Nemry
  • Date: 2014-03-13 18:50:17 UTC
  • Revision ID: jonathan.nemry@acsone.eu-20140313185017-gnfglbgo4m429kaw
[CHG] Embedded Picture Fully Completed

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
<templates>
4
4
 
5
 
    <t t-name="template_picture_loader" size="3">
 
5
    <t t-name="template_button_picture_loader" size="3">
6
6
        <button id="button_picture_loader">Load Picture</button>
7
7
    </t>
8
8
 
9
 
    <t t-name="form_picture_loader">
10
 
        <div>
11
 
            <form method="post" action="TO_DO" enctype="multipart/form-data">
12
 
                    <input type="file" name="input_picture_loader"/>
13
 
            </form>
14
 
        </div>
 
9
    <t t-name="template_form_picture_loader">
 
10
        <form method="POST" action="/embedded/gen_img"
 
11
              enctype="multipart/form-data"
 
12
              target="fileframe"
 
13
              class="col-sm-8">
 
14
            <div class="text-center">
 
15
                <input type="file" name="upload"/>
 
16
                <br/>
 
17
                <button type="button" class="btn btn-primary btn-lg filepicker">
 
18
                    Upload an image from your computer
 
19
                </button>
 
20
            </div>
 
21
            <input type="hidden" name="func"/>
 
22
            <div class="help-block"/>
 
23
            <iframe src="about:blank" name="fileframe" class="hidden"/>
 
24
        </form>
15
25
    </t>
16
26
 
17
27
</templates>
 
 
b'\\ No newline at end of file'