-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #119 - Add an interview to browse all of the YAML files on the se…
…rver by package
- Loading branch information
1 parent
ad682ce
commit 0761ec4
Showing
3 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
docassemble/ALDashboard/data/questions/browse_interviews.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
modules: | ||
- .aldashboard | ||
- docassemble.demo.accordion | ||
--- | ||
default screen parts: | ||
right: | | ||
${ action_button_html(interview_url(i=f"{user_info().package}:menu.yml"), label="Back to Dashboard") } | ||
--- | ||
mandatory: True | ||
id: browse packages | ||
question: | | ||
Interviews on this server | ||
subquestion: | | ||
Below is a list of every interview YAML file in every Docassemble package on this server. | ||
Not all YAMLs are intended to be run directly as interviews. | ||
% for package_name, question_files in sorted(list_question_files_in_docassemble_packages().items()): | ||
% if loop.index == 0: | ||
${ start_accordion(package_name.replace("docassemble.", "")) } | ||
% else: | ||
${ next_accordion(package_name.replace("docassemble.", "")) } | ||
% endif | ||
% if question_files: | ||
<ul> | ||
% for question_file in question_files: | ||
<li> | ||
<a href="${ interview_url(i=package_name + ":" + question_file, reset=1) }">${ question_file }</a> | ||
</li> | ||
% endfor | ||
</ul> | ||
% endif | ||
% endfor | ||
${ end_accordion() } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters