summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/FormHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-03-22 10:55:48 +0100
committerYorhel <git@yorhel.nl>2009-03-22 10:55:48 +0100
commit09f80833cef287a5a4f5cf1018b19f8c2db3341e (patch)
tree000e757f9b11a6ce069c13da9b648751d6b453b3 /lib/VNDB/Util/FormHTML.pm
parent5f744cdcc18e0d67df8162ffb76e752a6f7a4a9c (diff)
parent1b99dd8701ce572c8ac20b71b3eb9b471b69d788 (diff)
Merge branch 'tagging' into beta
Conflicts: lib/VNDB/DB/Discussions.pm util/updates/update_2.3.sql
Diffstat (limited to 'lib/VNDB/Util/FormHTML.pm')
-rw-r--r--lib/VNDB/Util/FormHTML.pm14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/VNDB/Util/FormHTML.pm b/lib/VNDB/Util/FormHTML.pm
index fdd325ac..17de6663 100644
--- a/lib/VNDB/Util/FormHTML.pm
+++ b/lib/VNDB/Util/FormHTML.pm
@@ -14,6 +14,7 @@ my %formerr_names = (
alias => 'Aliases',
anime => 'Anime',
desc => 'Description',
+ description => 'Description',
editsum => 'Edit summary',
gtin => 'JAN/EAN/UPC',
lang => 'Language',
@@ -33,7 +34,7 @@ my %formerr_names = (
platforms => 'Platforms',
producers => 'Producers',
released => 'Release date',
- tags => 'Tags',
+ boards => 'Boards',
title => 'Title',
type => 'Type',
usrname => 'Username',
@@ -79,7 +80,14 @@ sub htmlFormError {
li sprintf '%s should have at least %d characters', $field, $rule if $type eq 'minlength';
li sprintf '%s: only %d characters allowed', $field, $rule if $type eq 'maxlength';
li sprintf '%s must be one of the following: %s', $field, join ', ', @$rule if $type eq 'enum';
- li sprintf 'Wrong tag: %s', $rule if $type eq 'wrongtag';
+ li sprintf 'Wrong board: %s', $rule if $type eq 'wrongboard';
+ if($type eq 'tagexists') {
+ li;
+ lit $rule->{state} != 1 ? qq|Tag <a href="/g$rule->{id}">$rule->{name}</a> already exists!|
+ : qq|A tag <a href="/g$rule->{id}">with the same name</a> has been deleted in the past,|
+ .qq| please use <a href="/t/db">the discussion board</a> if you want it to be re-added.|;
+ end;
+ }
li $rule->[1] if $type eq 'func' || $type eq 'regex';
if($type eq 'template') {
li sprintf
@@ -253,7 +261,9 @@ sub htmlForm {
end;
br;
}
+ b "Don't forget! -> " if $options->{hitsubmit};
input type => 'submit', value => 'Submit', class => 'submit';
+ b ' <-' if $options->{hitsubmit};
end;
end;