Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
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
dataplatform
atlas
Commits
b7f62366
Commit
b7f62366
authored
6 years ago
by
pratik24mac
Committed by
Madhan Neethiraj
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2538: UI - removed exclude-sub-type checkbox from classification search result page
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
79eed8c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
12 deletions
+22
-12
Helpers.js
dashboardv2/public/js/modules/Helpers.js
+6
-2
SearchResultLayoutView_tmpl.html
...blic/js/templates/search/SearchResultLayoutView_tmpl.html
+10
-8
SearchResultLayoutView.js
dashboardv2/public/js/views/search/SearchResultLayoutView.js
+6
-2
No files found.
dashboardv2/public/js/modules/Helpers.js
View file @
b7f62366
...
@@ -55,7 +55,7 @@ define(['require',
...
@@ -55,7 +55,7 @@ define(['require',
Handlebars
.
registerHelper
(
'toHumanDate'
,
function
(
val
)
{
Handlebars
.
registerHelper
(
'toHumanDate'
,
function
(
val
)
{
if
(
!
val
)
return
""
;
if
(
!
val
)
return
""
;
return
val
;
//localization.formatDate(val, 'f');
return
val
;
//localization.formatDate(val, 'f');
});
});
Handlebars
.
registerHelper
(
'tt'
,
function
(
str
)
{
Handlebars
.
registerHelper
(
'tt'
,
function
(
str
)
{
//return localization.tt(str);
//return localization.tt(str);
...
@@ -67,6 +67,9 @@ define(['require',
...
@@ -67,6 +67,9 @@ define(['require',
case
'=='
:
case
'=='
:
return
(
v1
==
v2
)
?
options
.
fn
(
this
)
:
options
.
inverse
(
this
);
return
(
v1
==
v2
)
?
options
.
fn
(
this
)
:
options
.
inverse
(
this
);
break
;
break
;
case
'!=='
:
return
(
v1
!==
v2
)
?
options
.
fn
(
this
)
:
options
.
inverse
(
this
);
break
;
case
'==='
:
case
'==='
:
return
(
v1
===
v2
)
?
options
.
fn
(
this
)
:
options
.
inverse
(
this
);
return
(
v1
===
v2
)
?
options
.
fn
(
this
)
:
options
.
inverse
(
this
);
break
;
break
;
...
@@ -90,4 +93,4 @@ define(['require',
...
@@ -90,4 +93,4 @@ define(['require',
});
});
return
HHelpers
;
return
HHelpers
;
});
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/templates/search/SearchResultLayoutView_tmpl.html
View file @
b7f62366
...
@@ -31,28 +31,30 @@
...
@@ -31,28 +31,30 @@
<div
class=
"col-sm-8 inline-content-fr no-padding-left"
>
<div
class=
"col-sm-8 inline-content-fr no-padding-left"
>
<div
class=
"inline"
data-id=
"colManager"
></div>
<div
class=
"inline"
data-id=
"colManager"
></div>
<div
class=
"inline"
data-id=
"containerCheckBox"
style=
"display: none;"
>
<div
class=
"inline"
data-id=
"containerCheckBox"
style=
"display: none;"
>
<label
class=
"checkbox-inline btn"
for=
"inputLabel"
>
<label
class=
"checkbox-inline btn"
for=
"historicalentities"
>
<input
type=
"checkbox"
data-id=
"checkDeletedEntity"
data-value=
"includeDE"
/>
<input
type=
"checkbox"
data-id=
"checkDeletedEntity"
data-value=
"includeDE"
id=
"historicalentities"
/>
<b>
Show historical entities
</b></label>
<b>
Show historical entities
</b></label>
</div>
</div>
<div
class=
"inline"
data-id=
"containerCheckBox"
style=
"display: none;"
>
<div
class=
"inline"
data-id=
"containerCheckBox"
style=
"display: none;"
>
<label
class=
"checkbox-inline btn"
for=
"
inputLabel
"
>
<label
class=
"checkbox-inline btn"
for=
"
subclassifications
"
>
<input
type=
"checkbox"
data-id=
"checkSubClassification"
data-value=
"excludeSC"
/>
<input
type=
"checkbox"
data-id=
"checkSubClassification"
data-value=
"excludeSC"
id=
"subclassifications"
/>
<b>
Exclude sub-classifications
</b></label>
<b>
Exclude sub-classifications
</b></label>
</div>
</div>
{{#ifCond fromView '!==' "classification"}}
<div
class=
"inline"
data-id=
"containerCheckBox"
style=
"display: none;"
>
<div
class=
"inline"
data-id=
"containerCheckBox"
style=
"display: none;"
>
<label
class=
"checkbox-inline btn"
for=
"
inputLabel
"
>
<label
class=
"checkbox-inline btn"
for=
"
subtypes
"
>
<input
type=
"checkbox"
data-id=
"checkSubType"
data-value=
"excludeST
"
/>
<input
type=
"checkbox"
data-id=
"checkSubType"
data-value=
"excludeST"
id=
"subtypes
"
/>
<b>
Exclude sub-types
</b></label>
<b>
Exclude sub-types
</b></label>
</div>
</div>
{{/ifCond}}
<div
class=
"inline"
>
<div
class=
"inline"
>
<a
href=
"javascript:void(0)"
class=
" multiSelectTag assignTag btn btn-action btn-sm"
style=
"display:none"
data-id=
"addAssignTag"
><i
class=
"fa fa-plus"
></i>
Assign Tag
</a>
<a
href=
"javascript:void(0)"
class=
" multiSelectTag assignTag btn btn-action btn-sm"
style=
"display:none"
data-id=
"addAssignTag"
><i
class=
"fa fa-plus"
></i>
Assign Tag
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div
id=
"r_searchResultTableLayoutView"
>
<div
id=
"r_searchResultTableLayoutView"
>
<h1><b>
{{searchType}}
</b></h1>
<h1><b>
{{searchType}}
</b></h1>
{{#if entityCreate}}
{{#if entityCreate}}
<div
class=
"entityLink"
style=
"display:none"
>
<div
class=
"entityLink"
style=
"display:none"
>
<p
class=
"entityLink"
>
Search Atlas for existing entities or
<p
class=
"entityLink"
>
Search Atlas for existing entities or
<a
href=
"javascript:void(0)"
data-id=
'createEntity'
>
create new entity
</a>
<a
href=
"javascript:void(0)"
data-id=
'createEntity'
>
create new entity
</a>
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/search/SearchResultLayoutView.js
View file @
b7f62366
...
@@ -72,7 +72,8 @@ define(['require',
...
@@ -72,7 +72,8 @@ define(['require',
templateHelpers
:
function
()
{
templateHelpers
:
function
()
{
return
{
return
{
entityCreate
:
Globals
.
entityCreate
,
entityCreate
:
Globals
.
entityCreate
,
searchType
:
this
.
searchType
searchType
:
this
.
searchType
,
fromView
:
this
.
fromView
};
};
},
},
/** ui events hash */
/** ui events hash */
...
@@ -451,7 +452,7 @@ define(['require',
...
@@ -451,7 +452,7 @@ define(['require',
'excludeDeletedEntities'
:
(
this
.
value
.
includeDE
?
false
:
true
),
'excludeDeletedEntities'
:
(
this
.
value
.
includeDE
?
false
:
true
),
'includeSubClassifications'
:
(
this
.
value
.
excludeSC
?
false
:
true
),
'includeSubClassifications'
:
(
this
.
value
.
excludeSC
?
false
:
true
),
'includeSubTypes'
:
(
this
.
value
.
excludeST
?
false
:
true
),
'includeSubTypes'
:
(
this
.
value
.
excludeST
?
false
:
true
),
'includeClassificationAttributes'
:
true
// server will return classication details with guid
'includeClassificationAttributes'
:
true
// server will return classication details with guid
}
}
}
}
if
(
value
)
{
if
(
value
)
{
...
@@ -527,6 +528,9 @@ define(['require',
...
@@ -527,6 +528,9 @@ define(['require',
var
table
=
new
TableLayout
(
_
.
extend
({},
that
.
commonTableOptions
,
{
var
table
=
new
TableLayout
(
_
.
extend
({},
that
.
commonTableOptions
,
{
columns
:
columns
columns
:
columns
}));
}));
if
(
!
that
.
REntityTableLayoutView
)
{
return
;
}
that
.
REntityTableLayoutView
.
show
(
table
);
that
.
REntityTableLayoutView
.
show
(
table
);
if
(
that
.
value
.
searchType
!==
"dsl"
)
{
if
(
that
.
value
.
searchType
!==
"dsl"
)
{
that
.
ui
.
containerCheckBox
.
show
();
that
.
ui
.
containerCheckBox
.
show
();
...
...
This diff is collapsed.
Click to expand it.
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