diff --git a/README.rst b/README.rst index f0587a4..bafdbdd 100644 --- a/README.rst +++ b/README.rst @@ -12,19 +12,22 @@ relate to. How --- -Clone the repo and copy the folder of templates that you want to use to your current project's template folder, renaming it to -``uni_form``.:: +Install::: - cp -r django-uni-form-contrib/twitter-bootstrap /templates/uni_form + pip install -e git://github.com/bmihelac/django-uni-form-contrib.git@make-django-app#egg=uni_form_contrib -Oh, you probably won't want to include ``django-uni-form``'s media, either, so take it out of your templates. +Add ``uni_form_contrib.twitter_bootstrap`` application to ``INSTALLED_APPS`` in +settings.py **before** ``uni_form`` so django will pick this templates instead +of default ``uni_form`` templates. Who --- Current contributors are: - * `Kenneth Love `_. + * `Kenneth Love `_ + + * `Bojan Mihelac `_ License ------- diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..4a47a0a --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +from setuptools import setup, find_packages +import os + + +setup( + name="django-uni-form-contrib", + description="Contributed templates for django-uni-form library", + long_description=open(os.path.join(os.path.dirname(__file__), + 'README.rst')).read(), + version="0.0.1", + author="Kenneth Love", + packages=find_packages(), +) + diff --git a/templates/twitter-bootstrap/includes.html b/templates/twitter-bootstrap/includes.html deleted file mode 100644 index b42a409..0000000 --- a/templates/twitter-bootstrap/includes.html +++ /dev/null @@ -1,6 +0,0 @@ -{% comment %} -This is used by the 'uni_form_setup' template tag to identify where to grab media files. -{% endcomment %} - - - diff --git a/uni_form_contrib/__init__.py b/uni_form_contrib/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/uni_form_contrib/twitter_bootstrap/__init__.py b/uni_form_contrib/twitter_bootstrap/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/uni_form_contrib/twitter_bootstrap/models.py b/uni_form_contrib/twitter_bootstrap/models.py new file mode 100644 index 0000000..e69de29 diff --git a/templates/twitter-bootstrap/betterform.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/betterform.html similarity index 100% rename from templates/twitter-bootstrap/betterform.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/betterform.html diff --git a/templates/twitter-bootstrap/errors.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/errors.html similarity index 100% rename from templates/twitter-bootstrap/errors.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/errors.html diff --git a/templates/twitter-bootstrap/errors_formset.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/errors_formset.html similarity index 100% rename from templates/twitter-bootstrap/errors_formset.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/errors_formset.html diff --git a/templates/twitter-bootstrap/field.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/field.html similarity index 100% rename from templates/twitter-bootstrap/field.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/field.html diff --git a/templates/twitter-bootstrap/field.strict.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/field.strict.html similarity index 100% rename from templates/twitter-bootstrap/field.strict.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/field.strict.html diff --git a/uni_form_contrib/twitter_bootstrap/templates/uni_form/includes.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/includes.html new file mode 100644 index 0000000..4d7d698 --- /dev/null +++ b/uni_form_contrib/twitter_bootstrap/templates/uni_form/includes.html @@ -0,0 +1,4 @@ +{% comment %} +This is used by the 'uni_form_setup' template tag to identify where to grab media files. +{% endcomment %} + diff --git a/templates/twitter-bootstrap/multifield.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/multifield.html similarity index 100% rename from templates/twitter-bootstrap/multifield.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/multifield.html diff --git a/templates/twitter-bootstrap/uni_form.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/uni_form.html similarity index 100% rename from templates/twitter-bootstrap/uni_form.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/uni_form.html diff --git a/templates/twitter-bootstrap/uni_formset.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/uni_formset.html similarity index 100% rename from templates/twitter-bootstrap/uni_formset.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/uni_formset.html diff --git a/templates/twitter-bootstrap/whole_uni_form.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/whole_uni_form.html similarity index 100% rename from templates/twitter-bootstrap/whole_uni_form.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/whole_uni_form.html diff --git a/templates/twitter-bootstrap/whole_uni_formset.html b/uni_form_contrib/twitter_bootstrap/templates/uni_form/whole_uni_formset.html similarity index 100% rename from templates/twitter-bootstrap/whole_uni_formset.html rename to uni_form_contrib/twitter_bootstrap/templates/uni_form/whole_uni_formset.html