### ${_('Import new repository groups and repositories')}

${h.secure_form(h.route_path('admin_settings_mapping_create'), request=request)}

${_('This function will scan all data under the current storage path location at')} `${c.storage_path}`
${_('Each folder will be imported as a new repository group, and each repository found will be also imported to root level or corresponding repository group')}

${h.checkbox('invalidate',True)} ${_('Invalidate cache for all repositories')}
${_('Each cache data for repositories will be cleaned with this option selected. Use this to reload data and clear cache keys.')}

${h.submit('rescan',_('Scan filesystem'),class_="btn")}
${h.end_form()}

### ${_('Cleanup removed Repository Groups or Repositories')}

${h.secure_form(h.route_path('admin_settings_mapping_cleanup'), request=request)}

${_('This function will scan all data under the current storage path location at')} `${c.storage_path}` ${_('Then it will remove all repository groups and repositories that are no longer present in the filesystem.')}

${h.submit('rescan',_('Cleanup filesystem'),class_="btn btn-danger")}
${h.end_form()}