<commit_before>= javascript_include_tag 'page_related/sub_categories'

.field
  = form.label :name
  %br
  = form.text_field :name, :class => "required"

.field
  = form.label :description
  %br
  = form.text_area :description

.field
  = form.label :category
  %br
  = collection_select(:sub_category, :category_id, Category.all, :id, :name, {:prompt => "Please select a category"}, :class => "required")<commit_msg>added * to mandatory fields<commit_after>= javascript_include_tag 'page_related/sub_categories'

.field
  = form.label :name
  *
  %br
  = form.text_field :name, :class => "required"

.field
  = form.label :description
  %br
  = form.text_area :description

.field
  = form.label :category
  *
  %br
  = collection_select(:sub_category, :category_id, Category.all, :id, :name, {:prompt => "Please select a category"}, :class => "required")
{'fraction_non_alphanumeric': 0.14369158878504673, 'fraction_numerical': 0.0, 'mean_word_length': 4.529032258064516, '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': '5987961', 'n_tokens_mistral': 295, 'n_tokens_neox': 286, 'n_words': 68}