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
b3b514d1
Commit
b3b514d1
authored
Aug 26, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor style adjustements.
parent
bb9d08a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
admin.css
flask_admin/static/css/admin.css
+5
-0
inline_form_list.html
flask_admin/templates/admin/model/inline_form_list.html
+4
-3
No files found.
flask_admin/static/css/admin.css
View file @
b3b514d1
...
@@ -60,3 +60,8 @@ form.search-form a.clear i {
...
@@ -60,3 +60,8 @@ form.search-form a.clear i {
color
:
black
;
color
:
black
;
opacity
:
0.4
;
opacity
:
0.4
;
}
}
/* Inline forms */
.fa-inline-form-control
{
float
:
right
;
}
\ No newline at end of file
flask_admin/templates/admin/model/inline_form_list.html
View file @
b3b514d1
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
{% macro render_template(template) -%}
{% macro render_template(template) -%}
<div
class=
"fa-inline-form"
>
<div
class=
"fa-inline-form"
>
<div
style=
"float: right
"
>
<div
class=
"fa-inline-form-control
"
>
<a
href=
"#"
class=
"fa-remove-form"
><i
class=
"icon-remove"
></i></a>
<a
href=
"#"
class=
"fa-remove-form"
><i
class=
"icon-remove"
></i></a>
</div>
</div>
{{ lib.render_form_fields(template) }}
{{ lib.render_form_fields(template) }}
...
@@ -19,8 +19,9 @@
...
@@ -19,8 +19,9 @@
<div
id=
"{{ subfield.id }}"
class=
"fa-inline-form"
>
<div
id=
"{{ subfield.id }}"
class=
"fa-inline-form"
>
{% set pk = subfield.get_pk() %}
{% set pk = subfield.get_pk() %}
{%- if pk %}
{%- if pk %}
<div
style=
"float: right"
>
<div
class=
"fa-inline-form-control"
>
<input
type=
"checkbox"
name=
"del-{{ subfield.id }}"
id=
"del-{{ subfield.id }}"
/>
Delete?
<input
type=
"checkbox"
name=
"del-{{ subfield.id }}"
id=
"del-{{ subfield.id }}"
/>
<label
for=
"del-{{ subfield.id }}"
style=
"display: inline"
>
Delete?
</a>
</div>
</div>
{%- endif -%}
{%- endif -%}
{{ lib.render_form_fields(subfield, True) }}
{{ lib.render_form_fields(subfield, True) }}
...
...
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