<%= render :partial => 'shared/form_errors', :locals => {:object => @repository} %>
<%= f.label :name, class: 'control-label' %> <%= f.text_field :name, :required => true, class: 'text-field form-control' %>

<%= t('activemodel.hints.repository.name') %>

<%= f.label :description, class: 'control-label' %> <%= f.text_area :description, class: 'text-area form-control' %>

<%= t('activemodel.hints.repository.description') %>

<%= f.label :license, class: 'control-label' %> <%= f.select( :license, license_options, class: 'text-area form-control' ) %>

<%= t('activemodel.hints.repository.license') %>

<%= f.label :scm_type, class: 'control-label' %> <%= f.select( :scm_type, @repository_types, {}, class: 'tooltip-control', onchange: "_repository_branch.toggle();" ) %>

<%= t('activemodel.hints.repository.scm_type') %>

<%= f.label :address, class: 'control-label' %> <%= f.text_field :address, :required => true, class: 'text-field form-control', onchange: "_repository_branch.fetch(this.value);" %>

<%= t('activemodel.hints.repository.address') %>

<%= f.label :branch, class: 'control-label' %> <%= f.select :branch, []%>

<%= t('activemodel.hints.repository.address') %>

<%= f.label :period, class: 'control-label' %> <%= f.select( :period, periodicity_options, class: 'tooltip-control' ) %>

<%= t('activemodel.hints.repository.period') %>

<%= f.label :kalibro_configuration_id, KalibroConfiguration.model_name.human, class: 'control-label' %> <%= f.select( :kalibro_configuration_id, @configurations, class: 'tooltip-control' ) %>

<%= t('activemodel.hints.repository.kalibro_configuration', configuration_href: link_to(KalibroConfiguration.model_name.human, "http://mezuro.github.io/tutorial/2016/04/04/tutorial-keywords.html#configuration", target: "_blank")).html_safe %>

<%= f.submit t('save'), class: 'btn btn-primary' %> <%= link_to t('back'), projects_path, class: 'btn btn-default' %>