From 89e182038140f10a8b61c0aa2da7927a1c1e8e16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 4 Sep 2014 10:50:53 +0200 Subject: [PATCH] README: add general description and documentation --- README.txt | 52 ++++++++++++++++++++++++++++++++++++++++++++++------ setup.py | 2 +- 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/README.txt b/README.txt index d06601d..e349c3e 100644 --- a/README.txt +++ b/README.txt @@ -1,5 +1,18 @@ -Configuration -============= +===== +Gadjo +===== + +Gadjo is a base template for Django applications, tailored for +management interfaces, built to provide a nice and modern look, while +using progressive enhancement and responsive designs to adapt to +different environments. + + +Usage +===== + +Make your application base template {% extends "gadjo/base.html" %}. + You should add gadjo.finders.XStaticFinder to STATICFILES_FINDERS, @@ -14,13 +27,40 @@ tuples; for example: CDNS = [('google', 'https')] -Usage -===== - -Make your application base template {% extends "gadjo/base.html" %}. +Additional static files +------------------------ Additional static files libraries can be added via INSTALLED_APPS, for example 'xstatic.pkg.jquery_tablesorter'; its static files can then be referred in a template using the xstatic template tag: {% xstatic 'jquery_tablesorter' 'jquery.tablesorter.js' %} + + +Progressive enhancement -- Dialogs +---------------------------------- + +Links marked with rel="popup" will be opened into dialog boxes. + +The dialog title is extracted from "#appbar h2" (this selector can be +changed with a @data-title-selector attribute on the anchor tag). + +The dialog content is extracted from "form" (this selector can be +changed with a @data-selector attribute). + +Buttons (both