<commit_before>= title _('Update lecture')
= head_embed javascript_include_tag('editor')
= head_embed stylesheet_link_tag('editor')

.row#lecture
  .seven.columns

    = form_for(@lecture, :url => lectures_path) do |f|
      %p
        = f.label :title, _('Title')
        = f.text_field :title, :required => true

      %p
        = f.label :parent_lecture_id, _('Parent lecture')
        = f.select :parent_lecture_id, @lectures, { :include_blank => _('No parent lecture') }

      %p
        = f.label :requisite, _('Requisites')
        = f.text_area :requisite, :class => 'wysiwyg-minimal', :required => true

      %p
        = f.label :content, _('Content')
        = f.text_area :content, :class => 'wysiwyg-full', :required => true

      %p
        = hidden_field_tag :assetable_type, @lecture.class, :class => 'assetable_type'
        = hidden_field_tag :assetable_id, @lecture.id, :class => 'assetable_id'
        = f.submit _('Create'), :id => 'submit_syllabus', :class => 'button radius secondary'
        = link_to _('Cancel'), syllabus_path, :class => 'pull right'<commit_msg>Cleanup editing screen.<commit_after>= title _('Update lecture')
= head_embed javascript_include_tag('editor')
= head_embed stylesheet_link_tag('editor')

.row#lecture
  .seven.columns

    = form_for(@lecture) do |f|
      %p
        = f.label :title, _('Title')
        = f.text_field :title, :required => true

      %p
        = f.label :parent_lecture_id, _('Parent lecture')
        = f.select :parent_lecture_id, @lectures, { :include_blank => _('No parent lecture') }

      %p
        = f.label :requisite, _('Requisites')
        = f.text_area :requisite, :class => 'wysiwyg-minimal', :required => true

      %p
        = f.label :content, _('Content')
        = f.text_area :content, :class => 'wysiwyg-full', :required => true

      %p
        = hidden_field_tag :assetable_type, @lecture.class, :class => 'assetable_type'
        = hidden_field_tag :assetable_id, @lecture.id, :class => 'assetable_id'
        = f.submit _('Update'), :id => 'submit_syllabus', :class => 'button radius secondary'
        = link_to _('Cancel'), syllabus_path, :class => 'pull right'
{'fraction_non_alphanumeric': 0.15614923998157532, 'fraction_numerical': 0.0, 'mean_word_length': 3.137142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, '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': '6432160', 'n_tokens_mistral': 750, 'n_tokens_neox': 726, 'n_words': 159}