mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Allow any sub-items to be moved from a folder
Since you can now see them when searching you should also be able to select and move them. Which means that they needed to be included in the `Form`’s list of possible choices of things to move.
This commit is contained in:
@@ -109,8 +109,11 @@ def start_tour(service_id, template_id):
|
||||
@user_has_permissions()
|
||||
def choose_template(service_id, template_type='all', template_folder_id=None):
|
||||
|
||||
template_list = TemplateList(current_service, template_type, template_folder_id)
|
||||
|
||||
templates_and_folders_form = TemplateAndFoldersSelectionForm(
|
||||
service=current_service,
|
||||
all_template_folders=current_service.all_template_folders,
|
||||
template_list=template_list,
|
||||
template_type=template_type,
|
||||
current_folder_id=template_folder_id,
|
||||
)
|
||||
@@ -127,7 +130,7 @@ def choose_template(service_id, template_type='all', template_folder_id=None):
|
||||
current_template_folder_id=template_folder_id,
|
||||
can_manage_folders=can_manage_folders(),
|
||||
template_folder_path=current_service.get_template_folder_path(template_folder_id),
|
||||
template_list=TemplateList(current_service, template_type, template_folder_id),
|
||||
template_list=template_list,
|
||||
show_search_box=current_service.count_of_templates_and_folders > 7,
|
||||
show_template_nav=(
|
||||
current_service.has_multiple_template_types
|
||||
|
||||
Reference in New Issue
Block a user