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

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">${_('Import New Groups or Repositories')}</h3>
    </div>
    <div class="panel-body">

        <p>
            ${_('This function will scann all data under the current storage path location at')} <code>${c.storage_path}</code>
        </p>

        <div class="checkbox">
            ${h.checkbox('destroy',True)}
            <label for="destroy">${_('Destroy old data')}</label>
        </div>
        <span class="help-block">${_('In case a repository or a group was deleted from the filesystem and it still exists in the database, check this option to remove obsolete data from the database.')}</span>

        <div class="checkbox">
            ${h.checkbox('invalidate',True)}
            <label for="invalidate"> ${_('Invalidate cache for all repositories')}</label>
        </div>
        <span class="help-block">${_('Each cache data for repositories will be cleaned with this option selected. Use this to reload data and clear cache keys.')}</span>

        <div class="buttons">
            ${h.submit('rescan',_('Rescan Filesystem'),class_="btn")}
        </div>

    </div>
</div>


${h.end_form()}