- if show_project_field
  %p
    %strong Change the branch destination
  .mb-3
    %label{ for: 'target_project' } Branch project name:
    = text_field_tag 'target_project', target_project, size: 80, maxlength: 200, class: 'form-control'
.mb-3
  %label{ for: 'target_package' } Branch package name:
  = text_field_tag 'target_package', package.try(:name), size: 80, maxlength: 200, class: 'form-control'
.form-check
  = check_box_tag(:current_revision, false, false, class: 'form-check-input')
  = label_tag(:current_revision, class: 'form-check-label') do
    Stay on this revision
    - if revision
      (##{revision})
  = hidden_field_tag(:revision, revision) if revision
- if show_project_field && Configuration.cleanup_after_days
  .form-check
    %input.form-check-input#disable-autocleanup{ type: 'checkbox' }
    %label.form-check-label{ for: 'disable-autocleanup' } Disable Autocleanup
  = hidden_field_tag(:autocleanup, true)
  :javascript
    $('#disable-autocleanup').click(function(){
      $('#autocleanup').val($('#disable-autocleanup').prop('checked') ? 'false' : 'true');
    });
