Commit 6c67644a authored by Hypsug0's avatar Hypsug0
Browse files

fix overlay form problem on small screens

parent 5e37ed7b
......@@ -679,4 +679,4 @@ BS Full screen Modal
.form-inline > * {
margin:10px 3px !important;
}
\ No newline at end of file
}
......@@ -91,3 +91,5 @@ $(document).ready(function () {
});
});
// $.fn.select2.defaults.set("theme", "bootstrap");
$.fn.select2.defaults.set("theme", "classic");
\ No newline at end of file
......@@ -11,7 +11,7 @@ from django.utils.translation import ugettext_lazy as _
from leaflet.forms.widgets import LeafletWidget
from core.forms import PrimaryAccordionGroup, InfoAccordionGroup, DangerAccordionGroup
from dicts.models import TypeDevice, Method, CountPrecision, CountUnit, Contact
from dicts.models import TypeDevice, Method, CountPrecision, CountUnit
from management.models import Transmitter
from .models import (
MetaPlace,
......@@ -158,41 +158,47 @@ class PlaceForm(forms.ModelForm):
Accordion(
PrimaryAccordionGroup(
"Informations principales",
Row(
Column(
Fieldset(
_("Caractéristiques principales"),
Fieldset(
_("Caractéristiques principales"),
Row(
Column(
Column("name", css_class="col-xs-6 col-md-3"),
Column("precision", css_class="col-xs-6 col-md-3"),
Column("altitude", css_class="col-xs-6 col-md-3"),
Column("domain", css_class="col-xs-6 col-md-3"),
Column("metaplace", css_class="col-lg-12"),
css_class="col-lg-12",
),
Fieldset(
_("Sensibilité du site"),
Column("is_hidden", css_class="12 col-md-3 col-lg-2"),
Column(
"authorized_user",
css_class="col-xs-12 col-md-9 col-lg-10",
),
css_class="col-lg-12",
),
Fieldset(
_("Gite et gestion"),
Column("is_gite", css_class="col-xs-12 col-lg-4"),
Column("type", css_class="col-xs-12 col-lg-4"),
Column("is_managed", css_class="col-xs-12 col-lg-4"),
css_class="col-lg-12",
),
Fieldset(
_("Localisation"),
Column("x", css_class="col-lg-6"),
Column("y", css_class="col-lg-6"),
Column("geom", css_class="col-lg-12"),
css_class="col-lg-12",
),
Row(Column("metaplace", css_class="col-lg-12"),),
css_class="col-lg-12",
),
Fieldset(
_("Sensibilité du site"),
Row(
Column("is_hidden", css_class="12 col-md-3 col-lg-2"),
Column(
"authorized_user",
css_class="col-xs-12 col-md-9 col-lg-10",
),
)
),
css_class="col-lg-12",
),
Fieldset(
_("Gite et gestion"),
Row(
Column("is_gite", css_class="col-xs-12 col-lg-4"),
Column("type", css_class="col-xs-12 col-lg-4"),
Column("is_managed", css_class="col-xs-12 col-lg-4"),
),
css_class="col-lg-12",
),
Fieldset(
_("Localisation"),
Row(
Column("x", css_class="col-lg-6"),
Column("y", css_class="col-lg-6"),
Column("geom", css_class="col-lg-12"),
),
css_class="col-lg-12",
),
),
InfoAccordionGroup(
......
......@@ -7,7 +7,6 @@
<script src="{% static 'js/bootstrap-datetimepicker.min.js' %} "></script>
<script src="{% static 'js/what-input.js' %} "></script>
<script src="{% static 'js/app.js' %} "></script>
{% endcache %}
<script>
</script>
\ No newline at end of file
......@@ -26,7 +26,7 @@
<script type="text/javascript">
{{ js | safe }};
$.fn.select2.defaults.set("theme", "bootstrap");
{#$.fn.select2.defaults.set("theme", "bootstrap");#}
</script>
<br/>
{# {{ form.media }}#}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment