Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
c2b428d7
Commit
c2b428d7
authored
Mar 15, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DESIGN] Table Headers.
parent
8a840d6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
27 deletions
+31
-27
NgramsTable.purs
src/Gargantext/Components/NgramsTable.purs
+27
-23
Table.purs
src/Gargantext/Components/Table.purs
+4
-4
No files found.
src/Gargantext/Components/NgramsTable.purs
View file @
c2b428d7
...
@@ -449,7 +449,7 @@ tableContainer { pageParams
...
@@ -449,7 +449,7 @@ tableContainer { pageParams
[ text "Import a Termlist" ]
[ text "Import a Termlist" ]
]
]
,-}
,-}
div [className "col-md-
4", style {marginTop : "37
px"}]
div [className "col-md-
3", style {marginTop : "6
px"}]
[ input [ className "form-control "
[ input [ className "form-control "
, name "search", placeholder "Search"
, name "search", placeholder "Search"
, _type "value"
, _type "value"
...
@@ -457,28 +457,32 @@ tableContainer { pageParams
...
@@ -457,28 +457,32 @@ tableContainer { pageParams
, onInput \e -> setSearchQuery (unsafeEventValue e)
, onInput \e -> setSearchQuery (unsafeEventValue e)
]
]
]
]
, div [_id "filter_terms", className "col-md-6", style{ marginTop : "2.1em",paddingLeft :"1em"}]
, div [className "col-md-2", style {marginTop : "6px"}]
[ div [className "col-md-10 list-group", style {marginTop : "6px"}]
[ li [className " list-group-item"]
[ li [className " list-group-item"]
[ select [ _id "picklistmenu"
[ select [ _id "picklistmenu"
, className "form-control custom-select"
, className "form-control custom-select"
, value (maybe "" show pageParams.termListFilter)
, value (maybe "" show pageParams.termListFilter)
, onChange (\e -> setTermListFilter $ readTermList $ unsafeEventValue e)
, onChange (\e -> setTermListFilter $ readTermList $ unsafeEventValue e)
] $ map optps1 termLists
] $ map optps1 termLists
]
]
]
, li [className "list-group-item"]
, div [className "col-md-2", style {marginTop : "6px"}]
[ select [ _id "picktermtype"
[ li [className "list-group-item"]
, className "form-control custom-select"
[ select [ _id "picktermtype"
, value (maybe "" show pageParams.termSizeFilter)
, className "form-control custom-select"
, onChange (\e -> setTermSizeFilter $ readTermSize $ unsafeEventValue e)
, value (maybe "" show pageParams.termSizeFilter)
] $ map optps1 termSizes
, onChange (\e -> setTermSizeFilter $ readTermSize $ unsafeEventValue e)
]
] $ map optps1 termSizes
, li [className " list-group-item"] [ props.pageSizeControl ]
]
]
]
]
, div [className "col-md-6", style {marginTop : "24px", marginBottom : "14px"}]
, div [className "col-md-4", style {marginTop : "6px", marginBottom : "1px"}]
[ props.pageSizeDescription
[ li [className " list-group-item"] [ props.pageSizeDescription
, props.paginationLinks
, props.pageSizeControl
, text " items / "
, props.paginationLinks
]
--, li [className " list-group-item"] [ props.pageSizeControl ]
]
]
]
]
]
]
...
...
src/Gargantext/Components/Table.purs
View file @
c2b428d7
...
@@ -218,7 +218,7 @@ tableElt props = createElement tableClass props []
...
@@ -218,7 +218,7 @@ tableElt props = createElement tableClass props []
sizeDD :: PageSizes -> (Action -> Effect Unit) -> ReactElement
sizeDD :: PageSizes -> (Action -> Effect Unit) -> ReactElement
sizeDD ps d
sizeDD ps d
= span []
= span []
[ text "
Show :
"
[ text " "
, select [onChange (\e -> d (ChangePageSize $ string2PageSize $ (unsafeCoerce e).target.value))] $ map (optps ps) aryPS
, select [onChange (\e -> d (ChangePageSize $ string2PageSize $ (unsafeCoerce e).target.value))] $ map (optps ps) aryPS
]
]
...
@@ -239,7 +239,7 @@ effectLink eff msg = a [onClick $ const eff] [text msg]
...
@@ -239,7 +239,7 @@ effectLink eff msg = a [onClick $ const eff] [text msg]
pagination :: ChangePageAction -> Int -> Int -> ReactElement
pagination :: ChangePageAction -> Int -> Int -> ReactElement
pagination changePage tp cp
pagination changePage tp cp
= span [] $
= span [] $
[ text "
Pages:
", prev, first, ldots]
[ text " ", prev, first, ldots]
<>
<>
lnums
lnums
<>
<>
...
@@ -250,9 +250,9 @@ pagination changePage tp cp
...
@@ -250,9 +250,9 @@ pagination changePage tp cp
[ rdots, last, next ]
[ rdots, last, next ]
where
where
prev = if cp == 1 then
prev = if cp == 1 then
text " Prev
ious
"
text " Prev
.
"
else
else
changePageLink (cp - 1) "Prev
ious
"
changePageLink (cp - 1) "Prev
.
"
next = if cp == tp then
next = if cp == tp then
text " Next "
text " Next "
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment