mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-11-03 18:00:11 +00:00 
			
		
		
		
	Change webapp to support multiple scan-mailbox tasks
This commit is contained in:
		@@ -1,17 +1,37 @@
 | 
			
		||||
module Util.Html exposing
 | 
			
		||||
    ( KeyCode(..)
 | 
			
		||||
    , checkbox
 | 
			
		||||
    , classActive
 | 
			
		||||
    , intToKeyCode
 | 
			
		||||
    , onClickk
 | 
			
		||||
    , onKeyUp
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
import Html exposing (Attribute)
 | 
			
		||||
import Html exposing (Attribute, Html, i)
 | 
			
		||||
import Html.Attributes exposing (class)
 | 
			
		||||
import Html.Events exposing (keyCode, on)
 | 
			
		||||
import Json.Decode as Decode
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
checkboxChecked : Html msg
 | 
			
		||||
checkboxChecked =
 | 
			
		||||
    i [ class "ui check square outline icon" ] []
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
checkboxUnchecked : Html msg
 | 
			
		||||
checkboxUnchecked =
 | 
			
		||||
    i [ class "ui square outline icon" ] []
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
checkbox : Bool -> Html msg
 | 
			
		||||
checkbox flag =
 | 
			
		||||
    if flag then
 | 
			
		||||
        checkboxChecked
 | 
			
		||||
 | 
			
		||||
    else
 | 
			
		||||
        checkboxUnchecked
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
type KeyCode
 | 
			
		||||
    = Up
 | 
			
		||||
    | Down
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user