Sha256: 32e5abdf4d5e100d63b5b7f91d87bddc109e42919a5c7705769db0422409c819

Contents?: true

Size: 912 Bytes

Versions: 1

Compression:

Stored size: 912 Bytes

Contents

<%
  block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12 posts__edit-status-switch')
  row = cell(:elements, :row).new
  form = cell(:inputs, :form).new(url: lato_blog.posts_update_status_path, method: :post, remote: true)
%>

<%=raw block.open %>

  <%=raw cell(:elements, :title).new(label: LANGUAGES[:lato_blog][:mixed][:switch_status], size: 6) %>

  <%=raw form.open %>

    <input type="hidden" name="id" value="<%= @post.id %>">

    <%=raw row.open %>

      <%=raw cell(:inputs, :select).new(name: 'status', options: [
        {value: 'published', name: LANGUAGES[:lato_blog][:posts_status][:published]},
        {value: 'drafted', name: LANGUAGES[:lato_blog][:posts_status][:drafted]},
        {value: 'deleted', name: LANGUAGES[:lato_blog][:posts_status][:deleted]}
      ], value: @post.meta_status, class: 'md-12') %>

    <%=raw row.close %>

  <%=raw form.close %>

<%=raw block.close %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lato_blog-2.1 app/views/lato_blog/back/posts/shared/edit/_edit_status_switch.html.erb