<%- if @publication.has_articles? -%> <%- set_title 'Article Details' -%>
<%= legend_tag 'About This Article' -%>
<%= faux_field 'Headline', @managed_content.headline %> <%= faux_field 'Subheader', @managed_content.subheader %> <%= faux_field 'Author', @managed_content.author %> <%= faux_field 'Status', @managed_content.state.capitalize %> <%= faux_field 'URL', @managed_content.humanize_path %>
<%= faux_field 'Publication Date', @managed_content.publication_date %> <%= faux_field 'Revision Date', @managed_content.revision_date %> <%= faux_field 'Summary', @managed_content.summary %>
<%- if @managed_content.has_sections? -%>
<%= legend_tag 'Article Sections' -%> <%= render 'admin/sections/index' -%>
<%- else -%>
<%= legend_tag 'Article Content' -%>
<%= faux_field 'Content', @managed_content.content %>
<%= faux_field 'References', @managed_content.references %>
<%- end -%> <%- unless @managed_content.related_content.blank? -%>
<%= legend_tag 'Related Articles' -%>
<%- end -%> <%- if @managed_content.has_sections? -%> <%= link_to 'Add a Section', new_admin_publication_managed_content_section_path(@publication, @managed_content), :class => 'button' -%> <%- end -%> <%- elsif @publication.has_faqs? -%> <%- set_title 'FAQ Details' -%>
<%= legend_tag 'About This FAQ' -%>
<%= faux_field 'Question', @managed_content.headline %> <%= faux_field 'Answer', @managed_content.answer %>
<%= faux_field 'Slug', @managed_content.slug %> <%= faux_field 'Status', @managed_content.state.capitalize %> <%= faux_field 'Desscription', @managed_content.summary -%> <%= faux_field 'Keywords', @managed_content.keywords -%> <%= faux_field 'Breadcrumbs', @managed_content.breadcrumbs -%> <%= faux_field 'Title', @managed_content.title -%> <%= faux_field 'Header', @managed_content.subheader -%>
<%- unless @managed_content.references.blank? -%>
<%= legend_tag 'References' -%>
<%= faux_field '', @managed_content.references %>
<%- end -%> <%- elsif @publication.has_terms? -%> <%- set_title 'Term Details' -%>
<%= legend_tag 'About This Term' -%>
<%= faux_field 'Term', @managed_content.headline %>
<%= faux_field 'Status', @managed_content.state.capitalize %>


<%= faux_field 'Definition', @managed_content.definition %>
<%= faux_field 'References', @managed_content.references %>
<%= legend_tag 'Related Terms' -%>
<%- elsif @publication.has_documents? -%> <%- set_title 'Document Details' -%>
<%= legend_tag 'About This Document' -%>
<%= faux_field 'Title', @managed_content.headline %> <%- if @managed_content.document.url -%> <%= faux_field 'Attached File', link_to(@managed_content.document, @managed_content.document.url, :class => 'pdf') -%> <%- end -%>
<%= faux_field 'Status', @managed_content.state.capitalize %>


<%- end -%>