-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import of CFRANKS/HTML-FormFu-0.07003 from CPAN.
gitpan-cpan-distribution: HTML-FormFu gitpan-cpan-version: 0.07003 gitpan-cpan-path: CFRANKS/HTML-FormFu-0.07003.tar.gz gitpan-cpan-author: CFRANKS gitpan-cpan-maturity: released
- Loading branch information
Carl Franks
authored and
Gitpan
committed
Oct 26, 2014
1 parent
557c81a
commit ce92d13
Showing
20 changed files
with
304 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More tests => 1; | ||
|
||
use HTML::FormFu; | ||
|
||
my $form = HTML::FormFu->new( | ||
{ tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } } ); | ||
|
||
$form->load_config_file('t/elements/checkboxgroup_attributes_escaped.yml'); | ||
$form->process; | ||
|
||
my $field = $form->get_field('foo'); | ||
|
||
my $html = qq{<fieldset class="checkboxgroup"> | ||
<span> | ||
<span myattr="escape&container"> | ||
<input name="foo" type="checkbox" value="1" myattr="escape&attr" /> | ||
<label myattr="escape&label">First</label> | ||
</span> | ||
<span> | ||
<input name="foo" type="checkbox" value="2" myattr="noescape&" /> | ||
<label>Second</label> | ||
</span> | ||
</span> | ||
</fieldset>}; | ||
|
||
is( "$field", $html ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
elements: | ||
- type: Checkboxgroup | ||
name: foo | ||
options: | ||
- value: 1 | ||
label: 'First' | ||
attributes: | ||
myattr: 'escape&attr' | ||
label_attributes: | ||
myattr: 'escape&label' | ||
container_attributes: | ||
myattr: 'escape&container' | ||
|
||
- value: 2 | ||
label: 'Second' | ||
attributes_xml: | ||
myattr: 'noescape&' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
use strict; | ||
use warnings; | ||
|
||
use Test::More tests => 1; | ||
|
||
use HTML::FormFu; | ||
|
||
my $form = HTML::FormFu->new( | ||
{ tt_args => { INCLUDE_PATH => 'share/templates/tt/xhtml' } } ); | ||
|
||
$form->load_config_file('t/elements/radiogroup_attributes_escaped.yml'); | ||
$form->process; | ||
|
||
my $field = $form->get_field('foo'); | ||
|
||
my $html = qq{<fieldset class="radiogroup"> | ||
<span> | ||
<span myattr="escape&container"> | ||
<input name="foo" type="radio" value="1" myattr="escape&attr" /> | ||
<label myattr="escape&label">First</label> | ||
</span> | ||
<span> | ||
<input name="foo" type="radio" value="2" myattr="noescape&" /> | ||
<label>Second</label> | ||
</span> | ||
</span> | ||
</fieldset>}; | ||
|
||
is( "$field", $html ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
elements: | ||
- type: Radiogroup | ||
name: foo | ||
options: | ||
- value: 1 | ||
label: 'First' | ||
attributes: | ||
myattr: 'escape&attr' | ||
label_attributes: | ||
myattr: 'escape&label' | ||
container_attributes: | ||
myattr: 'escape&container' | ||
|
||
- value: 2 | ||
label: 'Second' | ||
attributes_xml: | ||
myattr: 'noescape&' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.