<commit_before>.tabbable
  %ul.nav.nav-tabs
    %li.active= link_to t_title(:tenant), '#tab-tenant', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:bookings), '#tab-bookings', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:vesr), '#tab-vesr', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:list, Backup), '#tab-backups', {:data => {:toggle => 'tab'}}

= simple_form_for @tenant do |f|
  .tab-content
    #tab-tenant.tab-pane.active= render "form_tenant", :f => f
    #tab-bookings.tab-pane= render "form_bookings", :f => f
    #tab-vesr.tab-pane= render "form_vesr", :f => f
    #tab-attachments.tab-pane= render 'show_attachments'
    #tab-backups.tab-pane= render 'show_backups'<commit_msg>do not display tabs which need a persisted resource when creating a new tenant<commit_after>.tabbable
  %ul.nav.nav-tabs
    %li.active= link_to t_title(:tenant), '#tab-tenant', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:bookings), '#tab-bookings', {:data => {:toggle => 'tab'}}
    %li= link_to t_title(:vesr), '#tab-vesr', {:data => {:toggle => 'tab'}}
    - if @tenant.persisted?
      %li= link_to t_title(:list, Attachment), '#tab-attachments', {:data => {:toggle => 'tab'}}
      %li= link_to t_title(:list, Backup), '#tab-backups', {:data => {:toggle => 'tab'}}

= simple_form_for @tenant do |f|
  .tab-content
    #tab-tenant.tab-pane.active= render "form_tenant", :f => f
    #tab-bookings.tab-pane= render "form_bookings", :f => f
    #tab-vesr.tab-pane= render "form_vesr", :f => f
    - if @tenant.persisted?
      #tab-attachments.tab-pane= render 'show_attachments'
      #tab-backups.tab-pane= render 'show_backups'
{'fraction_non_alphanumeric': 0.20944792259533296, 'fraction_numerical': 0.0, 'mean_word_length': 4.140350877192983, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '3846911', 'n_tokens_mistral': 680, 'n_tokens_neox': 669, 'n_words': 146}