summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Releases
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-02-28 10:05:00 +0100
committerYorhel <git@yorhel.nl>2020-02-28 10:05:08 +0100
commit03106135b8d4f0c2c0387991133cc3205957d68b (patch)
treee66b8249a7a6f8bae8f78c8a2b573d3394fb399c /lib/VNWeb/Releases
parent018cbf36fe8e33818759909d8ff4fbda87fa3f62 (diff)
v2rw/RelEdit: Add visual novel relation editing
And a few minor styling fixes.
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r--lib/VNWeb/Releases/Edit.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VNWeb/Releases/Edit.pm b/lib/VNWeb/Releases/Edit.pm
index 28fc96d4..21563c34 100644
--- a/lib/VNWeb/Releases/Edit.pm
+++ b/lib/VNWeb/Releases/Edit.pm
@@ -30,6 +30,10 @@ my $FORM = {
engine => { required => 0, default => '', maxlength => 50 },
extlinks => validate_extlinks('r'),
notes => { required => 0, default => '', maxlength => 10240 },
+ vn => { sort_keys => 'vid', aoh => {
+ vid => { id => 1 },
+ title => { _when => 'out' },
+ } },
hidden => { anybool => 1 },
locked => { anybool => 1 },
@@ -62,6 +66,8 @@ TUWF::get qr{/$RE{rrev}/(?<action>edit|copy)} => sub {
});
to_extlinks $e;
+ enrich_merge vid => 'SELECT id AS vid, title FROM vn WHERE id IN', $e->{vn};
+
my $title = ($copy ? 'Copy ' : 'Edit ').$e->{title};
framework_ title => $title, type => 'r', dbobj => $e, tab => tuwf->capture('action'),
sub {