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
24a5704d
Commit
24a5704d
authored
Nov 28, 2013
by
Davide Silvestri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed examples/layout; modified filters links and margins for filters table
parent
5ad16b1e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
11 deletions
+27
-11
layout.css
examples/layout/static/layout.css
+9
-1
list.html
examples/layout/templates/list.html
+8
-8
admin.css
flask_admin/static/admin/css/admin.css
+9
-1
filters.js
flask_admin/static/admin/js/filters.js
+1
-1
No files found.
examples/layout/static/layout.css
View file @
24a5704d
...
...
@@ -5,7 +5,15 @@ body {
#content
{
background
:
white
;
border
:
1px
solid
#CCC
;
padding
:
5px
20px
30px
35px
;
padding
:
15px
20px
30px
35px
;
}
#content
.row
{
margin-left
:
0px
;
}
#brand
{
display
:
inline
;
}
html
,
body
,
.container
,
.row
,
.col-md-2
,
.col-md-10
,
#content
{
...
...
examples/layout/templates/list.html
View file @
24a5704d
...
...
@@ -5,25 +5,25 @@
<h2
id=
"brand"
>
{{ admin_view.name|capitalize }} list
</h2>
{% if admin_view.can_create %}
<div
class=
"btn-menu"
>
<a
href=
"{{ url_for('.create_view', url=return_url) }}"
class=
"btn btn-primary pull-right"
>
{{ _gettext('Create') }}
</a>
<a
href=
"{{ url_for('.create_view', url=return_url) }}"
class=
"btn btn-primary pull-right"
>
{{ _gettext('Create') }}
</a>
</div>
{% endif %}
{% if filter_groups %}
<div
class=
"btn-group btn-menu"
>
{{ model_layout.filter_options(btn_class='btn dropdown-toggle btn-title') }}
{{ model_layout.filter_options(btn_class='btn dropdown-toggle btn-title') }}
</div>
{% endif %}
{% if actions %}
<div
class=
"btn-group btn-menu"
>
{{ actionlib.dropdown(actions, btn_class='btn dropdown-toggle btn-title') }}
{{ actionlib.dropdown(actions, btn_class='btn dropdown-toggle btn-title') }}
</div>
{% endif %}
{% if search_supported %}
<div
class=
"search-form btn-menu"
>
{{ model_layout.search_form(input_class='span2 btn-title') }}
{{ model_layout.search_form(input_class='span2 btn-title') }}
</div>
{% endif %}
<div
class=
"clearfix"
></div>
...
...
@@ -31,4 +31,4 @@
{% endblock %}
{% block model_menu_bar %}
{% endblock %}
\ No newline at end of file
{% endblock %}
flask_admin/static/admin/css/admin.css
View file @
24a5704d
...
...
@@ -42,7 +42,7 @@ form.navbar-form div.input-append {
table
.filters
{
border-collapse
:
none
;
border-spacing
:
4px
;
margin
:
12px
0
;
margin
:
12px
0
px
20px
0px
;
}
...
...
@@ -169,3 +169,11 @@ a.btn-link {
border-radius
:
4px
;
border-color
:
#95bee2
;
}
a
.btn-filter
,
a
.btn-filter
:hover
{
border-radius
:
4px
;
border-color
:
#adadad
;
color
:
#333
;
background-color
:
#ebebeb
;
max-height
:
32px
;
}
\ No newline at end of file
flask_admin/static/admin/js/filters.js
View file @
24a5704d
...
...
@@ -29,7 +29,7 @@ var AdminFilters = function(element, filters_element, operations, options, types
// Filter list
$el
.
append
(
$
(
'<td/>'
).
append
(
$
(
'<a href="#" class="btn btn-
link
remove-filter" />'
)
$
(
'<a href="#" class="btn btn-
filter
remove-filter" />'
)
.
append
(
$
(
'<span class="close-icon">×</span>'
))
.
append
(
' '
)
.
append
(
name
)
...
...
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