Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/templates/mustache/option_image_upload.html
blob: dd4dfbe6b0f02dcfa307165f578d2f4111bedbb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!-- Template: Field Image option upload -->
<script type="text/x-mustache-template" name="field_option_image_upload">

    <div class="fileupload fileupload-new span3 well well-small" data-provides="fileupload" style="margin: 10px;">
        <label>
            <b>ID</b>: <span class="draggable"><i class="icon-move"></i>[[ id ]]</span>
        </label><br />
        <center>
            <input type="hidden" name="groups.[[ group_order ]].fields.[[ field_order ]].options.[[ id ]].type" value="img_input">
            <div class="fileupload-new thumbnail" style="width: 150px; height: 150px;">
                <img src="{{ STATIC_URL }}img/no_image.gif" />
            </div>
            <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 150px; max-height: 150px; line-height: 20px;"></div>
            <div>
            <input
                class="input-medium"
                type="text"
                name="groups.[[ group_order ]].fields.[[ field_order ]].options.[[ id ]].text"
                value="[[ text ]]"
                placeholder="(texto opcional)" />
            <br />
            <b>Peso</b>:
            <input
                class="input-small"
                type="text"
                name="groups.[[ group_order ]].fields.[[ field_order ]].options.[[ id ]].weight"
                value="[[ weight ]]"
                placeholder="peso" />
        </center>
            <span class="btn btn-file">
                <span class="fileupload-new">Elegir</span>
                <span class="fileupload-exists">Cambiar</span>
                <input type="file" name="groups.[[ group_order ]].fields.[[ field_order ]].options.[[ id ]].img" />
            </span>
            <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Quitar</a>
        </div>
    </div>

</script>