Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dbchiro
dbchiroweb
Commits
6c67644a
Commit
6c67644a
authored
Feb 16, 2020
by
Hypsug0
Browse files
fix overlay form problem on small screens
parent
5e37ed7b
Changes
5
Hide whitespace changes
Inline
Side-by-side
core/static/css/app.css
View file @
6c67644a
...
...
@@ -679,4 +679,4 @@ BS Full screen Modal
.form-inline
>
*
{
margin
:
10px
3px
!important
;
}
\ No newline at end of file
}
core/static/js/app.js
View file @
6c67644a
...
...
@@ -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
sights/forms.py
View file @
6c67644a
...
...
@@ -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
(
...
...
templates/main/footer_main_assets.html
View file @
6c67644a
...
...
@@ -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
templates/normal_form.html
View file @
6c67644a
...
...
@@ -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 }}#}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment