fragment menu [ string { "DUMMY" } ];
fragment sidebar [ string { "Sidebar Shit" } ];
fragment header [ string { "DUMMY" } ];
- fragment main_content [ viewport over func('viewport', 'inner')];
+ fragment main_content [ viewport => over func('viewport', 'inner')];
};
class ActionForm, which {
fragment widget [ qw/header field_list buttons footer/ ];
- fragment field_list [field over func('viewport','ordered_fields')];
+ fragment field_list [field => over func('viewport','ordered_fields')];
fragment field [ 'viewport' ];
#move button logic here
class Collection, which {
fragment widget [ qw/label list/ ];
fragment label [ string { $_{viewport}->label } ];
- fragment list [ item over func('viewport', 'value_names') ];
+ fragment list [ item => over func('viewport', 'value_names') ];
fragment item [ string { $_ } ];
};
class List, which {
fragment widget [ qw/label list item/ ];
fragment label [ string { $_{viewport}->label } ];
- fragment list [ item over func('viewport', 'value_names') ];
+ fragment list [ item => over func('viewport', 'value_names') ];
fragment item [ string { $_ } ];
};
fragment field [qw/available_values action_buttons selected_values current_values/];
- fragment current_values [ hidden_value over func('viewport', 'current_value_choices') ];
+ fragment current_values [ hidden_value => over func('viewport', 'current_value_choices') ];
fragment hidden_value [ string { $_->{value} } ];
- fragment available_values [ option over func('viewport', 'available_value_choices') ];
- fragment selected_values [ option over func('viewport', 'current_value_choices') ];
+ fragment available_values [ option => over func('viewport', 'available_value_choices') ];
+ fragment selected_values [ option => over func('viewport', 'current_value_choices') ];
fragment option [string {"DUMMY"}], { v_value => sub {$_->{value}}, v_name => sub {$_->{name}} };
fragment action_buttons [ string {"DUMMY"} ];
class ChooseOne is 'Reaction::UI::Widget::Field', which {
- fragment field [ option over func('viewport', 'value_choices') ],
+ fragment field [ option => over func('viewport', 'value_choices') ],
{ is_required => sub{ $_{viewport}->attribute->required } };
fragment option [string {"DUMMY"}],
class HiddenArray is 'Reaction::UI::Widget::Field', which {
- fragment field [ item over func('viewport', 'value') ];
+ fragment field [ item => over func('viewport', 'value') ];
fragment item [ string { $_ } ];
};
fragment widget [ qw/header body footer/ ];
fragment header [ 'header_row' ];
- fragment header_row [ header_cell over func('viewport', 'field_order'),
+ fragment header_row [ header_cell => over func('viewport', 'field_order'),
{ labels => func(viewport => 'field_labels') } ];
fragment header_cell [ string { $_{labels}->{$_} } ], { field_name => $_ };
fragment footer [ 'footer_row' ];
- fragment footer_row [ footer_cell over func('viewport', 'field_order'),
+ fragment footer_row [ footer_cell => over func('viewport', 'field_order'),
{ labels => func(viewport => 'field_labels') } ];
fragment footer_cell [ string { $_{labels}->{$_} } ], { field_name => $_ };
- fragment body [ viewport over func('viewport','entities')];
+ fragment body [ viewport => over func('viewport','entities')];
};
class Entity, which {
#this could be flattened if i could do:
- # fragment widget [field over sub{ $_{self}->viewport->fields } ];
+ # fragment widget [field => over sub{ $_{self}->viewport->fields } ];
#to be honest, I think that the key viewport should be available by default in %_
fragment widget [ 'field_list' ];
- fragment field_list [ field over func('viewport', 'fields') ];
+ fragment field_list [ field => over func('viewport', 'fields') ];
fragment field [ 'viewport' ];
};
#should I use inheritance here??
class WithActions, which {
fragment widget [ qw(field_list actions) ];
- fragment field_list [ field over func('viewport', 'fields') ];
+ fragment field_list [ field => over func('viewport', 'fields') ];
fragment field [ 'viewport' ];
- fragment actions [ action over func(viewport => 'actions')];
+ fragment actions [ action => over func(viewport => 'actions')];
fragment action [ 'viewport' ];
};
fragment last_page [ string{ "Last" } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_{last_page} } ) } };
- fragment page_list [ page over $_{page_list} ];
+ fragment page_list [ page => over $_{page_list} ];
fragment page [ string{ $_ } ],
{ uri => sub{ $_{self}->connect_uri( {page => $_ } ) } };
- fragment actions [ action over func(viewport => 'actions') ];
+ fragment actions [ action => over func(viewport => 'actions') ];
fragment action [ 'viewport' ];
fragment header_cell [ string { $_{labels}->{$_} } ],
class ObjectView, which {
fragment widget [ 'field_list' ];
- fragment field_list [ field over func('viewport', 'ordered_fields') ];
+ fragment field_list [ field => over func('viewport', 'ordered_fields') ];
fragment field [ 'viewport' ];
};
class Collection, which {
fragment widget [ qw/list/ ];
- fragment list [ item over func('viewport', 'value_names') ];
+ fragment list [ item => over func('viewport', 'value_names') ];
fragment item [ string {""} ], { value => $_ };
};
class List, which {
fragment widget [ qw/list/ ];
- fragment list [ item over func('viewport', 'value_names') ];
+ fragment list [ item => over func('viewport', 'value_names') ];
fragment item [ string {""} ], { value => $_ };
};