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
38cfea4a
Commit
38cfea4a
authored
Jul 14, 2018
by
Ryan Beymer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flask-admin/flask-admin#1486 - breadcrumbs, input-group-addon replacement
parent
033adf60
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
list.html
flask_admin/templates/bootstrap4/admin/file/list.html
+3
-3
details.html
flask_admin/templates/bootstrap4/admin/model/details.html
+3
-1
inline_list_base.html
...in/templates/bootstrap4/admin/model/inline_list_base.html
+2
-3
details.html
...dmin/templates/bootstrap4/admin/model/modals/details.html
+3
-1
No files found.
flask_admin/templates/bootstrap4/admin/file/list.html
View file @
38cfea4a
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
{% block body %}
{% block body %}
{% block breadcrums %}
{% block breadcrums %}
<ul
class=
"breadcrumb"
>
<ul
class=
"breadcrumb"
>
<li>
<li
class=
"breadcrumb-item"
>
<a
href=
"{{ get_dir_url('.index_view', path=None) }}"
>
{{ _gettext('Root') }}
</a>
<a
href=
"{{ get_dir_url('.index_view', path=None) }}"
>
{{ _gettext('Root') }}
</a>
</li>
</li>
{% for name, path in breadcrumbs[:-1] %}
{% for name, path in breadcrumbs[:-1] %}
<li>
<li
class=
"breadcrumb-item"
>
<a
href=
"{{ get_dir_url('.index_view', path=path) }}"
>
{{ name }}
</a>
<a
href=
"{{ get_dir_url('.index_view', path=path) }}"
>
{{ name }}
</a>
</li>
</li>
{% endfor %}
{% endfor %}
{% if breadcrumbs %}
{% if breadcrumbs %}
<li>
<li
class=
"breadcrumb-item"
>
<a
href=
"{{ get_dir_url('.index_view', path=breadcrumbs[-1][1]) }}"
>
{{ breadcrumbs[-1][0] }}
</a>
<a
href=
"{{ get_dir_url('.index_view', path=breadcrumbs[-1][1]) }}"
>
{{ breadcrumbs[-1][0] }}
</a>
</li>
</li>
{% endif %}
{% endif %}
...
...
flask_admin/templates/bootstrap4/admin/model/details.html
View file @
38cfea4a
...
@@ -25,7 +25,9 @@
...
@@ -25,7 +25,9 @@
{% block details_search %}
{% block details_search %}
<div
class=
"input-group fa_filter_container col-lg-6"
>
<div
class=
"input-group fa_filter_container col-lg-6"
>
<span
class=
"input-group-addon"
>
{{ _gettext('Filter') }}
</span>
<div
class=
"input-group-prepend"
>
<span
class=
"input-group-text"
>
{{ _gettext('Filter') }}
</span>
</div>
<input
id=
"fa_filter"
type=
"text"
class=
"form-control"
>
<input
id=
"fa_filter"
type=
"text"
class=
"form-control"
>
</div>
</div>
{% endblock %}
{% endblock %}
...
...
flask_admin/templates/bootstrap4/admin/model/inline_list_base.html
View file @
38cfea4a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
{# existing inline form fields #}
{# existing inline form fields #}
<div
class=
"inline-field-list"
>
<div
class=
"inline-field-list"
>
{% for subfield in field %}
{% for subfield in field %}
<div
id=
"{{ subfield.id }}"
class=
"inline-field
well well-sm
"
>
<div
id=
"{{ subfield.id }}"
class=
"inline-field
card-body bg-light
"
>
{%- if not check or check(subfield) %}
{%- if not check or check(subfield) %}
<legend>
<legend>
<small>
<small>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
{# template for new inline form fields #}
{# template for new inline form fields #}
<div
class=
"inline-field-template hide"
>
<div
class=
"inline-field-template hide"
>
{% filter forceescape %}
{% filter forceescape %}
<div
class=
"inline-field
well well-sm
"
>
<div
class=
"inline-field
card-body bg-light
"
>
<legend>
<legend>
<small>
{{ _gettext('New') }} {{ field.label.text }}
</small>
<small>
{{ _gettext('New') }} {{ field.label.text }}
</small>
<div
class=
"float-right"
>
<div
class=
"float-right"
>
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
</a>
</a>
</div>
</div>
</legend>
</legend>
<div
class=
'clearfix'
></div>
{{ render(template) }}
{{ render(template) }}
</div>
</div>
{% endfilter %}
{% endfilter %}
...
...
flask_admin/templates/bootstrap4/admin/model/modals/details.html
View file @
38cfea4a
...
@@ -12,7 +12,9 @@
...
@@ -12,7 +12,9 @@
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
{% block details_search %}
{% block details_search %}
<div
class=
"input-group fa_filter_container col-lg-6"
>
<div
class=
"input-group fa_filter_container col-lg-6"
>
<span
class=
"input-group-addon"
>
{{ _gettext('Filter') }}
</span>
<div
class=
"input-group-prepend"
>
<span
class=
"input-group-text"
>
{{ _gettext('Filter') }}
</span>
</div>
<input
id=
"fa_filter"
type=
"text"
class=
"form-control"
>
<input
id=
"fa_filter"
type=
"text"
class=
"form-control"
>
</div>
</div>
{% endblock %}
{% endblock %}
...
...
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