{ "info": { "author": "Grzegorz T\u0119\u017cycki", "author_email": "grzegorz.tezycki@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Utilities" ], "description": "django-popup-view-field\n------------------------\n\n.. image:: https://badge.fury.io/py/django-popup-view-field.svg\n :target: https://badge.fury.io/py/django-popup-view-field\n :alt: Latest PyPI version\n\n\n.. image:: https://travis-ci.org/djk2/django-popup-view-field.svg?branch=master\n :target: https://travis-ci.org/djk2/django-popup-view-field\n :alt: Travis CI\n\n\n.. image:: https://requires.io/github/djk2/django-popup-view-field/requirements.svg?branch=master\n :target: https://requires.io/github/djk2/django-popup-view-field/requirements/?branch=master\n :alt: Requirements Status\n\n\nField and widget can render bootstrap dialog with content from django view.\nYou can create normal django View and load this view in dialog for form field.\n\n- Support:\n\n * Python: 2.7, 3.6\n * Django: 1.8, 1.9, 1.10, 1.11, 2.0, 2.1\n * django-crispy-forms\n * django-bootstrap3\n\n- Require:\n\n * Django\n * bootstrap3\n * JQuery\n\n- Recommended:\n\n * django-bootstrap3 or\n * django-crispy-forms\n\n- Locale:\n\n * EN - (english)\n * PL - (polish)\n\n- Tested on browsers:\n\n * OK - Google Chrome 70.0 - Fedora 28\n * OK - Firefox 62.0.3 - Fedora 28\n * OK - Firefox 50.1.0 - Ubuntu 14.04\n * OK - Firefox 31.1 - CentOS 6.4\n * OK - Chromium 53.0 - Ubuntu 14.04\n * OK - Microsoft Edge 38 - Windows 10\n * OK - Internet Explorer 11.0 - Windows 10\n * OK - Internet Explorer 10.0 - Windows 7\n * OK - Internet Explorer 9.0 - Windows 7\n * ER - Internet Explorer <= 8 (no support \"html()\" for data-popup-view-value)\n\n\nScreenshots\n------------\n\n- Example: Form with several popup-view-fields\n\n.. image:: https://raw.githubusercontent.com/djk2/django-popup-view-field/master/doc/static/scr1.png\n :alt: Form with django-popup-view-fields\n\n- Example: Dialog for select sex\n\n.. image:: https://raw.githubusercontent.com/djk2/django-popup-view-field/master/doc/static/scr2.png\n :alt: Dialog for select sex\n\n- Example: Dialog for select color\n\n.. image:: https://raw.githubusercontent.com/djk2/django-popup-view-field/master/doc/static/scr3.png\n :alt: Dialog for select color\n\n- Example: Dialog with form\n\n.. image:: https://raw.githubusercontent.com/djk2/django-popup-view-field/master/doc/static/scr4.png\n :alt: Dialog with form\n\n\nRun demo\n---------\n1. Clone or download repository::\n\n git clone https://github.com/djk2/django-popup-view-field.git\n\n2. Create virtualenv or not (red more: http://docs.python-guide.org/en/latest/dev/virtualenvs/)\n\n3. Install requirements for demo::\n\n cd django-popup-view-field/demo\n\n pip install -r requirements.txt\n\n4. Run developing web server::\n\n python manage.py runserver\n\n5. Run your browser and call url: 127.0.0.1:8000 ::\n\n firefox 127.0.0.1:8000\n\n\nInstall\n--------\nInstall package - There are several solutions, choose your own\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n1. Install using pypi repository::\n\n pip install django-popup-view-field\n\n2. Install using pip + github repository url::\n\n pip install git+https://github.com/djk2/django-popup-view-field.git\n\n3. Install using pip + zip archive::\n\n wget https://github.com/djk2/django-popup-view-field/archive/master.zip\n pip install master.zip\n\n4. Clone or download application to your django project directory::\n\n wget https://github.com/djk2/django-popup-view-field/archive/master.zip -O /tmp/master.zip\n unzip /tmp/master.zip -d /tmp/\n cd my_project_dir\n cp -r /tmp/django-popup-view-field-master/django_popup_view_field/ ./\n\nAdd ``django_popup_view_field`` to your INSTALLED_APPS setting\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n*settings.py* ::\n\n INSTALLED_APPS = [\n ...\n 'bootstrap3', # If you use django-bootstrap3\n 'crispy_forms', # If you user django-crispy-forms\n\n 'django_popup_view_field',\n ...\n ]\n\n**Warning**:\n Is recommended use django-bootstrap3 or django-crispy-forms\n to render forms and fields, but this is not necessary.\n You can still write django templates using pure CSS from bootstrap3.\n More information about bootstrap forms in here: http://getbootstrap.com/css/#forms\n\n\nAdd the django_popup_view_field urls to your root url patterns\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n*urls.py* ::\n\n urlpatterns = [\n ...\n url(\n r'^django_popup_view_field/',\n include('django_popup_view_field.urls', namespace=\"django_popup_view_field\")\n ),\n ]\n\n**Note**:\n The URL path can be whatever you want,\n but you must include 'django_popup_view_field.urls' with the 'django_popup_view_field' namespace.\n You may leave out the namespace in Django >= 1.9\n\n\nIn your base template, add ``django_popup_view_field_javascript`` tag\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n``django_popup_view_field_javascript`` template tag load all required javascripts and\ntemplate-scripts for application.\nTag should be append before body close
\n ...\n ...\n \n \n ...\n ...\n {% django_popup_view_field_javascript %}\ntag and after jQuery and Bootstrap scripts.\n\n*base.html* ::\n\n \n {% load django_popup_view_field_tags %}\n\n \n
\n ...\n \n ...\n \n\n
\n