## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>

<%block name="title">
    ${_('Repository Defaults')}
</%block>

<%def name="breadcrumbs_links()">
    ${h.link_to(_('Admin'),h.url('admin_home'))}
    &raquo;
    ${_('Repository Defaults')}
</%def>

<%block name="header_menu">
    ${self.menu('admin')}
</%block>

<%def name="main()">
<div class="panel panel-primary">
    <div class="panel-heading clearfix">
        ${self.breadcrumbs()}
    </div>

    ${h.form(url('defaults_update', id='defaults'))}
    <div class="form panel-body settings">
            <div class="form-group">
                <label class="control-label" for="default_repo_type">${_('Type')}:</label>
                <div>
                    ${h.select('default_repo_type','hg',c.backends,class_='form-control')}
                </div>
            </div>

            <div class="form-group">
                <label class="control-label" for="default_repo_private">${_('Private repository')}:</label>
                <div>
                    ${h.checkbox('default_repo_private',value="True")}
                    <span class="help-block">${_('Private repositories are only visible to people explicitly added as collaborators.')}</span>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label" for="default_repo_enable_statistics">${_('Enable statistics')}:</label>
                <div>
                    ${h.checkbox('default_repo_enable_statistics',value="True")}
                    <span class="help-block">${_('Enable statistics window on summary page.')}</span>
                </div>
            </div>

            <div class="form-group">
                <label class="control-label" for="default_repo_enable_downloads">${_('Enable downloads')}:</label>
                <div>
                    ${h.checkbox('default_repo_enable_downloads',value="True")}
                    <span class="help-block">${_('Enable download menu on summary page.')}</span>
                </div>
            </div>

            <div class="form-group">
                <div class="buttons">
                    ${h.submit('save',_('Save'),class_="btn btn-default")}
                </div>
            </div>
    </div>
    ${h.end_form()}

    ##<h3>${_('Groups defaults')}</h3>

</div>
</%def>
