forked from pydanny/django-uni-form
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http:https://django-uni-form.googlecode.com/svn/trunk@7 cf8eee90-dced-11dd-bad4-6dbcaf1fdc36
- Loading branch information
Showing
7 changed files
with
110 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Daniel Greenfeld <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Copyright (c) 2009 Daniel Greenfeld and contributors. | ||
|
||
Permission is hereby granted, free of charge, to any person | ||
obtaining a copy of this software and associated documentation | ||
files (the "Software"), to deal in the Software without | ||
restriction, including without limitation the rights to use, | ||
copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following | ||
conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
############### | ||
django-uni-form | ||
############### | ||
|
||
Django-uni-form lets you easily display Django forms as divs. | ||
|
||
Contents: | ||
|
||
.. toctree:: | ||
|
||
install.txt | ||
usage.txt |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
from setuptools import setup, find_packages | ||
|
||
version = '0.2' | ||
|
||
LONG_DESCRIPTION = """ | ||
===================================== | ||
django-uni-form (Django Uni-Form) | ||
===================================== | ||
[http:https://djangoproject.com Django] forms are easily rendered as tables, | ||
paragraphs, and unordered lists. However, elegantly rendered div based forms | ||
is something you have to do by hand. The purpose of this application is to | ||
provide a simple tag and/or filter that lets you quickly render forms in a div | ||
format. | ||
[http:https://sprawsm.com/uni-form Uni-form] has been selected as the base model | ||
for the design of the forms. | ||
Using django-uni-form | ||
======================== | ||
1. Install as uni_form in your Django apps directory. | ||
2. Copy the site_media files in uni_form to your project site_media directory. | ||
uni-form-generic.css | ||
uni-form.css | ||
uni-form.jquery.js | ||
3. Add 'uni_form' to INSTALLED_APPS in settings.py. | ||
4. Add '{% load uni_form %}' to the template that calls your form. | ||
5. Append your form call with the as_uni_form filter: | ||
{{ my_form|as_uni_form }} | ||
6. Add the class of 'uniForm' to your form. Example: | ||
<form action="" method="post" class="uniForm" | ||
TODO | ||
==== | ||
1. Add an argument to escape text in the fields. | ||
""" | ||
|
||
setup( | ||
name='django-uni-form', | ||
version=version, | ||
description="django-uni-form", | ||
long_description=LONG_DESCRIPTION, | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Framework :: Django", | ||
"Environment :: Web Environment", | ||
], | ||
keywords='forms,django', | ||
author='Daniel Greenfeld', | ||
author_email='[email protected]', | ||
url='http:https://django-uni-form.googlecode.com/', | ||
license='MIT', | ||
packages=find_packages(), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=['setuptools'], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters