--- a/src/iconolab/templates/iconolab/change_annotation.html Tue Jan 17 11:55:14 2017 +0100
+++ b/src/iconolab/templates/iconolab/change_annotation.html Tue Jan 17 11:59:07 2017 +0100
@@ -7,7 +7,7 @@
{% block content %}
<div id="drawing-zone" class="row" style="padding-top: 10px; padding-bottom: 10px; border:1px solid orange">
-
+
<div v-show='!formView' style="display:none" class="editor-wrapper col-md-12">
<div class="col-md-12 no-padding">
<p @click="cancel" class="pull-right btn btn-default btn-sm"><i class="fa fa-close"></i> Annuler</p>
@@ -26,13 +26,13 @@
<ul class='form-drawing-wrapper list-inline'>
<p class='form-drawing pullright'><strong>Actions</strong></p>
-
+
<li @click="clear" class='pull-md-right drawingModeBtn'><i class='fa fa-trash'></i> Effacer</li>
<li id="confirm-fragment-button" @click="showForm" class='pull-md-right drawingModeBtn infos info'><i class='fa fa-plus'></i> Valider</li>
</ul>
</div>
-
+
<div class="col-md-10">
<div ref="image" id="iconolab-image-wrapper">
{% with image.media as im %}
@@ -46,11 +46,11 @@
</div>
<div v-show="formView" class="col-md-12">
-
+
<div class="col-md-6">
<div class="small-image-wrapper" style="position: relative">
{% thumbnail image.media "500x360" crop=False as im %}
- <svg ref="smallSvgWrapper" width="{{ im.width }}" height="{{ im.height }}" version="1.1">
+ <svg ref="smallSvgWrapper" width="{{ im.width }}" height="{{ im.height }}" version="1.1">
<image ref="smallImage" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{ im.url }}" x="0" y="0" width="{{ im.width }}" height="{{ im.height }}"></image>
<defs>
<mask id="smallImage">
@@ -58,7 +58,7 @@
<g v-bind:transform="transformMatrix">
<path ref="currentPath" v-bind:d="fragmentPath"></path>
</g>
- </mask>
+ </mask>
</defs>
<g v-show="!displayMask" v-bind:transform="transformMatrix">
@@ -69,14 +69,14 @@
</svg>
<svg style="display:none" ref="zoomSvg" width="{{ im.width }}" height="{{ im.height }}" version="1.1">
-
+
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="{{ im.url }}" x="0" y="0" preserveAspectRatio="none" width="{{ im.width }}" height="{{ im.height }}"></image>
<g v-bind:transform="transformMatrix">
<path v-bind:d="fragmentPath" opacity="0.7" fill="orange"></path>
</g>
</svg>
-
+
{% endthumbnail %}
</div>
<ul class="list-inline list-unstyled">
@@ -101,11 +101,11 @@
<div class="alert alert-info" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">Info:</span>
- Un de ces trois champs doit être non-vide: titre, description ou mots-clés.
+ Au moins un des trois champs, titre, description ou mots-clés, doit être renseigné.
</div>
{% endif %}
{% endif %}
-
+
{% if form.errors %}
<div id="errors" style="display: none;">
{% for field in form %}
@@ -173,7 +173,7 @@
<br><br>
</form>
</div>
-
+
</div>
</div>
@@ -194,10 +194,10 @@
$(".zoom-link, .show-zone, .hide-zone").hide()
}
else {
- $(".zoom-link, .show-zone").show()
+ $(".zoom-link, .show-zone").show()
}
- });
+ });
});
-
+
</script>
-{% endblock %}
\ No newline at end of file
+{% endblock %}