summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Releases.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-02-16 11:16:55 +0100
committerYorhel <git@yorhel.nl>2020-02-21 13:47:52 +0100
commit50657dc2a4cbe4fa5efede82053a96b327ed0338 (patch)
tree285c67eb8dfe88ef0e42f337236cd76c4ae16b01 /lib/VNDB/Handler/Releases.pm
parent624ad4124cc3e49acd3903b9c9062a03f3616ad8 (diff)
v2rw/WIP: Incremental rewrite of the release edit form
The new form does change a few things to the UI, so I'll keep the old form around for a while so that people have something to fallback to when it doesn't work (like, right now). I'm also doing this rewrite in multiple commits as it's a pretty large change.
Diffstat (limited to 'lib/VNDB/Handler/Releases.pm')
-rw-r--r--lib/VNDB/Handler/Releases.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 589a685b..fbdd0c9a 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -14,7 +14,7 @@ our @EXPORT = ('releaseExtLinks');
TUWF::register(
qr{(v)([1-9]\d*)/add} => \&edit,
qr{r} => \&browse,
- qr{r(?:([1-9]\d*)(?:\.([1-9]\d*))?/(edit|copy))}
+ qr{old/r(?:([1-9]\d*)(?:\.([1-9]\d*))?/(edit|copy))}
=> \&edit,
qr{r/engines} => \&engines,
qr{xml/releases.xml} => \&relxml,
@@ -196,7 +196,7 @@ sub edit {
sub _form {
my($self, $r, $v, $frm, $copy) = @_;
- $self->htmlForm({ frm => $frm, action => $r ? "/r$r->{id}/".($copy ? 'copy' : 'edit') : "/v$v->{id}/add", editsum => 1 },
+ $self->htmlForm({ frm => $frm, action => $r ? "/old/r$r->{id}/".($copy ? 'copy' : 'edit') : "/old/v$v->{id}/add", editsum => 1 },
rel_geninfo => [ 'General info',
[ select => short => 'type', name => 'Type',
options => [ map [ $_, $RELEASE_TYPE{$_} ], keys %RELEASE_TYPE ] ],