Add smart adaptive completed_at display for action list as intended hidden feature

This commit is contained in:
2018-05-25 15:28:32 -03:00
parent 5ffb667d6b
commit 2d9ff6e3cb
4 changed files with 23 additions and 5 deletions
+12 -3
View File
@@ -13,7 +13,7 @@
a href=export_technical_url: span Technical
= action-list/project-filter apply_filters=(action 'refresh_list') filters=filters scope_project=scope_project scope_scenario=scope_scenario projects=model.projects
= action-list/organization-filter apply_filters=(action 'refresh_list') filters=filters scope_organization=scope_organization organizations=model.organizations
table.ui.attached.stiped.table
table.ui.attached.stiped.sortable.table
thead
tr
unless scope_project
@@ -24,10 +24,15 @@ table.ui.attached.stiped.table
th= t 'models.organization'
th= t 'models.project_instance_group'
th= t 'models.workflow_action_definition'
th= t 'models.project_instance'
= sortable-table-header filters=filters key='project_instance_client_identifier' model=model.project_instance_actions defaultDirection='asc'
= t 'models.project_instance'
th= t 'attributes.project_instance_action.state'
th= t 'attributes.project_instance_action.notes'
th= t 'attributes.project_instance_action.target_date'
= sortable-table-header filters=filters key='target_date' model=model.project_instance_actions defaultDirection='asc'
= t 'attributes.project_instance_action.target_date'
if show_completed_at
= sortable-table-header filters=filters key='completed_at' model=model.project_instance_actions defaultDirection='desc'
= t 'attributes.project_instance_action.completed_at'
th= t 'attributes.project_instance_action.value'
table-filters content=model.project_instance_actions filters=filters as |filter|
unless scope_project
@@ -46,6 +51,8 @@ table.ui.attached.stiped.table
= filter.dropdown-select-multiple key='state_in' options=globals.project_instance_action.states translationPath='attributes.state'
= filter.input key='notes_cont'
= filter.date-range key='target_date' expandingTime=true weekSelector=true
if show_completed_at
= filter.date-range key='completed_at' expandingTime=true weekSelector=true
th
tbody
if model.project_instance_actions.loading
@@ -85,6 +92,8 @@ table.ui.attached.stiped.table
'
= ui-markdown-popup tagName='i' class='info circle icon' markdown=project_instance_action.workflow_action_definition.extra_info
td= format-date project_instance_action.target_date
if show_completed_at
td= format-date project_instance_action.completed_at format=globals.time_formatting
td= project/instance-action-value-display project_instance_action=project_instance_action
/each project_instance_action.pointing_project_instance_action_connections as |project_instance_action_connection|
if (eq project_instance_action_connection.connection_type 'attached')