summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNEdit.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-18 09:23:11 +0200
committerYorhel <git@yorhel.nl>2009-08-18 09:23:11 +0200
commit6be3db128ffa7c16ff4967ddf08a8577d9f25eaf (patch)
tree385184908592f267fe5e44e01f0d99353c18df66 /lib/VNDB/Handler/VNEdit.pm
parente7a73f04525ad18b0bd2be8996431ecaf8eff330 (diff)
htmlForm(): Don't generate subform id from the title
The subform id is now passed to htmlForm() as first formpart item. This way the id won't change even if the title does, which will be the case with the interface translation.
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r--lib/VNDB/Handler/VNEdit.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index 9ab3862d..f718fbfa 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -140,7 +140,7 @@ sub _form {
my($self, $v, $frm) = @_;
my $r = $v ? $self->dbReleaseGet(vid => $v->{id}) : [];
$self->htmlForm({ frm => $frm, action => $v ? "/v$v->{id}/edit" : '/v/new', editsum => 1, upload => 1 },
- 'General info' => [
+ vn_geninfo => [ 'General info',
[ input => short => 'title', name => 'Title (romaji)' ],
[ input => short => 'original', name => 'Original title' ],
[ static => content => 'The original title of this visual novel, leave blank if it already is in the Latin alphabet.' ],
@@ -172,7 +172,7 @@ sub _form {
|],
],
- 'Image' => [
+ vn_img => [ 'Image',
[ static => nolabel => 1, content => sub {
div class => 'img';
p 'No image uploaded yet' if !$v || !$v->{image};
@@ -195,7 +195,7 @@ sub _form {
}],
],
- 'Relations' => [
+ vn_rel => [ 'Relations',
[ hidden => short => 'relations' ],
[ static => nolabel => 1, content => sub {
h2 'Selected relations';
@@ -227,7 +227,7 @@ sub _form {
}],
],
- !@$r ? () : ( 'Screenshots' => [
+ !@$r ? () : ( vn_scr => [ 'Screenshots',
[ hidden => short => 'screenshots' ],
[ static => nolabel => 1, content => sub {
div class => 'warning';