django-inplaceedit-bootstrap
Information
Integration of django-inplaceedit with bootstrap 3
It is distributed under the terms of the GNU Lesser General Public License.
This egg would not have been possible without the help of Tyrdall
Requirements
django-inplaceedit (== 1.4.1)
Bootstrap (== 3.3.5)
django-inplace-edit-extra-fields (== 0.6.1, optional but recommended)
django-bootstrap3-datetimepicker (== 2.2.3, optional but recommended)
Demo (this video use a very old version of django-inplaceedit and django-inplaceedit-extra-fields)
Video Demo, of django-inplaceedit, django-inplaceedit-extra-fields and django-inlinetrans (Set full screen mode to view it correctly)
Attention: This demo is not a demo of this package, in this video there are not any inegration with bootstrap. Please to see a demo use the testing django project.
Installation
After installing django-inplaceedit egg (1.4.1)
After installing django-inplaceedit-extra-fields egg (0.6.1, this is optional but recommended)
And after installing django-bootstrap3-datetimepicker egg (2.2.3, this is optional but recommended)
In your settings.py
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
#.....................#
'inplaceeditform_bootstrap', # it is very important that this app is before that inplaceeditform and inplaceeditform_extra_fields
'inplaceeditform',
'inplaceeditform_extra_fields', # this is optional but recommended
'bootstrap3_datetime', # this is optional but recommended
)
...
# Optional, but recommended
ADAPTOR_INPLACEEDIT = {}
if 'inplaceeditform_extra_fields' in INSTALLED_APPS:
ADAPTOR_INPLACEEDIT['tiny'] = 'inplaceeditform_extra_fields.fields.AdaptorTinyMCEField'
# You can add the other adaptors of inplaceeditform_extra_fields
# https://pypi.python.org/pypi/django-inplaceedit-extra-fields#installation
if 'bootstrap3_datetime' in INSTALLED_APPS:
ADAPTOR_INPLACEEDIT['date'] = 'inplaceeditform_bootstrap.fields.AdaptorDateBootStrapField'
ADAPTOR_INPLACEEDIT['datetime'] = 'inplaceeditform_bootstrap.fields.AdaptorDateTimeBootStrapField'
INPLACEEDIT_EDIT_TOOLTIP_TEXT = 'Please doubleclick to edit'
If you want, you can register these fields in your settings with different keys:
...
if 'bootstrap3_datetime' in INSTALLED_APPS:
ADAPTOR_INPLACEEDIT['date_bootstrap'] = 'inplaceeditform_bootstrap.fields.AdaptorDateBootStrapField'
ADAPTOR_INPLACEEDIT['datetime_bootstrap'] = 'inplaceeditform_bootstrap.fields.AdaptorDateTimeBootStrapField'
And after that, to want use a specific adaptor you can pass it to the templatetag, e.g.:
{% inplace_edit "content.field_name" adaptor="date_bootstrap" %}
{% inplace_edit "content.field_name" adaptor="datetime_bootstrap" %}
Why this code is not in django-inplaceedit?
This code depends on the bootstrap
This is a specific solution
Testing
Exists a testing django project. This project can use as demo project.
This project overwrites the default options of django-inplaceedit and a default option of django-inplaceedit-bootstrap
INPLACEEDIT_AUTO_SAVE = True INPLACEEDIT_EVENT = 'click' INPLACEEDIT_EDIT_TOOLTIP_TEXT = 'Click to edit' # This option is of django-inplaceedit-bootstrap
Development
You can get the bleeding edge version of django-inplaceedit-bootstrap by doing a clone of its git repository:
git clone git@github.com:django-inplaceedit/django-inplaceedit-bootstrap.git
Releases
0.2.1 (2015-08-30)
Details
0.2.0 (2015-08-30)
Add Tooltip on Mouseover
Add form-class to the fields
Improvements in the testing project
Support to Django 1.7 and Django 1.8
Support to the last versions of the django-bootstrap3-datetimepicker
Upgrate bootstrap version
0.1.1 (2013-09-17)
Improvements in the testing project
0.1.0 (2013-09-17)
Improvements in the README file
0.0.3 (2013-09-16)
Add the AdaptorDateBootStrapField and AdaptorDateTimeBootStrapField
Customize the inplaceedit toolbar
Customize the file adaptor
Improvements in the fixtures of the testing project
0.0.2 (2013-09-10)
Set the variable INPLACEEDIT_EVENT in the settings to “click”
Fix typo errors in the README
0.0.1 (2013-09-06)
Initial version
Metadata
Release files for django-inplaceedit-bootstrap 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-inplaceedit-bootstrap-0.2.1.tar.gz | 10.1 kB | Without provenance | Details for django-inplaceedit-bootstrap-0.2.1.tar.gz |
Release files / django-inplaceedit-bootstrap-0.2.1.tar.gz
| Download URL | django-inplaceedit-bootstrap-0.2.1.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f83aec29de4cb3469083c34dbc1c423f1dab2faa871fd4c95fd7ef25e48cd4f6
|
|
BLAKE2b-256 checksum How to use checksums |
daa074368702d6926cfdd0d489ed165943db49fa83ce67a7f853eef372443f09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-inplaceedit-bootstrap 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.