{ "info": { "author": "Artem Shelest", "author_email": "artem.e.shelest@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-Admin-Toggle-Control\n==========================\n\nBetter boolean toggle control for Flask-Admin inline form.\n\nBetter UX\n---------\n\nReplace this:\n\n.. image:: https://raw.githubusercontent.com/artemShelest/flask-admin-toggle-control/master/res/original.gif\n\nwith this:\n\n.. image:: https://raw.githubusercontent.com/artemShelest/flask-admin-toggle-control/master/res/new.gif\n\nInstallation\n------------\n::\n\n pip install flask-admin-toggle-control\n\nIntegrate\n---------\n\nEdit your view class to integrate toggle control:\n\n1. Inherit from ViewMixin::\n\n class SomeView(flask_admin_toggle_control.ViewMixin, ModelView):\n pass\n\n2. Define fields to show with toggle control::\n\n class SomeView(flask_admin_toggle_control.ViewMixin, ModelView):\n column_toggle_control_list = [\"boolean_field1\", \"boolean_field2\"]\n\n3. Do not forget to have these fields editable::\n\n class SomeView(flask_admin_toggle_control.ViewMixin, ModelView):\n column_toggle_control_list = [\"boolean_field1\", \"boolean_field2\"]\n column_editable_list = [\"boolean_field1\", \"boolean_field2\", \"other_editable_field\"]\n\n\nServe component JS file from static endpoint, pass your application object as a parameter::\n\n app = Flask(__name__)\n flask_admin_toggle_control.init_static_ep(app)\n\n\n\nChangelog\n=========\n\n0.1.3\n-----\n\n* Added installation and integration instructions\n* Extracted view mixin for easier integration\n* Helper to create static endpoint", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/artemShelest/flask-admin-toggle-control", "keywords": "flask-admin,inline,form,control,bool,boolean,toggle", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Flask-Admin-Toggle-Control", "package_url": "https://pypi.org/project/Flask-Admin-Toggle-Control/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Admin-Toggle-Control/", "project_urls": { "Homepage": "https://github.com/artemShelest/flask-admin-toggle-control" }, "release_url": "https://pypi.org/project/Flask-Admin-Toggle-Control/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Toggle control for Flask Admin inline form.", "version": "0.1.3" }, "last_serial": 4640297, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "2cd5a2cbbf316f04271c36ef22aeb121", "sha256": "7d123c56fc2d747f131343283f3c6c6fab91fcc67e0fd8321523d1ca613d21d1" }, "downloads": -1, "filename": "Flask-Admin-Toggle-Control-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2cd5a2cbbf316f04271c36ef22aeb121", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3820, "upload_time": "2018-12-27T15:00:39", "url": "https://files.pythonhosted.org/packages/34/ba/70c596c2839701f79e4f269ce0f07a127552699bdb0448beccc48e5af52e/Flask-Admin-Toggle-Control-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2cd5a2cbbf316f04271c36ef22aeb121", "sha256": "7d123c56fc2d747f131343283f3c6c6fab91fcc67e0fd8321523d1ca613d21d1" }, "downloads": -1, "filename": "Flask-Admin-Toggle-Control-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2cd5a2cbbf316f04271c36ef22aeb121", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3820, "upload_time": "2018-12-27T15:00:39", "url": "https://files.pythonhosted.org/packages/34/ba/70c596c2839701f79e4f269ce0f07a127552699bdb0448beccc48e5af52e/Flask-Admin-Toggle-Control-0.1.3.tar.gz" } ] }