Skip to content
Extraits de code Groupes Projets
Valider f90d0e61 rédigé par Yohan Boniface's avatar Yohan Boniface
Parcourir les fichiers
parent 646d9910
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -80,6 +80,32 @@ input:-moz-placeholder, :-moz-placeholder { ...@@ -80,6 +80,32 @@ input:-moz-placeholder, :-moz-placeholder {
background-color: #970b0e; background-color: #970b0e;
} }
#style_options > * {
display: none;
}
#style_options .more_style_options,
#style_options legend {
display: block;
cursor: pointer;
}
#style_options .more_style_options:before {
content: "…";
}
#style_options legend:before {
content: "▶";
padding-right: 5px;
}
#style_options.on legend:before {
content: "▼";
}
#style_options.on > * {
display: block;
}
#style_options.on .more_style_options {
display: none;
}
/* Map infos */ /* Map infos */
.category_color { .category_color {
display: inline-block; display: inline-block;
......
...@@ -45,6 +45,19 @@ ...@@ -45,6 +45,19 @@
{% endcompress js %} {% endcompress js %}
{% block bottom_js %} {% block bottom_js %}
<script src="{{ STATIC_URL }}storage/contrib/js/storage.ui.default.js"></script> <script src="{{ STATIC_URL }}storage/contrib/js/storage.ui.default.js"></script>
<script type="text/javascript">
function fn (e) {
var styleDiv = L.DomUtil.get("style_options");
if (L.DomUtil.hasClass(styleDiv, "on")) {
L.DomUtil.removeClass(styleDiv, "on");
}
else {
L.DomUtil.addClass(styleDiv, "on");
}
}
$(document).on('click', '#style_options_toggle', fn);
$(document).on('click', '.more_style_options', fn);
</script>
{% endblock %} {% endblock %}
<div id="storage-ui-container"></div> <div id="storage-ui-container"></div>
<div id="storage-alert-container"></div> <div id="storage-alert-container"></div>
......
{% load umap_tags i18n %} {% load umap_tags i18n %}
<fieldset> <fieldset id="style_options">
<legend>{% trans "Styles" %}</legend> <legend id="style_options_toggle">{% trans "Styles options" %}</legend>
{% foundation_field form.color %} <label class="more_style_options"></label>
{% foundation_field form.options_color %}
{% if form.icon_class and form.pictogram %} {% if form.icon_class and form.pictogram %}
<div class="formbox columns twelve"> <div class="formbox columns twelve">
<div class="six columns"> <div class="six columns">
...@@ -12,4 +13,22 @@ ...@@ -12,4 +13,22 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
</fieldset> {% foundation_field form.options_weight %}
{% if form.options_stroke %}
<div class="formbox">
<span>{{ form.options_stroke.label }}</span>{{ form.options_stroke }}
</div>
<small class="help-text">{{ form.options_stroke.help_text }}</small>
{% endif %}
{% foundation_field form.options_smoothFactor %}
{% foundation_field form.options_opacity %}
{% if form.options_fill %}
<div class="formbox">
<span>{{ form.options_fill.label }}</span>{{ form.options_fill }}
</div>
<small class="help-text">{{ form.options_fill.help_text }}</small>
{% endif %}
{% foundation_field form.options_fillOpacity %}
{% foundation_field form.options_fillColor %}
{% foundation_field form.options_dashArray %}
</fieldset>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter