diff options
author | Yorhel <git@yorhel.nl> | 2015-11-11 15:51:40 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-11-11 16:00:34 +0100 |
commit | 1e97c0405a0cacb05d9d70429d7e7969e231b786 (patch) | |
tree | 1d31d74761726bf29868d1d0aebc66e188180dd9 /lib/VNDB/Util/FormHTML.pm | |
parent | fd9f224ad7e1d6ebe4f7abba75526b5190c963ba (diff) |
Misc poll improvements
- Merged polls table into threads table. Not much of a
storage/performance difference, and it's a bit simpler this way.
- Merged DB::Polls into DB::Discussions. Mainly because of the above
change in DB structure.
- Add option to remove an existing poll.
- Allow preview and recast to be changed without deleting the votes
- Set preview option by default. Because personal preferences. :)
- Minor form validation differences
Diffstat (limited to 'lib/VNDB/Util/FormHTML.pm')
-rw-r--r-- | lib/VNDB/Util/FormHTML.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Util/FormHTML.pm b/lib/VNDB/Util/FormHTML.pm index e1f3bdfc..cca2b150 100644 --- a/lib/VNDB/Util/FormHTML.pm +++ b/lib/VNDB/Util/FormHTML.pm @@ -34,8 +34,8 @@ sub htmlFormError { if($type eq 'required') { li; lit mt $field eq 'editsum' ?'_formerr_tpl_editsum' : '_formerr_required', $field; end; } - li mt '_formerr_min', $field, $rule if $type eq 'min'; - li mt '_formerr_max', $field, $rule if $type eq 'max'; + li mt '_formerr_mincount', $field, $rule if $type eq 'mincount'; + li mt '_formerr_maxcount', $field, $rule if $type eq 'maxcount'; li mt '_formerr_minlength', $field, $rule if $type eq 'minlength'; li mt '_formerr_maxlength', $field, $rule if $type eq 'maxlength'; li mt '_formerr_enum', $field, join ', ', @$rule if $type eq 'enum'; |