forked from pool/perl-HTML-FormHandler
Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-FormHandler?expand=0&rev=41
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
HTML-FormHandler-0.40068.tar.gz
Normal file
3
HTML-FormHandler-0.40068.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eb7b78dda3125752cc8bcc0396d3977fbd28da33d2d44c5042ad6d35d6cde827
|
||||
size 317647
|
||||
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
336
perl-HTML-FormHandler.changes
Normal file
336
perl-HTML-FormHandler.changes
Normal file
@@ -0,0 +1,336 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 23 21:49:10 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Normalize CPAN version
|
||||
See https://github.com/openSUSE/cpanspec/issues/47 for details
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 21 05:33:54 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 0.40068
|
||||
see /usr/share/doc/packages/perl-HTML-FormHandler/Changes
|
||||
|
||||
0.40068 Thu Jul 20, 2017
|
||||
Add RequestToken field
|
||||
Add build_render_list_method
|
||||
Zccept coderefs for date_start, date_end in Date field
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 21 05:32:47 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 0.40067
|
||||
see /usr/share/doc/packages/perl-HTML-FormHandler/Changes
|
||||
|
||||
0.40067 Wed Oct 19, 2016
|
||||
Fixed Text validation checking, to allow deflations and transformations
|
||||
to be applied first.
|
||||
change order of processing 'input_without_param' and 'use_fields_for_input_without_param'
|
||||
fixes problem with not using default for select field
|
||||
fix for deflation of undef value, from ether's pull request 122
|
||||
switch from JSON.pm to JSON::MaybeXS
|
||||
use coercion on 'options' instead of duplicate code in _load_options
|
||||
use [PkgVersion]
|
||||
fix bug in TextCSV field caused by setting error for multiple values in Text field
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 19 05:20:50 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 0.40066
|
||||
see /usr/share/doc/packages/perl-HTML-FormHandler/Changes
|
||||
|
||||
0.40066 Mon Jul 18, 2016
|
||||
Improve Select field option list support
|
||||
Support arrayref-of-arrayref options in a subroutine
|
||||
Allow input_append_button to take input_append_button_element_class
|
||||
Allow attributes to be specified for input_append_button
|
||||
Add comma digit grouping and custom currency symbol
|
||||
Allow input_append_button to take input_append_button_element_class
|
||||
Various minor doc updates
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 23 10:35:10 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 0.40065
|
||||
see /usr/share/doc/packages/perl-HTML-FormHandler/Changes
|
||||
|
||||
0.40065 Sat Mar 19, 2016
|
||||
Ensure Text fields only contain a single value
|
||||
Make it easier to specify a Select field having identical labels and values.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 20 15:57:48 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.40064
|
||||
see /usr/share/doc/packages/perl-HTML-FormHandler/Changes
|
||||
|
||||
0.40064 Thu Sep 17, 2015
|
||||
Don't warn about date format unless set to `date`
|
||||
Wrap checkbox in CheckboxGroup, if requested
|
||||
Create es_es.pm
|
||||
Create ca_es.pm
|
||||
select field invalid value message: encode the select value
|
||||
typo in link to the example app
|
||||
remove css_class from Captcha field
|
||||
|
||||
0.40063 Mon Jun 29, 2015
|
||||
Raised Moose prereq to 2.1403 because 2.0604 causes failing tests
|
||||
|
||||
0.40062 Fri Jun 25, 2015
|
||||
Separate out test using Type::Tiny::Enum to skip_all
|
||||
|
||||
0.40061 Thu Jun 25, 2015
|
||||
Add skip for Type::Tiny::Enum
|
||||
|
||||
0.40060 Wed Jun 24, 2015
|
||||
Field validation can use Type::Tiny subclasses
|
||||
Replace NoTabTests and EOLTests
|
||||
switch from List::AllUtils+List::MoreUtils to List::Util (in core)
|
||||
add render_elementx and renderx methods to allow setting attributes at render time
|
||||
Warning if Date field is html5 and not ISO
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 17:42:35 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.40059
|
||||
see /usr/share/doc/packages/perl-HTML-FormHandler/Changes
|
||||
|
||||
0.40059 Thu Feb 25, 2015
|
||||
Remove clear->item_id that snaked in via merge error
|
||||
Pass subfield name to repeatable element wrapper
|
||||
|
||||
0.40058 Thu Feb 25, 2015
|
||||
add HorizCheckboxGroup for alternative CheckboxGroup rendering
|
||||
minor doc typos
|
||||
do $class->meta->make_immutable after new_with_traits
|
||||
Czech translation
|
||||
'get_errors' synonym for 'errors' on form
|
||||
add repeatable_element_wrapper ability
|
||||
|
||||
0.40057 Fri Aug 1, 2014
|
||||
added support for tag 'inline' in bootstrap3 wrapper
|
||||
add test for inline-checkboxes
|
||||
add test for prefilled with init_object form reuse
|
||||
clear item and init_object which are required for form reuse
|
||||
add failing test for element_class override through build_update_subfields
|
||||
add a bit of doc about handling DBIC new results & 'use_default_over_obj'
|
||||
=encoding utf-8 in Manual/Rendering.pod
|
||||
remove deprecated css_class and input_class attributes
|
||||
add param_to_values method to convert parameters to init_object-like hashref
|
||||
Add code to respect the label_no_filter tag on checkboxes for Bootstrap
|
||||
and the Base widgets.
|
||||
fix bootstrap3 input_append_button
|
||||
Respect label_no_filter on checkbox labels.
|
||||
add Arabic translations
|
||||
use time_zone and locale options in Date field
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 24 06:12:17 UTC 2014 - coolo@suse.com
|
||||
|
||||
- updated to 0.40056
|
||||
use sorted_fields in 'dump_validated'
|
||||
added Type::Tiny support
|
||||
Use alert-danger rather than alert-error with in Bootstrap3
|
||||
Fixes RT#91966 (deprecated way to call enum warning)
|
||||
bug in reloading repeatable fields; skip inactive fields
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 2 20:54:02 UTC 2014 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 0.40055:
|
||||
+ handle SelectCSV field in as_label method of Select field.
|
||||
2014 bug in t/compound/basic.t test (rt91793).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 29 11:06:49 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.40054
|
||||
Check for old unimplemented parameter to wrap_checkbox, and check
|
||||
for existence of option_wrapper
|
||||
add language handle to bootstrap3 tests
|
||||
pass event to repeatable js click handler
|
||||
stop forcing undefined Checkbox fields to 0; didn't allow undef for value
|
||||
different inline class for Bootstrap3 for checkboxes and radios
|
||||
select options: add coercion of arrayref of hashrefs from arrayref of strings
|
||||
allow Date field to use DateTime subclasses
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 25 07:39:49 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.40053
|
||||
Bad version number on prereq
|
||||
allow overriding layout_classes in Bootstrap3 wrapper
|
||||
allow passing in value to 'as_label' method in Select field
|
||||
Update Italian message file
|
||||
Minor doc updates
|
||||
add errors_by_name and errors_by_id to result
|
||||
add Bootstrap3 theme for those using the Bootstrap theme
|
||||
better form-horizontal Bootstrap 3.0 support
|
||||
provide method in result (form_and_field_errors) to return form and field errors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 4 09:11:50 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.40050
|
||||
*** 'widget_tags' in a field have been deprecated for a long time; removing.
|
||||
There are still widget_tags in the form and compound fields.
|
||||
Use 'tags' in a field instead.
|
||||
*** Initial support of Bootstrap3 - still EXPERIMENTAL. Do not use in
|
||||
production yet. Changes in interface may occur over the next few weeks.
|
||||
Supporting Bootstrap 3.0 required a surprising amount of minor refactoring:
|
||||
Bootstrap3 checkboxes and radio elements now have an additional div wrapping them.
|
||||
This required setting flags in the wrapper that could be seen by the
|
||||
field widgets. Used 'wrapper_tags' attribute, which is not the most satisfying
|
||||
solution but does work. The former 'controls' div now doesn't have the
|
||||
'controls' class, but is used for sizing. Added new attribute
|
||||
'element_wrapper_class' to provide these classes. Split out addition of
|
||||
classes to the wrapper and element into 'add_standard_wrapper_classes' and
|
||||
'add_standard_element_classes', because B3.0 now wants 'has-error' and
|
||||
'has-warning' instead of the former 'error' class. 'control-group' was
|
||||
changed to 'form-group'. The 'form-control' class has been added to
|
||||
text, password, textarea, and select fields.
|
||||
Add 'preserve_case' attribute to Email field
|
||||
|
||||
Fixed bug when rendering blocks with 'run' (results)
|
||||
Sort the deflated values of SelectCSV field
|
||||
Allow passing Email::Valid params to Email field
|
||||
Typos fixed
|
||||
Add 'use_init_obj_when_no_accessor_in_item' flag for dual-purpose init_obj
|
||||
|
||||
Add 'options_ref' method for using options in TT templates
|
||||
Add unique messages to field messages hash
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 24 07:28:36 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.40026
|
||||
Add Italian message file
|
||||
Doc tweaks
|
||||
Add errors_by_id and errors_by_name convenience methods
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 5 07:14:12 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.40025
|
||||
Add skip in t/setup_form_config.t unless YAML::Syck (Config::Any)
|
||||
|
||||
0.40024 Tue May 7, 2013
|
||||
Add 'no_option_validation' flag to select field.
|
||||
Remove HtmlArea field. (Has always been broken, and there were complaints about
|
||||
not prereqing HTML::Tidy, which I won't do due to difficulty of installing)
|
||||
Change 'use' of GD::SecurityImage to a 'require'. (Will not prereq this one either.)
|
||||
|
||||
0.40023 Tue Apr 30, 2013
|
||||
Add Brazilian Portuguese translation file
|
||||
Fix bug in process of re-loading repeatables without primary keys after db update
|
||||
Add TextCSV field for multiple values in a text field (useful with js libraries)
|
||||
|
||||
0.40022 Mon Mar 18, 2013
|
||||
Remove 'writeonly' flag from Display field, because fix to not pull
|
||||
values from an item/init_object with that flag meant that values were not
|
||||
being applied to Display fields, when people were relying on that.
|
||||
Switch to using github issues instead of RT
|
||||
|
||||
0.40021 Mon Mar 4, 2013
|
||||
Don't validate disabled fields
|
||||
check for existence of field in match_when before getting $field->fif,
|
||||
improve error message
|
||||
add type_attr to Select field; update t/render/ff.t to use it
|
||||
cleanup select field options_method building
|
||||
|
||||
0.40020 Sun Feb 20, 2013
|
||||
More support for repeatable javascript:
|
||||
Tweak Bootsrap wrapper to check do_wrapper instead of do_label when rendering
|
||||
'controls' div
|
||||
Reminder: It's always a good idea to make your own set of of widgets so that
|
||||
updates don't throw off your rendering. This change was hardly noticeable
|
||||
in the FH testcases, but it's possible you were relying on the old behavior
|
||||
for CSS.
|
||||
Add 'controls_div' to Simple wrapper.
|
||||
Add RmElement example field.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 15 12:05:40 UTC 2012 - coolo@suse.com
|
||||
|
||||
- updated to 0.36003
|
||||
Bug rendering fields with hidden widget where label is rendered.
|
||||
Switch back to no wrapping of hidden fields.
|
||||
|
||||
Fixed bug introduced in last release where rendering roles are overwritten
|
||||
by HTML::FormHandler::Render::Simple being applied on top.
|
||||
Add skip to t/config.t test for Config::Any
|
||||
Set language handle in t/render_errors.t test.
|
||||
|
||||
Add two more widget tags: 'no_auto_fieldset' and 'no_compound_wrapper'
|
||||
Remove automatic addition of 'class="label"' to labels; if you want that
|
||||
behavior, add it in with form sub field_html_attributes.
|
||||
Add 'SKIP' to t/config.t test for Template.
|
||||
Update Captcha so it might actually work.
|
||||
|
||||
Switch to using 'process_attrs' function to process attributes in rendering;
|
||||
*** There were lots of updates to rendering. You should verify your custom
|
||||
rendering, to make sure that nothing has broken. The '_add_html_attributes'
|
||||
method is no longer used.
|
||||
Add shorthand method for setting defaults in fields
|
||||
Add widget_tags 'label_no_colon' & 'wrapper_tag'
|
||||
Update and reorganize TT templates
|
||||
Add flags 'use_defaults_over_obj' & 'use_init_obj_over_item'
|
||||
Add 'num_extra' to Repeatable
|
||||
Update Turkish message file; add Float field
|
||||
Add lazy to 'html' attribute in Display field
|
||||
Add 'label_attr' and 'wrapper_attr' to Field
|
||||
Add 'Array' trait to field_name_space and widget_name_space
|
||||
Bug with selected/checked hash key in Multiple; switch to creating default
|
||||
Bug with repeatable contains; not using full name for accessor.
|
||||
Die if using HTML::FormHandler::Moose without HTML::FormHandler
|
||||
Field::TextArea extends Field::Text to reuse its validations (min/max length)
|
||||
Add is_html5 attribute to forms which causes forms to have the additional
|
||||
HTML 5 attributes which can be used by HTML 5 capable clients for validation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 18 18:32:44 UTC 2011 - coolo@suse.com
|
||||
|
||||
- update to 0.35005
|
||||
* many fixes, see Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 22 07:26:04 UTC 2011 - coolo@opensuse.org
|
||||
|
||||
- updated to 0.33002
|
||||
Accidentally left off compatibility for 'required_message' attribute
|
||||
messages => { required => '...' } is new style and worked
|
||||
|
||||
Remove unnecessary with of HFH::Validate::Actions
|
||||
|
||||
bug - empty_select check defined
|
||||
Add button field, widget, template
|
||||
Check html attributes for definedness not truth
|
||||
Add ability to set field inactive on new & process
|
||||
in addition to setting active
|
||||
Move 'no_render_label' into Field
|
||||
Use form's language_handle in fields
|
||||
Improve PrimaryKey doc
|
||||
Return empty hashref from $form->value instead of undef
|
||||
Merge experimental Wizard into master
|
||||
Render disabled select options
|
||||
Repeatable contains rendering incorrectly, skipping empty elements
|
||||
Add rendering of form_errors to widgets and Render::Simple
|
||||
*** If you were using form_errors (there are none by default)
|
||||
and were using HFH rendering, check for compatibility
|
||||
Allow specifying full class for widget with '+'
|
||||
Document removing wrapper div from Simple wrapper
|
||||
Re-do how field messages are stored and accessed. Use messages => {...}
|
||||
instead of various _message attributes
|
||||
Add utilities in util to pull out class messages and check I18N
|
||||
Update I18N messages files (those that were provided by translators)
|
||||
Change render_filter Coderef setting because of leak;
|
||||
*** Possible incompatibility: if you have a form render_filter,
|
||||
change to function instead of method
|
||||
Change _localize to a Coderef to allow easier changing.
|
||||
*** If you have a custom _localize method, check for compatibility
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 19 13:38:50 UTC 2011 - coolo@novell.com
|
||||
|
||||
- initial package 0.32005
|
||||
* created by cpanspec 1.78.03
|
||||
|
||||
292
perl-HTML-FormHandler.spec
Normal file
292
perl-HTML-FormHandler.spec
Normal file
@@ -0,0 +1,292 @@
|
||||
#
|
||||
# spec file for package perl-HTML-FormHandler
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define cpan_name HTML-FormHandler
|
||||
Name: perl-HTML-FormHandler
|
||||
Version: 0.400.680
|
||||
Release: 0
|
||||
# 0.40068 -> normalize -> 0.400.680
|
||||
%define cpan_version 0.40068
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: HTML forms using Moose
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/G/GS/GSHANK/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Class::Load) >= 0.60
|
||||
BuildRequires: perl(Crypt::Blowfish)
|
||||
BuildRequires: perl(Crypt::CBC)
|
||||
BuildRequires: perl(Data::Clone)
|
||||
BuildRequires: perl(DateTime)
|
||||
BuildRequires: perl(DateTime::Format::Strptime)
|
||||
BuildRequires: perl(Email::Valid)
|
||||
BuildRequires: perl(File::ShareDir)
|
||||
BuildRequires: perl(File::ShareDir::Install) >= 0.60
|
||||
BuildRequires: perl(HTML::Entities)
|
||||
BuildRequires: perl(HTML::TreeBuilder) >= 3.230
|
||||
BuildRequires: perl(JSON::MaybeXS) >= 1.3.3
|
||||
BuildRequires: perl(List::Util) >= 1.33
|
||||
BuildRequires: perl(Moose) >= 2.140.300
|
||||
BuildRequires: perl(MooseX::Getopt) >= 0.160
|
||||
BuildRequires: perl(MooseX::Types) >= 0.200
|
||||
BuildRequires: perl(MooseX::Types::Common)
|
||||
BuildRequires: perl(MooseX::Types::LoadableClass) >= 0.6
|
||||
BuildRequires: perl(PadWalker)
|
||||
BuildRequires: perl(Sub::Exporter)
|
||||
BuildRequires: perl(Sub::Name)
|
||||
BuildRequires: perl(Test::Differences)
|
||||
BuildRequires: perl(Test::Exception)
|
||||
BuildRequires: perl(Test::Memory::Cycle) >= 1.40
|
||||
BuildRequires: perl(Test::More) >= 0.94
|
||||
BuildRequires: perl(Test::Warn)
|
||||
BuildRequires: perl(Try::Tiny)
|
||||
BuildRequires: perl(aliased)
|
||||
BuildRequires: perl(namespace::autoclean) >= 0.90
|
||||
Requires: perl(Class::Load) >= 0.60
|
||||
Requires: perl(Crypt::Blowfish)
|
||||
Requires: perl(Crypt::CBC)
|
||||
Requires: perl(Data::Clone)
|
||||
Requires: perl(DateTime)
|
||||
Requires: perl(DateTime::Format::Strptime)
|
||||
Requires: perl(Email::Valid)
|
||||
Requires: perl(File::ShareDir)
|
||||
Requires: perl(HTML::Entities)
|
||||
Requires: perl(HTML::TreeBuilder) >= 3.230
|
||||
Requires: perl(JSON::MaybeXS) >= 1.3.3
|
||||
Requires: perl(List::Util) >= 1.33
|
||||
Requires: perl(Moose) >= 2.140.300
|
||||
Requires: perl(MooseX::Getopt) >= 0.160
|
||||
Requires: perl(MooseX::Types) >= 0.200
|
||||
Requires: perl(MooseX::Types::Common)
|
||||
Requires: perl(MooseX::Types::LoadableClass) >= 0.6
|
||||
Requires: perl(Sub::Exporter)
|
||||
Requires: perl(Sub::Name)
|
||||
Requires: perl(Try::Tiny)
|
||||
Requires: perl(aliased)
|
||||
Requires: perl(namespace::autoclean) >= 0.90
|
||||
Provides: perl(HTML::FormHandler) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Base) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Blocks) = %{version}
|
||||
Provides: perl(HTML::FormHandler::BuildFields) = %{version}
|
||||
Provides: perl(HTML::FormHandler::BuildPages) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::AddElement) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::BoolSelect) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Boolean) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Button) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Captcha) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Checkbox) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Compound) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Date) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::DateMDY) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::DateTime) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Display) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Duration) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Email) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::File) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Float) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Hidden) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Hour) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::IntRange) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Integer) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Minute) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Money) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Month) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::MonthDay) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::MonthName) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Multiple) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Nested) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::NoValue) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::NonEditable) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Password) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::PasswordConf) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::PosInteger) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::PrimaryKey) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Repeatable) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::RequestToken) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Reset) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Result) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::RmElement) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Role::RequestToken) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Second) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Select) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::SelectCSV) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Submit) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Text) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::TextArea) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::TextCSV) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Upload) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Weekday) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Field::Year) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Fields) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Foo) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::ar_kw) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::bg_bg) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::ca_es) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::cs_cz) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::de_de) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::en_us) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::es_es) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::hu_hu) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::it_it) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::ja_jp) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::pt_br) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::ru_ru) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::sv_se) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::tr_tr) = %{version}
|
||||
Provides: perl(HTML::FormHandler::I18N::ua_ua) = %{version}
|
||||
Provides: perl(HTML::FormHandler::InitResult) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Merge) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Model) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Model::Object) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Moose) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Moose::Role) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Page) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Page::Simple) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Pages) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Render::RepeatableJs) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Render::Simple) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Render::Table) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Render::Util) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Render::WithTT) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Result) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Result::Role) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Test) = %{version}
|
||||
Provides: perl(HTML::FormHandler::TraitFor::Captcha) = %{version}
|
||||
Provides: perl(HTML::FormHandler::TraitFor::I18N) = %{version}
|
||||
Provides: perl(HTML::FormHandler::TraitFor::Types) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Traits) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Types) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Validate) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::ApplyRole) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Block) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Block::Bootstrap) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Button) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::ButtonTag) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Captcha) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Checkbox) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::CheckboxGroup) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Compound) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Hidden) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::HorizCheckboxGroup) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::NoRender) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Password) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::RadioGroup) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Repeatable) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Reset) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Role::HTMLAttributes) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Role::SelectedOption) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Select) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Span) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Submit) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Text) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Textarea) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Field::Upload) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Form::Role::HTMLAttributes) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Form::Simple) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Form::Table) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Theme::Bootstrap) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Theme::Bootstrap3) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Theme::BootstrapFormMessages) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::Base) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::Bootstrap) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::Bootstrap3) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::Fieldset) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::None) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::Simple) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::SimpleInline) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::Table) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Widget::Wrapper::TableInline) = %{version}
|
||||
Provides: perl(HTML::FormHandler::Wizard) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
*** Although documentation in this file provides some overview, it is
|
||||
mainly intended for API documentation. See HTML::FormHandler::Manual::Intro
|
||||
for an introduction, with links to other documentation.
|
||||
|
||||
HTML::FormHandler maintains a clean separation between form construction
|
||||
and form rendering. It allows you to define your forms and fields in a
|
||||
number of flexible ways. Although it provides renderers for HTML, you can
|
||||
define custom renderers for any kind of presentation.
|
||||
|
||||
HTML::FormHandler allows you to define form fields and validators. It can
|
||||
be used for both database and non-database forms, and will automatically
|
||||
update or create rows in a database. It can be used to process structured
|
||||
data that doesn't come from an HTML form.
|
||||
|
||||
One of its goals is to keep the controller/application program interface as
|
||||
simple as possible, and to minimize the duplication of code. In most cases,
|
||||
interfacing your controller to your form is only a few lines of code.
|
||||
|
||||
With FormHandler you shouldn't have to spend hours trying to figure out how
|
||||
to make a simple HTML change that would take one minute by hand. Because
|
||||
you _can_ do it by hand. Or you can automate HTML generation as much as you
|
||||
want, with template widgets or pure Perl rendering classes, and stay
|
||||
completely in control of what, where, and how much is done automatically.
|
||||
You can define custom renderers and display your rendered forms however you
|
||||
want.
|
||||
|
||||
You can split the pieces of your forms up into logical parts and compose
|
||||
complete forms from FormHandler classes, roles, fields, collections of
|
||||
validations, transformations and Moose type constraints. You can write
|
||||
custom methods to process forms, add any attribute you like, and use Moose
|
||||
method modifiers. FormHandler forms are Perl classes, so there's a lot of
|
||||
flexibility in what you can do.
|
||||
|
||||
HTML::FormHandler provides rendering through roles which are applied to
|
||||
form and field classes (although there's no reason you couldn't write a
|
||||
renderer as an external object either). There are currently two flavors:
|
||||
all-in-one solutions like HTML::FormHandler::Render::Simple and
|
||||
HTML::FormHandler::Render::Table that contain methods for rendering field
|
||||
widget classes, and the HTML::FormHandler::Widget roles, which are more
|
||||
atomic roles which are automatically applied to fields and form. See
|
||||
HTML::FormHandler::Manual::Rendering for more details. (And you can easily
|
||||
use hand-built forms - FormHandler doesn't care.)
|
||||
|
||||
The typical application for FormHandler would be in a Catalyst,
|
||||
DBIx::Class, Template Toolkit web application, but use is not limited to
|
||||
that. FormHandler can be used in any Perl application.
|
||||
|
||||
More Formhandler documentation and a tutorial can be found in the manual at
|
||||
HTML::FormHandler::Manual.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%doc Changes README README.md TODO util
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user