X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/5d52e8a4f389cd87b310c609ec76c9ba339284f6..3d0e1e761a53934cfdadf6e7e28ced4ec6e603e3:/writer.plp diff --git a/writer.plp b/writer.plp index bae010c..f4819b7 100644 --- a/writer.plp +++ b/writer.plp @@ -37,6 +37,9 @@ input:not([type]) { padding: .4rem; font-family: monospace; } +input[type=number] { + max-width: 7em; +} select { padding: .3rem .2rem; /* TODO: input */ } @@ -103,6 +106,7 @@ my @wordcols = ( lang => 'Language', cat => 'Category', ref => undef, # included with cat + grade => undef, # " prio => 'Level', cover => undef, # included with prio form => 'Translation', @@ -225,6 +229,9 @@ for my $colinfo (pairs @wordcols) { ), 'cover', !!$row->{cover} && ' checked', 'Highlighted' ); + printf('', + 'grade', 'Order', Entity($row->{grade}) + ); } else { printf '', $col, Entity($val); @@ -261,7 +268,7 @@ while (my $ref = $parents->hash) { printf '
  • %s
  • ', $ref->{id}, Entity($ref->{form}); } say "
  • $row->{form}
  • "; -my $children = $db->select(word => '*', {cat => $row->{id}}); +my $children = $db->select(word => '*', {cat => $row->{id}}, 'grade, id'); while (my $ref = $children->hash) { printf '
  • %s
  • ', $ref->{id}, Entity($ref->{form}); }