Package: ztfy.skin
ContentsWhat is ztfy.skin ?How to use ztfy.skin ?Changelog0.6.230.6.220.6.210.6.200.6.190.6.180.6.170.6.160.6.150.6.140.6.130.6.120.6.110.6.100.6.9.10.6.90.6.8.10.6.80.6.70.6.60.6.50.6.40.6.30.6.20.6.10.6.00.5.210.5.200.5.190.5.180.5.170.5.160.5.150.5.140.5.130.5.120.5.110.5.100.5.90.5.80.5.70.5.60.5.50.5.40.5.30.5.20.5.10.5.00.4.100.4.90.4.80.4.70.4.60.4.50.4.40.4.30.4.20.4.10.4.00.3.60.3.50.3.40.3.30.3.20.3.10.3.00.2.90.2.80.2.70.2.60.2.50.2.40.2.30.2.20.2.10.20.1.30.1.20.1.10.1What is ztfy.skin ?ZTFY.skin is the first ZTFY-based management interface.It’s a set of base classes used by many ZTFY packages, mainly for management purpose.Currently available classes include:ZTFY layer and skinadd and edit forms, including AJAX dialogsdate and datetime widgetsviewlet managermenu and menu itemsMost of ZTFY.skin base classes are based on z3c.* packages classes, including:z3c.form, z3c.formjs and z3c.formuiz3c.templatez3c.menuz3c.layer.pageletHow to use ztfy.skin ?ztfy.skin usage is described via doctests in ztfy/skin/doctests/README.txtChangelog0.6.23changed AJAX protocol when checking for absolute URLsswitched ZTFY.skin.js to strict mode0.6.22corrected dynamic CSS loading function0.6.21modified ‘RELOAD’ status in forms callbacks to avoid calling “window.location.reload()” which can break
several jQuery plug-ins (notably “jquery-multiselect”)0.6.20added check against ZTFY.form when initializing download helper0.6.19use “window.location.reload()” instead of updating “window.location.href” on “RELOAD” post response0.6.18updated requirements0.6.17move common interfaces and adapters to “ztfy.baseskin” package. Impact on existing code should still be minimal as
matching interfaces and classes are still imported for compatibility reason…0.6.16added custom ordered select input widget template using JQuery to avoid IE bug0.6.15don’t load JQuery-progressbar plug-in when form doesn’t contain progress framecheck AJAX error message before displaying error dialog0.6.14check for pages using JQuery-layout plug-in before calling translations script
to avoid flickering when layout is created0.6.13fixed Javascript typo error in french translation stringsadded error management callback in $.ZTFY.getScript() functionchanged skin scripts initialization order0.6.12updated button style in display formadded JQuery-datatables plug-in in ZTFY default widgetsadd label on fieldset’s legend containing a checkboxadd URL in dialog’s data attributes0.6.11updated buttons styleadded hints on dialog’s close link0.6.10updated DatesRangeDataConverter to correctly handle 4 digits years0.6.9.1updated locales0.6.9added “button” data argument to date and datetime widgets0.6.8.1build minified version of javascript file0.6.8updated small ZTFY download helper function0.6.7added optional “handler” argument in $.ZTFY.dialog methods to specify name of a custom AJAX handleradded <form> tag in container views when containing actionssmall CSS updates0.6.6remove empty labels from forms templatesadded AJAX download helper0.6.5remove BODY scroll position from JQuery multiselect widgets top position when using these components
in dialogs0.6.4extract “workflow.manager” viewlets manager from ZTFY.workflow package to remove cross references0.6.3always disable « Enter » key in dialog forms inputs, and redirect it to first action button click0.6.2move ZTFY.blog ‘search’ JSON-RPC function to ZTFY.skin with name ‘searchByTitle’move ZTFY.blog internal references javascript functions to ZTFY.skinsmall ZCML refactoring0.6.1extract ‘skin:’ and ‘metas:’ TALES namespaces from ZTFY.blog0.6.0use new ZTFY.base package for generic ZTFY content featuresinclude many generic interfaces, components and adapters from ZTFY.blog package
to remove unneeded dependencies of other packages with ZTFY.blog0.5.21added AJAX start/stop functions callbacks0.5.20added option on TextLineList input widget to disable action of backspace key0.5.19changed help and warning messages colors0.5.18small CSS updates0.5.17added “nochange_output” and “changes_output” on add and edit dialog formsadded “with_self” argument to “getForms()” methodupdated CSS and javascript code to handle JQuery multiselect widgets position inside dialogs
containing an overflow0.5.16added option to use a checkbox as a group switcher instead of only “+” signadded “small” buttons style0.5.15include legend height in viewspace height computeadd form data attribute to disable check of “submitted” flag0.5.14status message style updateupdated AJAX errors display code0.5.13corrected display of TextLineList default valuechanged place of dialog status messagedefine relative CSS position for widgets containeruse better generic method to calculate max height of dialogs view spaceadd generic class on actions containeradded new FormObjectCreatedEvent to be fired after object creation is finished in add forms0.5.12corrected date and datetime widgets pattern conversion between Python and Javascript0.5.11corrected JQuery-datetime resources download for english language0.5.10add form attribute to display hints on input widgetssmall changes in JQuery multiselect plug-in search arguments management0.5.9add HTTP header cache control directive in dialog views to disable IE cachecheck result format in AJAX forms callbacks to automatically convert string results
to JSON (required for IE)don’t show required fields markers on widgets in display mode0.5.8add check againt missing attribute in callback function used in JQuery-multiselect plug-inremoved attribute in TextLineList input widget which prevented user to enter several valuesupdated locales0.5.7set response status to 401 on login formadded custom layout for login formexclude hidden input fields when creating info tipsadd new IDialogTitle interface so that any editor dialog can define it’s own title
via an optional adapteradded base container view class which doesn’t force back-office skin0.5.6corrected javascript test in form submit callbacksnew CSS classes0.5.5small correction in TextLineList widget template0.5.4modified and extended fancybox data APIupdated CSS stylesadded support for submit callbacks on each widgetremoved tests relative to IE browserallow HTML code in widgets hintsadded base ISkinnable interface and traverser for contents managing custom skinsmoved several skin-related classes and interfaces from ZTFY.blog package0.5.3re-define package resourcesadd new “$.ZTFY.getScript()” function which can use browser cacheuse browser cache when loading translations scriptsadd control for AJAX submit callbacks returning null values without error messageadded checks for missing JQuery plug-ins0.5.2add custom tables batch provider0.5.1allow several plug-ins in a single HTML element, separated by spacescorrection in getCSSClass() method of InnerContainerBaseView0.5.0initialize new data APImake all widgets compatible with data API and javascript code movable to page bottommove custom widgets from ZTFY.utils package0.4.10add attributes to ISubFormViewlet to make them switchableupdate JQuery selectors for version 1.7+update scroll markers position when an Ajax form generates a new status messageinclude dialog’s help to compute maximum viewspace heightchanges in $.ZTFY.form.initHints() functioninclude sub-forms and tab-forms in main form view spacesmall style changes on legends0.4.9remove relative position on viewspace to enable JQuery-multiselect plug-in to work
correctly inside dialogs0.4.8added indicator to viewspace dialog when a scrollbar is required to show
that hidden input fields are availablemove login form from ZTFY.zmi packageinclude hints initialization code in javascript functionsmall changes in error and status messages style0.4.7small change on batch links stylechanged hints style0.4.6changed style of container batch linkschanged style of forms tabs0.4.5small dialogs overlay CSS updatecorrection in ++back++ namespace traverser0.4.4use generic marker interface and ++back++ namespace to identify contents
with custom back-office properties0.4.3changed viewlets template layer to make them easily reusable0.4.2added optional ‘message’ attribute in AJAX edit and add forms outputadded ‘status_class’ forms attribute to get status message classcorrected edit form errors handling callbetter handling of custom back-office properties in main layoutenhanced title viewletmake dialogs draggable and adapt their inner size to window height0.4.1corrected small syntax error in containers template0.4.0big CSS and small templates updates to create a new back-office skinuse viewlets managers to handle forms and widgets prefix and suffixadded hints on forms fields0.3.6use ‘BASE’ header if available instead of window.location.href to get AJAX calls targetadd callback argument to “$.ZTFY.dialog.open()” to handle opening errors0.3.5corrected URL replace function with regexpadded located boolean terms0.3.4add class container.InnerContainerBaseView as base class used to handle tables displayed
inside another viewadd interface and viewlet manager to handle custom actions viewletsadd attribute for empty message and change default legend locationadd sub-form fieldset CSS class supportadd condition on submit buttons to display them only when dialog is in input mode and
at least one widget is also in input modeadded “data” parameter in AJAX add and edit dialog functionsadded high batch size in ordered containeradded “indexOf” method to Array prototype if missing (IE)added widgets prefix and suffix support in sub-formsadded widgets groups support in main forms, which can be used to group widgets with
common fieldset and legendadded custom display widgets for text and textarea fieldscorrected changes management in EditForm subforms handling custom update methodcorrected translation of forms help messagechanged forms templates prefix and suffix managementinitialize support for viewlets-based sub-formssmall changes in JQuery dialogs managementsmall CSS updatesremoved macros-based form template0.3.3add slots for forms prefix and suffixdefine default template and layout for templates based pagesadd interface and viewlet manager to handle custom actions viewletsadd attribute for empty containers message and change default legend location0.3.2changed package source layout0.3.1upgrade dialog overlay effect to match release 1.2.4 of JQuery-Tools0.3.0large refactoring to include many “generic” functions (forms, dialogs, javascript
code…) extracted from ztfy.blog package back-officechanged display of forms statussmall changes on display formssmall CSS updates0.2.9changed display forms templateadded fixed width textarea display widget0.2.8added “autocomplete” attribute on formschanged template of password widget0.2.7added default favicon0.2.6add missing IDialog and IButtonForm interfaces on DialogDisplayForm classadd possible prefix and suffix in dialogs viewsmodify DialogDisplayForm to handle actions0.2.5reset default form’s progress bar update interval to default (1000 ms) ; previous one
was setup for testing and debugging…switch from $.getJSON() in $.ajax() in progress frame to handle errors correctly0.2.4integration of JQuery’s progress bar plug-in in upload forms ; this plug-in
is based on Apache2’s upload progress module but forms still function without it.
More info :https://github.com/drogus/apache-upload-progress-module/added check if forms submit code to prevent several posts on double clicksmall upgrades on CSS and HTML stylings0.2.3modified #tabforms CSS styleadded small javascript resource0.2.2switch from zc.resourcelibrary to fanstatic0.2.1removed “zope.app” packages dependencies0.2switched to ZTK-1.1.2removed tooltips in forms and dialogsmajor changes in sub-forms handlingremove macros from z3c.template based form template0.1.3added ‘ContentProviderBase’ base class for template based content providers0.1.2added ‘visible’ attribute on IBreadcrumbInfo interface0.1.1added MANIFEST.in for source package constructionoverride form.addForm method to be able to translate buttons label0.1Initial release