<commit_before>-# ToDo: Termin-Wiederholungen bearbeiten können
= semantic_form_for [:admin, @event] do |form|
  = form.inputs do
    = form.input :name
    = form.input :description, input_html: { class: 'autogrow preview-base', rows: 10 }, wrapper_html: { class: 'previewable' }
    = form.input :venue, input_html: {class: 'chosen-select'}
    = form.input :venue_info
    - if @current_user.admin?
      -# Admins dürfen alles
      = form.input :region, :as => :select, include_blank: false
    - else
      -# Wenn keine Region vorhanden ist, oder die Region innerhalb der vom Nutzer
      -# freigeschalteten ist, diese bearbeiten dürfen
      = form.input :region, :as => :select, :collection => @current_user.assigned_regions, include_blank: false

    = form.input :category, collection: Category.order("title")
    = form.input :picture
    = form.input :url
    = form.input :twitter
    = form.input :twitter_hashtag
    = form.input :tag_list
  = form.inputs name: "Terminregeln" do
    = form.input :start_time, as: :datetime_select, hint: "Bei wiederholenden Terminen gib hier den Start-Zeitpunkt an. Die Uhrzeit wird für alle Termine benutzt. Der Tag um den Startzeitpunkt der Wochen-Regeln zu definieren."
    = form.input :duration
    = form.input :full_day
    = form.input :schedule_rules_json, as: :hidden, input_html: {value: @event.schedule_rules.to_json}
    = form.input :excluded_times_json, as: :hidden, input_html: {value: @event.excluded_times.to_json}

    %li.string.input.optional.stringish
      %label.label Terminregeln
      .rule_editor
        %h4 Regeln
        %ul.rules

        .rule_entry
          An jedem 
          %select{id:"week_number", name:"week_number"}
            %option{value: "1"} ersten
            %option{value: "2"} zweiten<commit_msg>added chosen-select to picture field<commit_after>-# ToDo: Termin-Wiederholungen bearbeiten können
= semantic_form_for [:admin, @event] do |form|
  = form.inputs do
    = form.input :name
    = form.input :description, input_html: { class: 'autogrow preview-base', rows: 10 }, wrapper_html: { class: 'previewable' }
    = form.input :venue, input_html: {class: 'chosen-select'}
    = form.input :venue_info
    - if @current_user.admin?
      -# Admins dürfen alles
      = form.input :region, :as => :select, include_blank: false
    - else
      -# Wenn keine Region vorhanden ist, oder die Region innerhalb der vom Nutzer
      -# freigeschalteten ist, diese bearbeiten dürfen
      = form.input :region, :as => :select, :collection => @current_user.assigned_regions, include_blank: false

    = form.input :category, collection: Category.order("title")
    = form.input :picture, input_html: {class: 'chosen-select'}
    = form.input :url
    = form.input :twitter
    = form.input :twitter_hashtag
    = form.input :tag_list
  = form.inputs name: "Terminregeln" do
    = form.input :start_time, as: :datetime_select, hint: "Bei wiederholenden Terminen gib hier den Start-Zeitpunkt an. Die Uhrzeit wird für alle Termine benutzt. Der Tag um den Startzeitpunkt der Wochen-Regeln zu definieren."
    = form.input :duration
    = form.input :full_day
    = form.input :schedule_rules_json, as: :hidden, input_html: {value: @event.schedule_rules.to_json}
    = form.input :excluded_times_json, as: :hidden, input_html: {value: @event.excluded_times.to_json}

    %li.string.input.optional.stringish
      %label.label Terminregeln
      .rule_editor
        %h4 Regeln
        %ul.rules

        .rule_entry
          An jedem 
          %select{id:"week_number", name:"week_number"}
            %option{value: "1"} ersten
            %option{value: "2"} zweiten
{'fraction_non_alphanumeric': 0.11499590275880907, 'fraction_numerical': 0.0027314941272876263, 'mean_word_length': 3.2981220657276995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4996375', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1188, 'n_words': 310}