]> git.plutz.net Git - lobster/commitdiff
simplify ui bu removing addfield drop down
authorPaul Hänsch <paul@plutz.net>
Sun, 10 Jan 2021 22:54:38 +0000 (23:54 +0100)
committerPaul Hänsch <paul@plutz.net>
Sun, 10 Jan 2021 22:54:38 +0000 (23:54 +0100)
courses/list.sh

index 27c47e0abc06178a20438e1202be5851b4965ef4..04cadfae8b712ea6a349c0e007e914c54f51fc64 100755 (executable)
@@ -31,11 +31,11 @@ edit_course(){
             edit_item "$course" attendance
           )]
           [div .control
-            [select .item name=newfield
+            [!-- select .item name=newfield
               [option disabled="disabled" selected . $(l10n edit_addfieldtext)]
               $(for f in $SUP_FIELDS; do printf '[option value="%s" . %s]\n' "$f" "$(l10n "$f")"; done)
             ]
-            [button .item type="submit" name="action" value="addfield" . $(l10n edit_addfield)]
+            [button .item type="submit" name="action" value="addfield" . $(l10n edit_addfield) --]
             [button .item type="submit" name="action" value="update"   . $(l10n edit_update)]
             [button .item type="submit" name="action" value="delete"   . $(l10n edit_delete)]
             [button .item type="submit" name="action" value="cancel"   . $(l10n edit_cancel)]