CatalystX-CRUD-YUI

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

 - allow for per-session prefs
 - make tab label different than viewable label
 - pass tabindex to autocomplete field maker
 - bump default yui version and set default var types if not using
   tt_config.tt

0.005 16 Sept 2008
 - add missing generic crud/count.tt file to flesh out API support
 - fix bug in form.tt with generating url for related foreign object.
 - fix bug in form.tt to allow related_value map to use non-unique column
 - add calendar popup feature to Date and DateTime field types
 - add missing POD to TT and Serializer

0.004 11 Sept 2008
 - added configure option to hide PK columns in DataTable
 - support core API changes to param names
 - add fuzzy_search() and hide_pk_columns() config opts in Controller
 - flesh out Controller docs
 - add end() RenderView method in Controller based on cxc-fmt req param
 - switch to Module::Install
 - add TabView to set of core YUI components and switch relationships to

lib/CatalystX/CRUD/YUI/TT/crud/form.tt  view on Meta::CPAN

END;

DEFAULT oid = object_id;
IF (oid);
    oid = c.controller.make_primary_key_string(object) || 0;
END;

USE Autoformat( all = 1 );  # for textarea readonly

%]
[% BLOCK datetime_popup %]
[% SET id = field.id %]
<span class="calendar_container" id="[% id %]_calendar_container"><img class='calendar'
     src='[% CalendarIconUrl %]'
     onclick='YAHOO.crud.datetime_picker("[% id %]")'
     alt="calendar icon" />
</span>
[% END %]
[% BLOCK date_popup %]
[% SET id = field.id %]
<span class="calendar_container" id="[% id %]_calendar_container">
<img class='calendar'
     src='[% CalendarIconUrl %]'
     onclick='YAHOO.crud.date_picker("[% id %]")'
     alt="calendar icon" />
</span>
[% END %]

[% IF (error || form.error) %]

lib/CatalystX/CRUD/YUI/TT/crud/form.tt  view on Meta::CPAN

                thopen;
                t.xhtml_label;
                thclose;
                tdopen;
                t.xhtml;
                tdclose;
            ELSE;
                field.xhtml;
            END;
                  
        # Dates and DateTimes get a popup calendar
        ELSIF field.isa('Rose::HTML::Form::Field::DateTime');
            thopen;
            field.xhtml_label;
            thclose;
            tdopen;
            field.xhtml;
            PROCESS datetime_popup;
            tdclose;
            
        ELSIF field.isa('Rose::HTML::Form::Field::Date');
            thopen;
            field.xhtml_label;
            thclose;
            tdopen;
            field.xhtml;
            PROCESS date_popup;
            tdclose;
            
        # default
        ELSE;
            thopen;           
            field.xhtml_label;
            thclose;
            tdopen;
            field.xhtml;
            PROCESS crud/related_field_link.tt;

lib/CatalystX/CRUD/YUI/TT/static/css/crud/pager.css  view on Meta::CPAN

.yui-skin-sam a.yui-pg-next:hover,
.yui-skin-sam a.yui-pg-last.hover,
.yui-skin-sam a.yui-pg-last:hover
{
    background-color: #ffdd77;
    color: #7a0019;
    border: 1px solid #7a0019;
}


/* pager popup */
form.crud div.pager_wrapper select,
#results select.yui-pg-rpp-options
{
    float: none;
    margin: 0;
    padding: 0;
}

lib/CatalystX/CRUD/YUI/TT/static/css/crud/panel.css  view on Meta::CPAN

     cursor: se-resize;

}

#panel_msg, .message {
    font-weight: bold;
    color: green;
}


/* popup panels */
#addListPanel.yui-panel .hd,
#links_panel_container .hd,
#daily_schedule_panel .hd
{
    background: #7a0019;
    text-align:center;
    border: 1px solid #ffdd77;
    color: #fff;
    font-size: 110%;
}

lib/CatalystX/CRUD/YUI/TT/static/js/crud.js  view on Meta::CPAN

}
        

YAHOO.crud.toggle_link = function(id_to_toggle, link_id) {
    YAHOO.crud.toggle_class_hidden(id_to_toggle);
    YAHOO.crud.toggle_class_hidden(link_id);
    return false;   // so the click is not followed on a href
}

YAHOO.crud.datetime_picker = function(id) {
    YAHOO.crud.make_calendar_popup(id, true);
}

YAHOO.crud.date_picker = function(id) {
    YAHOO.crud.make_calendar_popup(id);
}

YAHOO.crud.make_calendar_popup = function(id, set_time) {

    var Dom = YAHOO.util.Dom;

    // Create an Overlay instance to house the Calendar instance
    var oCalendarMenu = new YAHOO.widget.Overlay("calendar_for_" + id, { zIndex: 99 });
    
    /*
         Create an empty body element for the Overlay instance in order 
         to reserve space to render the Calendar instance into.
    */



( run in 2.399 seconds using v1.01-cache-2.11-cpan-364913b4093 )