Sha256: d8fc61e023dcb52c2551eae5b3ec3aae5fbac223510a4b4b3734d91d12703a94

Contents?: true

Size: 687 Bytes

Versions: 17

Compression:

Stored size: 687 Bytes

Contents

<%= form_for [:admin, @content], :remote => true do |f| %>
  <%= f.error_messages %>
  <%= f.hidden_field :element_id %>
  <table>
    <tr>
      <td class="label"><%= f.label :name %></td>
      <td class="select">
        <%= f.select('name', @contents.map { |content|
          [
            _t(content['name'], scope: 'content_names', default: content['name'].humanize),
            content['name']
          ]
        }, {}, {:class => 'alchemy_selectbox'}) %>
      </td>
    </tr>
    <tr>
      <td class="submit" colspan="2">
        <%= hidden_field_tag('options', @options) %>
        <%= f.button _t(:create), :class => 'button' %>
      </td>
    </tr>
  </table>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/contents/new.html.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/contents/new.html.erb