-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add version of baseframe-mui without select2. #242
Changes from 5 commits
44dd97d
e572849
d40ac98
b403edb
cb9d96d
41d20f4
30aa08b
1b9350c
7f31d82
b5c1b22
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3559,7 +3559,6 @@ h4, h5, h6 { | |
|
||
.content-wrapper { | ||
position: relative; | ||
z-index: 1; | ||
padding-top: 50px; | ||
} | ||
|
||
|
@@ -3830,12 +3829,16 @@ li p + ol { | |
margin-top: 20px; | ||
margin-bottom: 0; | ||
} | ||
.mui-select > label { | ||
top: -5px; | ||
} | ||
.mui-select .select2 { | ||
width: 100% !important; | ||
} | ||
.mui-select .mui-select__menu { | ||
z-index: 1001; | ||
} | ||
|
||
.mui-select.select2 .mui-select__menu { | ||
display: none !important; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For select2 enabled select fields, hide the default mui select dropdown. |
||
|
||
.listwidget ul, .listwidget ol { | ||
list-style: none; | ||
|
@@ -4031,8 +4034,8 @@ li p + ol { | |
|
||
@media (min-width: 768px) { | ||
.alert { | ||
margin-top: 1em; | ||
margin-bottom: 1em; | ||
margin-top: 15px; | ||
margin-bottom: 15px; | ||
} | ||
} | ||
.thumbnail { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,11 +77,21 @@ | |
<label>{{ field.label.text }}</label> | ||
{%- endif %} | ||
</div> | ||
{%- elif field.type in ['SelectField', 'QuerySelectField', 'SelectMultipleField', 'QuerySelectMultipleField', 'UserSelectField', 'UserSelectMultiField', 'AutocompleteField', 'AutocompleteMultipleField', 'GeonameSelectField', 'GeonameSelectMultiField'] and field.widget.html_tag not in ['ul', 'ol'] %} | ||
{%- elif field.type in ['SelectField', 'QuerySelectField', 'QuerySelectMultipleField'] and field.widget.html_tag not in ['ul', 'ol'] %} | ||
<div class="mui-select"> | ||
{{ field | render_field_options(class="field-" + field.id + " " + widget_css_class, tabindex=tabindex, autofocus=autofocus, rows=rows)}} | ||
<label>{{ field.label.text }}</label> | ||
</div> | ||
{%- elif field.type in ['SelectMultipleField'] and field.widget.html_tag not in ['ul', 'ol'] %} | ||
<div class="mui-select mui-select2 select2"> | ||
{{ field | render_field_options(class="field-" + field.id + " " + widget_css_class, tabindex=tabindex, autofocus=autofocus, rows=rows)}} | ||
<label>{{ field.label.text }}</label> | ||
</div> | ||
{%- elif field.type in ['SelectMultipleField', 'UserSelectField', 'UserSelectMultiField', 'AutocompleteField', 'AutocompleteMultipleField', 'GeonameSelectField', 'GeonameSelectMultiField'] and field.widget.html_tag not in ['ul', 'ol'] %} | ||
<div class="mui-select select2"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To distinguish between select and select2 fields. |
||
{{ field | render_field_options(class="field-" + field.id + " " + widget_css_class, tabindex=tabindex, autofocus=autofocus, rows=rows)}} | ||
<label>{{ field.label.text }}</label> | ||
</div> | ||
{%- else %} | ||
<div class="mui-textfield"> | ||
{%- if not nolabel %}<label class="mui-form__label">{{ field.label.text }}</label>{%- endif %} | ||
|
@@ -354,6 +364,8 @@ | |
document.getElementById("{{ ref_id }}").submit(); | ||
} | ||
}) | ||
{%- elif field.type in ['SelectMultipleField'] %} | ||
Baseframe.Forms.enableSelect2(); | ||
{%- elif field.type in ['UserSelectField', 'UserSelectMultiField'] %} | ||
{%- if config['LASTUSER_CLIENT_ID'] and current_auth.cookie and 'sessionid' in current_auth.cookie %} | ||
Baseframe.Forms.lastuserAutocomplete({ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed z-index of content wrapper div so that the select2 dropdown, which inside the this div can have an higher z-index than the fixed header