Sha256: 3f2d0797051a8e7cfd3cecf980379272949ab5547b8a90eb2b36c826a4ed5db9

Contents?: true

Size: 1.6 KB

Versions: 6

Compression:

Stored size: 1.6 KB

Contents

- @page_title = t('workarea.admin.content_blogs.new.page_title')

.view
  .view__header
    .grid.grid--middle
      .grid__cell.grid__cell--25
        = render 'workarea/admin/releases/select'
      .grid__cell.grid__cell--50
        .view__heading
          = link_to t('workarea.admin.content_blogs.new.blogs'), content_blogs_path
          %h1= t('workarea.admin.content_blogs.new.title')

  - if @blog.errors.present?
    = render 'workarea/admin/shared/errors', errors: @blog.errors

  .view__container.view__container--narrow
    = form_tag content_blogs_path, method: 'post', id: 'blog_form' do
      .section
        .property.property--required
          = label_tag 'blog_name', nil, class: 'property__name' do
            %span.property__text= t('workarea.admin.content_blogs.new.name')
          = text_field_tag 'blog[name]', @blog.name, class: 'text-box text-box--i18n', required: true
        .property
          = label_tag 'blog_slug', nil, class: 'property__name' do
            %span.property__text= t('workarea.admin.content_blogs.new.page_url')
          %span= storefront.blog_url('')
          = text_field_tag 'blog[slug]', @blog[:slug], class: 'text-box text-box--medium', placeholder: @blog[:slug] || 'your-slug-here'
          %span.property__note= t('workarea.admin.content_blogs.new.page_url_note')

      .workflow-bar
        .grid.grid--auto.grid--right.grid--middle
          .grid__cell= render 'workarea/admin/shared/publishing_select'
          .grid__cell= button_tag t('workarea.admin.content_blogs.new.create_blog'), value: 'save_blog', class: 'workflow-bar__button workflow-bar__button--create'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-blog-3.5.2 app/views/workarea/admin/content_blogs/new.html.haml
workarea-blog-3.5.1 app/views/workarea/admin/content_blogs/new.html.haml
workarea-blog-3.5.0 app/views/workarea/admin/content_blogs/new.html.haml
workarea-blog-3.4.9 app/views/workarea/admin/content_blogs/new.html.haml
workarea-blog-3.4.8 app/views/workarea/admin/content_blogs/new.html.haml
workarea-blog-3.4.7 app/views/workarea/admin/content_blogs/new.html.haml