Skip to content

Commit

Permalink
Eggifying django-uni-form
Browse files Browse the repository at this point in the history
git-svn-id: http:https://django-uni-form.googlecode.com/svn/trunk@7 cf8eee90-dced-11dd-bad4-6dbcaf1fdc36
  • Loading branch information
pydanny committed Jan 24, 2009
1 parent 2d4d3b9 commit db5c690
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 7 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Daniel Greenfeld <[email protected]>
22 changes: 22 additions & 0 deletions LICENSE.txt
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.
12 changes: 12 additions & 0 deletions docs/index.txt
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 added docs/install.txt
Empty file.
Empty file added docs/usage.txt
Empty file.
64 changes: 64 additions & 0 deletions setup.py
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'],
)
18 changes: 11 additions & 7 deletions uni_form/README
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,26 @@ format.
for the design of the forms.



Using django-uni-form
========================
1. Install as uni_form in your Django apps directory.
2. Add 'uni_form' to INSTALLED_APPS in settings.py
3. Add '{% load uni_form %}' to the template that calls your form.
4. Append your form call with the as_uni_form filter:
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 }}

5. Add the class of 'uniForm' to your form. Example:
6. Add the class of 'uniForm' to your form. Example:

<form action="" method="post" class="uniForm"



TODO
====
1. Add a site_media section to help the end user get the necessary css.
2. Add an argument to escape text in the fields.
1. Add an argument to escape text in the fields.

0 comments on commit db5c690

Please sign in to comment.