Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions docassemble/AssemblyLine/data/questions/al_visual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,16 @@ data from code:
label: str(al_load_answer_set_string)
hidden: not get_config('assembly line',{}).get('enable answer sets')
- url: |
url_action('al_error_action_download_screen')
label: str(al_download_answer_set_string)
hidden: (not get_config('assembly line',{}).get('enable answer set imports')) or (_internal.get('steps') < 2)
url_ask(["al_sessions_json_file", {"recompute": ["al_sessions_import_json"]}, "al_sessions_load_status"])
label: str(al_import_answer_set_string)
hidden: |
not (
(
get_config('assembly line',{}).get('enable answer sets')
and get_config('assembly line',{}).get('enable answer set imports')
)
or (user_logged_in() and user_has_privilege('admin'))
)
---
template: al_start_over_string
content: >-
Expand All @@ -134,9 +141,9 @@ template: al_load_answer_set_string
content: >-
Load answer set
---
template: al_download_answer_set_string
template: al_import_answer_set_string
content: >-
Download answer set
Import answer set
---
event: al_exit_logout
code: |
Expand Down
Loading