view release on metacpan or search on metacpan
share/po/ru.po
share/po/zh_CN.po
share/po/zh_TW.po
share/web/static/css/app-base.css
share/web/static/css/app-late.css
share/web/static/css/app.css
share/web/static/css/autocomplete.css
share/web/static/css/autohandler
share/web/static/css/base.css
share/web/static/css/calendar.css
share/web/static/css/combobox.css
share/web/static/css/context-menus.css
share/web/static/css/crud.css
share/web/static/css/datetime.css
share/web/static/css/facebox.css
share/web/static/css/forms.css
share/web/static/css/jquery.autocomplete.css
share/web/static/css/jquery.jgrowl.css
share/web/static/css/jquery.timepickr.css
share/web/static/css/keybindings.css
share/web/static/css/main.css
share/web/static/images/yui/menu/menuitem_submenuindicator_disabled.png
share/web/static/images/yui/menu/menuitem_submenuindicator_selected.png
share/web/static/images/yui/tabview/loading.gif
share/web/static/images/yui/us/my/bn/x_d.gif
share/web/static/images/yui/us/tr/callt.gif
share/web/static/images/yui/us/tr/calrt.gif
share/web/static/js/app.js
share/web/static/js/app_behaviour.js
share/web/static/js/behaviour.js
share/web/static/js/calendar.js
share/web/static/js/combobox.js
share/web/static/js/context_menu.js
share/web/static/js/css_browser_selector.js
share/web/static/js/cssQuery-jquery.js
share/web/static/js/datetime.js
share/web/static/js/dom-drag.js
share/web/static/js/facebox.js
share/web/static/js/iepngfix.htc
share/web/static/js/iutil.js
share/web/static/js/jifty.js
share/web/static/js/jifty_interface.js
SHA1 e9b28ea5ada7e389fdf2375f0bbc247596d734a3 share/po/ru.po
SHA1 cd1c3ff7ed96861f800a426215479bd245bf1d81 share/po/zh_CN.po
SHA1 eff6cb64a1dbbc8410f396b5bff25dbcea158ac7 share/po/zh_TW.po
SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 share/web/static/css/app-base.css
SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 share/web/static/css/app-late.css
SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 share/web/static/css/app.css
SHA1 e35e6426c1b3b5c38f679dbbde20ca110e371b00 share/web/static/css/autocomplete.css
SHA1 ed7f85ae30ac6ab3899dcde26836df5b767dabac share/web/static/css/autohandler
SHA1 4930c6d3b86ec4056c3b8823f2587bfccec101d1 share/web/static/css/base.css
SHA1 669f07ab36d148383013733d8230d49e7e7b25ec share/web/static/css/calendar.css
SHA1 bf48b6bda86f359b95b29a7c3451a3c1b5721385 share/web/static/css/combobox.css
SHA1 6b4d4cbc063731dabe50356a3560eae6a9f25aef share/web/static/css/context-menus.css
SHA1 bc0b2ce37d22c45db098aac184675dd7da48e424 share/web/static/css/crud.css
SHA1 8502ec862c350b8b8d60d0e27b68ac1d10159701 share/web/static/css/datetime.css
SHA1 c143f5e041fa55239c5bbf379708943a568aa6bf share/web/static/css/facebox.css
SHA1 ca39c0e6be568273723dcb7e90bc484d60f723c4 share/web/static/css/forms.css
SHA1 c3ec7bb4be85863cfbd972cd4e1c799a4fe7d737 share/web/static/css/halos.css
SHA1 2d528b248813f3813104046b04a4d56f1084e0d5 share/web/static/css/jquery.autocomplete.css
SHA1 4e006a2cffac820d2752a2cd5e2fb8e29a78530a share/web/static/css/jquery.jgrowl.css
SHA1 e3fbaa9881d7e669331ee2a173ad45d0c0500138 share/web/static/css/jquery.timepickr.css
SHA1 c7eede0c22f68e4417748bb0903b48195648f4c0 share/web/static/css/keybindings.css
SHA1 25853f6d6f77cfbd28838e17ddce6efe7132889a share/web/static/images/yui/menu/menuitem_submenuindicator_disabled.png
SHA1 be53c75a2b07fce313e8a543c7b07da87430f122 share/web/static/images/yui/menu/menuitem_submenuindicator_selected.png
SHA1 9f8ff9301972e5d0c56ece1e2811d777a94e3f9f share/web/static/images/yui/tabview/loading.gif
SHA1 d2c01c9ded34297020c6f9abb5240e0b2fd8606a share/web/static/images/yui/us/my/bn/x_d.gif
SHA1 88a51e34bc8c5d616b76743a52ad1fe0cae8232e share/web/static/images/yui/us/tr/callt.gif
SHA1 f818910630fc046dbdd6dde2960d3e26c5d4beaf share/web/static/images/yui/us/tr/calrt.gif
SHA1 eb756c931be8ef70fc27ba0046375f32022e3b6d share/web/static/js/app.js
SHA1 ddc0176060f47f9f492baf51d719aa3d2bdbf9f0 share/web/static/js/app_behaviour.js
SHA1 6a629ff8b8c0df3183783c7359458db124d7ba1b share/web/static/js/behaviour.js
SHA1 05421470033cac9502b3e5fad8138c25752d1711 share/web/static/js/calendar.js
SHA1 e9f9931abe8ddf86cf5cfddd1f0e963bb5bf0ccb share/web/static/js/combobox.js
SHA1 42e524bc5149addebf1dcc1bc58a687786689d87 share/web/static/js/context_menu.js
SHA1 5d0bf8ac5567f89baaa79130b59a6a87ae9919ab share/web/static/js/cssQuery-jquery.js
SHA1 64f334065e3d21c8cbf4e43fbfb722b3d39b40f7 share/web/static/js/css_browser_selector.js
SHA1 f710bf937edfabd348cbcb8a1cb85c26c926270c share/web/static/js/datetime.js
SHA1 d542a217ef9c527340d25bfffbccce27927d1259 share/web/static/js/dom-drag.js
SHA1 b4cc2609e484f6a530d39b708a0ea195cbe1ff55 share/web/static/js/facebox.js
SHA1 145fc74db9de38e8529d466f1d75e780c942d454 share/web/static/js/halo.js
SHA1 a9e21867281413be069b480bb5fe22bf0a460d24 share/web/static/js/iepngfix.htc
SHA1 5be9572cfefc6f1d656b2551a4b5acd312337d2d share/web/static/js/iutil.js
SHA1 927c4b4192326fb5357f538a6586e4b1ea23db44 share/web/static/js/jifty.js
debian/rules view on Meta::CPAN
-XPlugin/Userpic -XPlugin::Userpic\
-XPlugin/SiteNews -XPlugin::SiteNews debian/tmp/*
dh_installdocs
dh_installchangelogs Changelog
dh_installdirs -plibjifty-perl usr/share/lintian/overrides
install -m 644 debian/libjifty-perl.lintian-overrides $(CURDIR)/debian/libjifty-perl/usr/share/lintian/overrides/libjifty-perl
dh_perl
dh_compress
dh_fixperms
# fix some mistake in right on web files
chmod 644 $(CURDIR)/debian/libjifty-perl/usr/share/perl5/auto/Jifty/web/static/css/combobox.css
chmod 644 $(CURDIR)/debian/libjifty-plugin-chart-perl/usr/share/perl5/auto/Jifty/plugins/Jifty/Plugin/Chart/web/static/js/PlotKit/excanvas.js
chmod 644 $(CURDIR)/debian/libjifty-perl/usr/share/perl5/auto/Jifty/plugins/Jifty/Plugin/OnlineDocs/web/templates/__jifty/online_docs/autohandler
chmod 644 $(CURDIR)/debian/libjifty-perl/usr/share/perl5/auto/Jifty/plugins/Jifty/Plugin/AdminUI/web/templates/__jifty/admin/_elements/nav
dh_link
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
lib/Jifty/Manual/Actions.pod view on Meta::CPAN
max_length is 30;
param body =>
label is 'Entry',
render as 'Textarea';
};
Now, we can ask the action to render form fields, and it will know how
to display them. But, we can do even better. Let's improve the look of
that C<category> field, by making it a combobox (a combination
dropdown/text field), with some default values available:
# ...
param category =>
label is 'Category',
render as 'Combobox',
available are qw( Personal Work Block );
# ...
But a static list is lame. What we really want is a C<Category> model,
lib/Jifty/Manual/Actions.pod view on Meta::CPAN
my $categories = MyBlog::Model::CategoryCollection->new;
$categories->unlimit;
[{
display_from => 'name',
value_from => 'name',
collection => $categories,
}];
}
...
Now, Jifty will populate the combobox with the result of calling C<name>
on each element in C<$categories>. Alternatively, if you set
C<< value_from => 'id' >>, Jifty would automatically return the C<id> of
the category, for easy database reference. We don't do this with the
combobox, however, since a combobox displays the selected value in its
text field.
See L<Jifty::Action> and L<Jifty::Web::Form::Field> for more fields
you can set in the C<param> declaration, and see L<Jifty::Param::Schema>
for more about the syntax.
=head2 validation
C<Jifty::Action> can automatically validate arguments for you, as
appropriate. If an argument has C<valid_values>, then C<Jifty::Action>
lib/Jifty/Manual/Actions_zhtw.pod view on Meta::CPAN
max_length is 30;
param body =>
label is 'Entry',
render as 'Textarea';
};
Now, we can ask the action to render form fields, and it will know how
to display them. But, we can do even better. Let's improve the look of
that C<category> field, by making it a combobox (a combination
dropdown/text field), with some default values available:
# ...
param category =>
label is 'Category',
render as 'Combobox',
available are qw( Personal Work Block );
# ...
But a static list is lame. What we really want is a C<Category> model,
lib/Jifty/Manual/Actions_zhtw.pod view on Meta::CPAN
my $categories = MyBlog::Model::CategoryCollection->new;
$categories->unlimit;
[{
display_from => 'name',
value_from => 'name',
collection => $categories,
}];
}
...
Now, Jifty will populate the combobox with the result of calling C<name>
on each element in C<$categories>. Alternatively, if you set
C<< value_from => 'id' >>, Jifty would automatically return the C<id> of
the category, for easy database reference. We don't do this with the
combobox, however, since a combobox displays the selected value in its
text field.
See L<Jifty::Action> and L<Jifty::Web::Form::Field> for more fields
you can set in the C<param> declaration, and see L<Jifty::Param::Schema>
for more about the syntax.
=head2 validation
C<Jifty::Action> can automatically validate arguments for you, as
appropriate. If an argument has C<valid_values>, then C<Jifty::Action>
lib/Jifty/Manual/UsingCSSandJS.pod view on Meta::CPAN
tag with these classes (mandatory only if the field is
mandatory, of course), where C<$name> is the field's name.
=item preamble
This section is a C<< <span> >> tag filled with a form field's
preamble content that could contain additional instructions for the
user. The content may be set by the C<preamble> accessor method that
is available for every C<Jifty::Web::Form::Field> and its successors.
=item widget, button, button_as_link, combobox,
combo-text, combo-button, combo-list, date, label, password
submit_button, reset, text, hidden, ajaxvalidation,
ajaxcanonicalization, ajaxautocompletes
These class names are used depending on the type of widget getting
rendered.
=item autocomplete
used for the autocomplete div.
lib/Jifty/Web.pm view on Meta::CPAN
jquery_noconflict.js
jquery.jgrowl.js
facebox.js
behaviour.js
jifty.js
jifty_utils.js
jifty_smoothscroll.js
calendar.js
datetime.js
dom-drag.js
combobox.js
key_bindings.js
context_menu.js
yui/yahoo.js
yui/dom.js
yui/event.js
yui/calendar.js
yui/element-beta.js
yui/tabview.js
yui/container.js
yui/menu.js
lib/Jifty/Web/Form/Field.pm view on Meta::CPAN
my $action = $self->action;
return $action ? $self->action->form_field_name( $self->name )
: '';
}
=head2 fallback_name
Return the form field's fallback name. This should be used to create a
hidden input with a value of 0 to accompany checkboxes or to let
comboboxes fall back to the text input if, and only if no value is
selected from the SELECT. (We use this order, so that we can stick the
label and not the value in the INPUT field. To make that work, we also need
to clear the SELECT after the user types in the INPUT.
=cut
sub fallback_name {
my $self = shift;
if ($self->action) {
lib/Jifty/Web/Form/Field/Combobox.pm view on Meta::CPAN
use warnings;
use strict;
package Jifty::Web::Form::Field::Combobox;
use base qw/Jifty::Web::Form::Field/;
=head1 NAME
Jifty::Web::Form::Field::Combobox - Add comboboxes to your forms
=head1 METHODS
=head2 render_widget
Renders the select widget.
=cut
sub render_widget {
my $self = shift;
my $title = $self->title ? qq! title="@{[ $self->title ]}"!
: qq! !;
my $field = <<"EOF";
<nobr>
<span id="@{[ $self->element_id ]}_Container" class="combobox">
<input name="@{[ $self->fallback_name ]}"
id="@{[ $self->element_id ]}"
$title
@{[ $self->_widget_class('combo-text')]}
value="@{[ $self->current_value ]}"
type="text"
size="30"
@{[ $self->javascript ]}
autocomplete="off" /><span id="@{[ $self->element_id ]}_Button"
@{[ $self->_widget_class('combo-button')]}
share/web/static/css/combobox.css view on Meta::CPAN
/*
%# ComboBox styles... some properties like height and width must be dynamically
%# set in the JS (at least for now).
.combobox {
%# border: 2px inset #333;
%# padding-left: 0.5em;
%# padding-bottom: 0.1em;
}
*/
.combobox .combo-button {
/*%# padding: 0 2px 0 2px;*/
padding-top: 2px;
margin: 0;
background: ButtonFace;
color: ButtonText;
border-right: 2px outset ButtonHighlight;
border-bottom: 2px outset ButtonHighlight;
border-top: 1px inset #000;
border-left: 0px inset #fff;
margin-left: 0;
padding-left: 0;
cursor: default;
font-size: 8pt;
}
.combobox .combo-text {
border: 1px inset #333;
margin: 0;
padding: 0;
}
.combobox .combo-list {
z-index: 200;
}
share/web/static/css/main.css view on Meta::CPAN
@import "app-base.css";
@import "base.css";
@import "nav.css";
@import "context-menus.css";
@import "calendar.css";
@import "combobox.css";
@import "keybindings.css";
@import "forms.css";
@import "crud.css";
@import "app.css";
@import "autocomplete.css";
@import "yui/calendar/calendar-core.css";
@import "yui/calendar/calendar.css";
@import "yui/menu/menu-core.css";
@import "yui/menu/menu.css";
@import "notices.css";
t/99-pod-spelling.t view on Meta::CPAN
multi
runtime
LogReload
Postgres
STDERR
Ruslan
Zakirov
dhandler
autohandler
blog
combobox
signup
AccessControl
JS
UUID
superset
dev
namespaces
timestamp
Automagic
CSS
t/99-pod-spelling.t view on Meta::CPAN
html
apache
myapp
AdminMode
BaseURL
CPAN
ServeStaticFiles
www
BLOBs
checkmark
comboboxes
unrendered
classname
abortable
database's
Nagle's
Changelogger
Hiveminder's
Preloading
UI
jGrowl
t/TestApp-Plugin-CompressedCSSandJS/t/css.t view on Meta::CPAN
use strict;
use warnings;
use Jifty::Test::Dist tests => 7;
use Jifty::Test::WWW::Mechanize;
my $server = Jifty::Test->make_server;
my $URL = $server->started_ok;
my $mech = Jifty::Test::WWW::Mechanize->new();
$mech->get_ok("$URL/static/css/main.css","Got main.css");
$mech->content_contains('@import "combobox.css"');
$mech->get_ok("$URL");
ok($mech->content =~ m{<link rel="stylesheet" type="text/css" href="(.*)" /});
my $css_file = $1;
$mech->get_ok($1);
$mech->content_contains('End of combobox.css', 'squished');