mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-02 13:32:51 +00:00
Move notes toggle to top
This commit is contained in:
parent
515db8a58d
commit
7fa25c3711
@ -1520,7 +1520,7 @@ renderEditMenu model =
|
||||
|
||||
renderEditButtons : Model -> Html Msg
|
||||
renderEditButtons model =
|
||||
div [ class "ui top attached right aligned segment" ]
|
||||
div [ class "ui top attached segment" ]
|
||||
[ button
|
||||
[ classList
|
||||
[ ( "ui primary button", True )
|
||||
@ -1545,6 +1545,16 @@ renderEditButtons model =
|
||||
[ i [ class "trash icon" ] []
|
||||
, text "Delete"
|
||||
]
|
||||
, button
|
||||
[ classList
|
||||
[ ( "ui secondary right floated icon button", True )
|
||||
, ( "basic", model.notesField == HideNotes || model.notesField == ViewNotes )
|
||||
]
|
||||
, title "Toggle Notes Form"
|
||||
, onClick ToggleEditNotes
|
||||
]
|
||||
[ i [ class "edit outline icon" ] []
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
@ -1632,20 +1642,6 @@ renderEditForm model =
|
||||
, Html.map ConcEquipMsg (Comp.Dropdown.view model.concEquipModel)
|
||||
, renderConcEquipSuggestions model
|
||||
]
|
||||
, h4 [ class "ui dividing header" ]
|
||||
[ i [ class "tiny edit icon" ] []
|
||||
, div [ class "content" ]
|
||||
[ text "Notes"
|
||||
]
|
||||
]
|
||||
, div [ class "field" ]
|
||||
[ div [ class "ui input" ]
|
||||
[ button [ class "ui basic primary fluid button", onClick ToggleEditNotes ]
|
||||
[ i [ class "edit outline icon" ] []
|
||||
, text "Toggle Notes Form"
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user