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
43aba56c
Commit
43aba56c
authored
Jan 04, 2016
by
Paul Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent showing 'save and ~' buttons when action disabled
parent
2a724048
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
20 deletions
+22
-20
lib.html
flask_admin/templates/bootstrap2/admin/lib.html
+9
-0
create.html
flask_admin/templates/bootstrap2/admin/model/create.html
+1
-5
edit.html
flask_admin/templates/bootstrap2/admin/model/edit.html
+1
-5
lib.html
flask_admin/templates/bootstrap3/admin/lib.html
+9
-0
create.html
flask_admin/templates/bootstrap3/admin/model/create.html
+1
-5
edit.html
flask_admin/templates/bootstrap3/admin/model/edit.html
+1
-5
No files found.
flask_admin/templates/bootstrap2/admin/lib.html
View file @
43aba56c
...
...
@@ -251,3 +251,12 @@
{% endif %}
<script
src=
"{{ admin_static.url(filename='admin/js/form.js', v='1.0.1') }}"
></script>
{% endmacro %}
{% macro extra() %}
{% if admin_view.can_create %}
<input
name=
"_add_another"
type=
"submit"
class=
"btn"
value=
"{{ _gettext('Save and Add Another') }}"
/>
{% endif %}
{% if admin_view.can_edit %}
<input
name=
"_continue_editing"
type=
"submit"
class=
"btn"
value=
"{{ _gettext('Save and Continue Editing') }}"
/>
{% endif %}
{% endmacro %}
flask_admin/templates/bootstrap2/admin/model/create.html
View file @
43aba56c
{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% macro extra() %}
<input
name=
"_add_another"
type=
"submit"
class=
"btn"
value=
"{{ _gettext('Save and Add Another') }}"
/>
<input
name=
"_continue_editing"
type=
"submit"
class=
"btn"
value=
"{{ _gettext('Save and Continue Editing') }}"
/>
{% endmacro %}
{% from 'admin/lib.html' import extra with context %} {# backward compatible #}
{% block head %}
{{ super() }}
...
...
flask_admin/templates/bootstrap2/admin/model/edit.html
View file @
43aba56c
{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% macro extra() %}
<input
name=
"_add_another"
type=
"submit"
class=
"btn"
value=
"{{ _gettext('Save and Add Another') }}"
/>
<input
name=
"_continue_editing"
type=
"submit"
class=
"btn"
value=
"{{ _gettext('Save and Continue Editing') }}"
/>
{% endmacro %}
{% from 'admin/lib.html' import extra with context %} {# backward compatible #}
{% block head %}
{{ super() }}
...
...
flask_admin/templates/bootstrap3/admin/lib.html
View file @
43aba56c
...
...
@@ -235,3 +235,12 @@
{% endif %}
<script
src=
"{{ admin_static.url(filename='admin/js/form.js', v='1.0.1') }}"
></script>
{% endmacro %}
{% macro extra() %}
{% if admin_view.can_create %}
<input
name=
"_add_another"
type=
"submit"
class=
"btn btn-default"
value=
"{{ _gettext('Save and Add Another') }}"
/>
{% endif %}
{% if admin_view.can_edit %}
<input
name=
"_continue_editing"
type=
"submit"
class=
"btn btn-default"
value=
"{{ _gettext('Save and Continue Editing') }}"
/>
{% endif %}
{% endmacro %}
flask_admin/templates/bootstrap3/admin/model/create.html
View file @
43aba56c
{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% macro extra() %}
<input
name=
"_add_another"
type=
"submit"
class=
"btn btn-default"
value=
"{{ _gettext('Save and Add Another') }}"
/>
<input
name=
"_continue_editing"
type=
"submit"
class=
"btn btn-default"
value=
"{{ _gettext('Save and Continue Editing') }}"
/>
{% endmacro %}
{% from 'admin/lib.html' import extra with context %} {# backward compatible #}
{% block head %}
{{ super() }}
...
...
flask_admin/templates/bootstrap3/admin/model/edit.html
View file @
43aba56c
{% extends 'admin/master.html' %}
{% import 'admin/lib.html' as lib with context %}
{% macro extra() %}
<input
name=
"_add_another"
type=
"submit"
class=
"btn btn-default"
value=
"{{ _gettext('Save and Add Another') }}"
/>
<input
name=
"_continue_editing"
type=
"submit"
class=
"btn btn-default"
value=
"{{ _gettext('Save and Continue Editing') }}"
/>
{% endmacro %}
{% from 'admin/lib.html' import extra with context %} {# backward compatible #}
{% block head %}
{{ super() }}
...
...
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