diff options
author | Yorhel <git@yorhel.nl> | 2020-06-26 11:44:19 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-06-29 09:31:31 +0200 |
commit | 6831c0b0de4c6581f7d5481e1df4e37754d64b63 (patch) | |
tree | 7d913d6a0d33d381bf6ec0b0975b3f1dcc2c617f /lib/VNDB | |
parent | cbdcdab0ce2c5bb8e686f2ff18c4b886ea740cad (diff) |
VN::Edit: Start rewrite of the VN edit form
This is mostly a copy-paste of the Char::Edit form.
Diffstat (limited to 'lib/VNDB')
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm index 49e383a7..4c0a4737 100644 --- a/lib/VNDB/Handler/VNEdit.pm +++ b/lib/VNDB/Handler/VNEdit.pm @@ -10,9 +10,9 @@ use VNDB::Types; TUWF::register( - qr{v(?:([1-9]\d*)(?:\.([1-9]\d*))?/edit|/new)} + qr{old/v(?:([1-9]\d*)(?:\.([1-9]\d*))?/edit|/new)} => \&edit, - qr{v/add} => \&addform, + qr{old/v/add} => \&addform, qr{xml/vn\.xml} => \&vnxml, qr{xml/screenshots\.xml} => \&scrxml, ); @@ -69,7 +69,7 @@ sub addform { end 'div'; } - $self->htmlForm({ frm => $frm, action => '/v/add', continue => @$l ? 2 : 1 }, + $self->htmlForm({ frm => $frm, action => '/old/v/add', continue => @$l ? 2 : 1 }, vn_add => [ 'Add a new visual novel', [ input => short => 'title', name => 'Title (romaji)', width => 450 ], [ input => short => 'original', name => 'Original title', width => 450 ], @@ -255,7 +255,7 @@ sub _uploadimage { sub _form { my($self, $v, $frm, $r, $chars) = @_; - $self->htmlForm({ frm => $frm, action => $v ? "/v$v->{id}/edit" : '/v/new', editsum => 1, upload => 1 }, + $self->htmlForm({ frm => $frm, action => $v ? "/old/v$v->{id}/edit" : '/old/v/new', editsum => 1, upload => 1 }, vn_geninfo => [ 'General info', [ input => short => 'title', name => 'Title (romaji)', width => 450 ], [ input => short => 'original', name => 'Original title', width => 450 ], |