/[Arh]/lib/Arh/View/Materials.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Arh/View/Materials.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25 by dpavlin, Sat Dec 1 00:23:26 2007 UTC revision 29 by dpavlin, Mon Dec 10 15:16:52 2007 UTC
# Line 65  template 'view' => sub :CRUDView { Line 65  template 'view' => sub :CRUDView {
65          div {          div {
66                  { class is 'form_field' };                  { class is 'form_field' };
67                  if ( $record->current_user_can('delete') && $self->current_user->editing ) {                  if ( $record->current_user_can('delete') && $self->current_user->editing ) {
68                          hyperlink(                          outs_raw( $delete->button(
69                                  label   => _("Delete"),                                  label   => _("Delete material"),
70                                  class   => "float-crud-button",                                  class   => "float-crud-button button-delete",
71                                  onclick => {                                  onclick => {
72                                          submit => $delete,                                          submit => $delete,
73                                          confirm => _('Really delete?'),                                          confirm => _('Really delete?'),
# Line 76  template 'view' => sub :CRUDView { Line 76  template 'view' => sub :CRUDView {
76                                          args => { id => $id },                                          args => { id => $id },
77                                  },                                  },
78                                  as_button => 1,                                  as_button => 1,
79                          );                          ));
80                  };                  };
81                  label { { class is 'label' } _("Material") };                  label { { class is 'label' } _("Material") };
82                  span { $record->material->name };                  span { $record->material->name };
# Line 105  template 'new_item' => sub { Line 105  template 'new_item' => sub {
105      div {      div {
106          { class is 'form_field' };          { class is 'form_field' };
107                  hyperlink(                  hyperlink(
108                          label   => _("Add"),                          label   => _("Add material"),
109                          class   => "float-crud-button",                          class   => "float-crud-button button-add",
110                          onclick => [                          onclick => [
111                                  {                                  {
112                                          submit => $create,                                          submit => $create,

Legend:
Removed from v.25  
changed lines
  Added in v.29

  ViewVC Help
Powered by ViewVC 1.1.26