git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
word edit: prio(rity level) column input
[sheet.git]
/
writer.plp
diff --git
a/writer.plp
b/writer.plp
index 288891a5030688489ae47bcff3c1a7347f0d0411..275909b094feeae07ddd9131913aa4a898ab912e 100644
(file)
--- a/
writer.plp
+++ b/
writer.plp
@@
-108,13
+108,14
@@
my $db = eval {
} or Abort('Database error', 501, $@);
my @wordcols = (
} or Abort('Database error', 501, $@);
my @wordcols = (
+ lang => 'Language',
+ cat => 'Category',
form => 'Translation',
wptitle => 'Wikipedia',
form => 'Translation',
wptitle => 'Wikipedia',
- ref => 'Reference',
- cat => 'Category',
- lang => 'Language',
source => 'Image URL',
thumb => 'Convert options',
source => 'Image URL',
thumb => 'Convert options',
+ prio => 'Level',
+ ref => 'Reference',
);
my ($find) = map {{id => $_}} $fields{id} || $Request || ();
);
my ($find) = map {{id => $_}} $fields{id} || $Request || ();
@@
-125,7
+126,7
@@
if ($find) {
}
if (exists $get{copy}) {
}
if (exists $get{copy}) {
- $row = {%{$row}{ qw(lang cat) }};
+ $row = {%{$row}{ qw(
prio
lang cat) }};
}
elsif ($ENV{REQUEST_METHOD} eq 'POST') {{
my $replace = $row;
}
elsif ($ENV{REQUEST_METHOD} eq 'POST') {{
my $replace = $row;
@@
-187,6
+188,7
@@
elsif ($ENV{REQUEST_METHOD} eq 'POST') {{
}
}}
else {
}
}}
else {
+ $row->{prio} //= 1;
$row->{$_} = $get{$_} for keys %get;
}
$row->{$_} = $get{$_} for keys %get;
}