| 1 | package Data::MuForm::Field::Submit; | ||
| 2 | # ABSTRACT: Submit field | ||
| 3 | |||
| 4 | 9 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 9 | extends 'Data::MuForm::Field'; | |
| 6 | |||
| 7 | 9 | has 'value' => ( is => 'rw', default => 'Save' ); | |
| 8 | 9 | has '+no_update' => ( default => 1 ); | |
| 9 | |||
| 10 | 4 | ▶ | sub build_input_type { 'submit' } |
|
Subroutine
build_input_type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | |||
| 12 | 7 | ▶ | sub no_fif {1} |
|
Subroutine
no_fif: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 13 | 5 | ▶ | sub fif { shift->value } |
|
Subroutine
fif: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | |||
| 15 | sub base_render_args { | ||
| 16 | 5 | ▶ | my $self = shift; |
|
Subroutine
base_render_args: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 17 | 5 | my $args = $self->next::method(@_); | |
| 18 | 5 | $args->{layout_type} = 'element'; | |
| 19 | 5 | $args->{wrapper} = 'none'; | |
| 20 | 5 | return $args; | |
| 21 | } | ||
| 22 | |||
| 23 | 9 | 1; | |
| 24 | |||
| 25 | __END__ | ||
| 26 | |||
| 27 | =pod | ||
| 28 | |||
| 29 | =encoding UTF-8 | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Data::MuForm::Field::Submit - Submit field | ||
| 34 | |||
| 35 | =head1 VERSION | ||
| 36 | |||
| 37 | version 0.04 | ||
| 38 | |||
| 39 | =head1 AUTHOR | ||
| 40 | |||
| 41 | Gerda Shank | ||
| 42 | |||
| 43 | =head1 COPYRIGHT AND LICENSE | ||
| 44 | |||
| 45 | This software is copyright (c) 2017 by Gerda Shank. | ||
| 46 | |||
| 47 | This is free software; you can redistribute it and/or modify it under | ||
| 48 | the same terms as the Perl 5 programming language system itself. | ||
| 49 | |||
| 50 | =cut | ||