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
bde254c8
Commit
bde254c8
authored
Aug 26, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted button styles
parent
b6614b7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
50 deletions
+52
-50
list.html
flask_admin/templates/admin/file/list.html
+3
-3
create.html
flask_admin/templates/admin/model/create.html
+1
-1
list.html
flask_admin/templates/admin/model/list.html
+48
-46
No files found.
flask_admin/templates/admin/file/list.html
View file @
bde254c8
...
@@ -87,17 +87,17 @@
...
@@ -87,17 +87,17 @@
<div
class=
"btn-toolbar"
>
<div
class=
"btn-toolbar"
>
{% if admin_view.can_upload %}
{% if admin_view.can_upload %}
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<a
class=
"btn btn-
primary btn-
large"
href=
"{{ get_dir_url('.upload', path=dir_path) }}"
>
{{ _gettext('Upload File') }}
</a>
<a
class=
"btn btn-large"
href=
"{{ get_dir_url('.upload', path=dir_path) }}"
>
{{ _gettext('Upload File') }}
</a>
</div>
</div>
{% endif %}
{% endif %}
{% if admin_view.can_mkdir %}
{% if admin_view.can_mkdir %}
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<a
class=
"btn btn-
primary btn-
large"
href=
"{{ get_dir_url('.mkdir', path=dir_path) }}"
>
{{ _gettext('Create Directory') }}
</a>
<a
class=
"btn btn-large"
href=
"{{ get_dir_url('.mkdir', path=dir_path) }}"
>
{{ _gettext('Create Directory') }}
</a>
</div>
</div>
{% endif %}
{% endif %}
{% if actions %}
{% if actions %}
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
{{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-
primary btn-
large') }}
{{ actionslib.dropdown(actions, 'dropdown-toggle btn btn-large') }}
</div>
</div>
{% endif %}
{% endif %}
</div>
</div>
...
...
flask_admin/templates/admin/model/create.html
View file @
bde254c8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
{% block body %}
{% block body %}
{% macro extra() %}
{% macro extra() %}
<input
name=
"_add_another"
type=
"submit"
class=
"btn btn-
primary btn-
large"
value=
"{{ _gettext('Save and Add') }}"
/>
<input
name=
"_add_another"
type=
"submit"
class=
"btn btn-large"
value=
"{{ _gettext('Save and Add') }}"
/>
{% endmacro %}
{% endmacro %}
<ul
class=
"nav nav-tabs"
>
<ul
class=
"nav nav-tabs"
>
...
...
flask_admin/templates/admin/model/list.html
View file @
bde254c8
...
@@ -97,58 +97,60 @@
...
@@ -97,58 +97,60 @@
<table
class=
"table table-striped table-bordered model-list"
>
<table
class=
"table table-striped table-bordered model-list"
>
<thead>
<thead>
<tr>
<tr>
{% if actions %}
{% block list_header scoped %}
<th
class=
"span1"
>
{% if actions %}
<input
type=
"checkbox"
name=
"rowtoggle"
class=
"action-rowtoggle"
/>
<th
class=
"span1"
>
</th>
<input
type=
"checkbox"
name=
"rowtoggle"
class=
"action-rowtoggle"
/>
{% endif %}
</th>
<th
class=
"span1"
>
</th>
{% endif %}
{% set column = 0 %}
<th
class=
"span1"
>
</th>
{% for c, name in list_columns %}
{% set column = 0 %}
<th>
{% for c, name in list_columns %}
{% if admin_view.is_sortable(c) %}
<th>
{% if sort_column == column %}
{% if admin_view.is_sortable(c) %}
<a
href=
"{{ sort_url(column, True) }}"
>
{% if sort_column == column %}
{{ name }}
<a
href=
"{{ sort_url(column, True) }}"
>
{% if sort_desc %}
{{ name }}
<i
class=
"icon-chevron-up"
></i>
{% if sort_desc %}
<i
class=
"icon-chevron-up"
></i>
{% else %}
<i
class=
"icon-chevron-down"
></i>
{% endif %}
</a>
{% else %}
{% else %}
<
i
class=
"icon-chevron-down"
></i
>
<
a
href=
"{{ sort_url(column) }}"
>
{{ name }}
</a
>
{% endif %}
{% endif %}
</a>
{% else %}
{% else %}
{{ name }}
<a
href=
"{{ sort_url(column) }}"
>
{{ name }}
</a>
{% endif %}
{% endif %}
</th>
{% else %}
{% set column = column + 1 %}
{{ name }}
{% endfor %}
{% endif %}
{% endblock %}
</th>
{% set column = column + 1 %}
{% endfor %}
</tr>
</tr>
</thead>
</thead>
{% for row in data %}
{% for row in data %}
<tr>
<tr>
{%
if actions
%}
{%
block list_row scoped
%}
<td>
{% if actions %}
<
input
type=
"checkbox"
name=
"rowid"
class=
"action-checkbox"
value=
"{{ get_pk_value(row) }}"
/
>
<
td
>
</td
>
<input
type=
"checkbox"
name=
"rowid"
class=
"action-checkbox"
value=
"{{ get_pk_value(row) }}"
/
>
{% endif %}
</td>
<td>
{% endif %}
{%- if admin_view.can_edit -%}
<td>
<a
class=
"icon"
href=
"{{ url_for('.edit_view', id=get_pk_value(row), url=return_url) }}"
>
{%- if admin_view.can_edit -%}
<
i
class=
"icon-pencil"
></i
>
<
a
class=
"icon"
href=
"{{ url_for('.edit_view', id=get_pk_value(row), url=return_url) }}"
>
</a
>
<i
class=
"icon-pencil"
></i
>
{%- endif -%}
</a>
{%- if admin_view.can_delete
-%}
{%- endif
-%}
<form
class=
"icon"
method=
"POST"
action=
"{{ url_for('.delete_view', id=get_pk_value(row), url=return_url) }}"
>
{%- if admin_view.can_delete -%}
<
button
onclick=
"return confirm('{{ _gettext('You sure you want to delete this item?') }}');
"
>
<
form
class=
"icon"
method=
"POST"
action=
"{{ url_for('.delete_view', id=get_pk_value(row), url=return_url) }}
"
>
<
i
class=
"icon-remove"
></i
>
<
button
onclick=
"return confirm('{{ _gettext('You sure you want to delete this item?') }}');"
>
</button
>
<i
class=
"icon-remove"
></i
>
</form
>
</button
>
{%- endif -%}
</form>
</td>
{%- endif -%}
{% block list_columns scoped %}
</td>
{% for c, name in list_columns %}
{% for c, name in list_columns %}
<td>
{{ get_value(row, c) }}
</td>
<td>
{{ get_value(row, c) }}
</td>
{% endfor %}
{% endfor %}
...
...
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