<%= form_for(@article, html: {id:"article_markdown_form"}) do |f| %> <% if @article.errors.any? %>

<%= pluralize(@article.errors.count, "error") %> prohibited this article from being saved:

<% end %> <% if hiring_form?(@tag, @article) %>
< beta ❤️ >

The #Hiring Tag

Fill out this form to share your company's job opportunity.

<% end %>
<% unless hiring_form?(@tag, @article) %>
<% end %>
<% if hiring_form?(@tag, @article) %> <%= render 'articles/hiring_form', f:f %> <% else %> <% if current_user.organization %>
Publish under the <%= current_user.organization.name %> organization? <%= f.check_box :publish_under_org, {checked: @article.organization_id.present?} %>
<% end %> <% if @tag && @tag.submission_rules_headsup.present? %>
<%= @tag.submission_rules_headsup.html_safe %>
<% end %> <% end %>
<%= f.text_area :body_markdown, class: "article-field" %> <% if hiring_form?(@tag, @article) %> <% if current_user.organization %>
Publish under the <%= current_user.organization.name %> organization account?
<% end %>
<%= f.submit 'SAVE AS DRAFT', name: "submit_button", class: "draft-version" %> <%= f.submit 'PUBLISH', name: "submit_button" %>
<% end %>
<% if @user.has_role?(:admin) %> <%= f.label :comment_template %> <%= f.text_area :comment_template, class: "comment-template" %> <% end %>
<% end %> <% if true %> <% end %> <%= javascript_include_tag 'lib/js-yaml', async: true %> <%= javascript_include_tag 'https://cdnjs.cloudflare.com/ajax/libs/postscribe/2.0.8/postscribe.min.js', async: true %> <%= javascript_include_tag 'https://embed.runkit.com', async: true %>