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 27c47e0..04cadfa 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)]