<commit_before>= simple_form_for @zone, url: plugin('dns_service').zones_path(@zone.id), method: :post, remote: request.xhr?, html: {data: {modal: true}, class: 'form-horizontal' }, wrapper: :horizontal_form do |f|

  %div{class: modal? ? 'modal-body' : ''}
    - if @zone.errors.present?
      .alert.alert-error
        = render_errors(@zone.errors)        

    = f.input :name,  required: true
    = f.input :email, required: true
    = f.input :ttl,   required: false, as: :integer, input_html: {value: @zone.ttl || 1}
    = f.input :description, required: false, as: :text
   
  %div.buttons{class: modal? ? 'modal-footer' : ''}
    - if modal?
      %button.btn.btn-default{type:"button", data: {dismiss:"modal"}, aria: {label: "Cancel"}} Cancel
    - else
      = link_to "Cancel", instances_url(), class: 'btn btn-default'
    = button_tag "Create", { class: 'btn btn-primary pull-right', data: { disable_with: "Please wait..." } }<commit_msg>[dns] fix non-modal zone create, default ttl to 7200 [ci skip]<commit_after>= simple_form_for @zone, url: plugin('dns_service').zones_path(@zone.id), method: :post, remote: request.xhr?, html: {data: {modal: true}, class: 'form-horizontal' }, wrapper: :horizontal_form do |f|

  %div{class: modal? ? 'modal-body' : ''}
    - if @zone.errors.present?
      .alert.alert-error
        = render_errors(@zone.errors)

    = f.input :name,  required: true
    = f.input :email, required: true
    = f.input :ttl,   required: false, as: :integer, input_html: {value: @zone.ttl || 7200}
    = f.input :description, required: false, as: :text

  %div.buttons{class: modal? ? 'modal-footer' : ''}
    - if modal?
      %button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}, aria: {label: 'Cancel'}} Cancel
    - else
      = link_to 'Cancel', zones_url(), class: 'btn btn-default'
    = button_tag 'Create', { class: 'btn btn-primary pull-right', data: { disable_with: 'Please wait... '} }
{'fraction_non_alphanumeric': 0.18013381369016984, 'fraction_numerical': 0.004632012352032939, 'mean_word_length': 3.6175771971496435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1692055', 'n_tokens_mistral': 675, 'n_tokens_neox': 659, 'n_words': 170}