Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
2c8bca94
Commit
2c8bca94
authored
Oct 14, 2018
by
PJ Janse van Rensburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove min-size config variable.
parent
fc150887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
layout.html
flask_admin/templates/bootstrap3/admin/model/layout.html
+1
-2
No files found.
flask_admin/templates/bootstrap3/admin/model/layout.html
View file @
2c8bca94
...
@@ -73,10 +73,9 @@
...
@@ -73,10 +73,9 @@
<input
type=
"hidden"
name=
"desc"
value=
"{{ sort_desc }}"
>
<input
type=
"hidden"
name=
"desc"
value=
"{{ sort_desc }}"
>
{% endif %}
{% endif %}
{%- set full_search_placeholder = _gettext('Search') %}
{%- set full_search_placeholder = _gettext('Search') %}
{%- set min_size = config.get('FLASK_ADMIN_SEARCH_SIZE_MIN', 30) %}
{%- set max_size = config.get('FLASK_ADMIN_SEARCH_SIZE_MAX', 100) %}
{%- set max_size = config.get('FLASK_ADMIN_SEARCH_SIZE_MAX', 100) %}
{%- if search_placeholder %}{% set full_search_placeholder = [full_search_placeholder, search_placeholder] | join(": ") %}{% endif %}
{%- if search_placeholder %}{% set full_search_placeholder = [full_search_placeholder, search_placeholder] | join(": ") %}{% endif %}
{%- set input_size = [[full_search_placeholder | length,
min_size
] | max, max_size] | min %}
{%- set input_size = [[full_search_placeholder | length,
30
] | max, max_size] | min %}
{% if search %}
{% if search %}
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"search"
name=
"search"
value=
"{{ search }}"
class=
"form-control"
size=
"{{ input_size }}"
placeholder=
"{{ full_search_placeholder }}"
>
<input
type=
"search"
name=
"search"
value=
"{{ search }}"
class=
"form-control"
size=
"{{ input_size }}"
placeholder=
"{{ full_search_placeholder }}"
>
...
...
Write
Preview
Markdown
is supported
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