Sha256: 82b61652b7129cea72c5b421152b7c27ad943863f1bd0431a4d747790f0b62b0

Contents?: true

Size: 1.5 KB

Versions: 30

Compression:

Stored size: 1.5 KB

Contents

<% @post_tag = CamaleonCms::PostTag.new if @post_tag.nil? %>
<%= form_for @post_tag, as: "post_tag", url:{action: @post_tag.new_record? ? :create : :update} , html:{class: 'validate-post-tag cama_ajax_request'} do |f| %>
    <%= f.hidden_field :parent_id  %>
    <%= f.hidden_field :taxonomy %>
    <div class="panel-body">
      <%= render partial: 'layouts/camaleon_cms/admin/form_error', locals: {data: @post_tag} %>
        <div class="form-group">
          <%= f.label t('camaleon_cms.admin.table.name') %><br>
          <%= f.text_field :name, :class => "form-control required translatable" %>
        </div>
        <div class="form-group">
            <%= f.label t('camaleon_cms.admin.table.slug') %><br>
            <%= f.text_field :slug, :class => "form-control no_translate required slug", "data-parent" => "post_tag_name" %>
        </div>

        <div class="form-group">
          <%= f.label t('camaleon_cms.admin.table.description') %><br>
          <%= f.text_area :description, :class => "form-control", :rows => 4 %>
        </div>
        <%= render partial: "camaleon_cms/admin/settings/custom_fields/render", locals: {record: @post_tag, field_groups: @post_type.get_field_groups({kind: "PostTag"})} %>
    </div>
    <div class="panel-footer">
      <a class="btn btn-default" role="back" href="<%= url_for action: :index %>"><%= t('camaleon_cms.admin.button.back') %></a>
      <button class="btn btn-primary pull-right" type="submit"><%= t('camaleon_cms.admin.button.submit')%></button>
    </div>
<% end %>

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
camaleon_cms-2.4.5.1 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.5 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4.7 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4.6 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4.5 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4.4 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4.3 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4.2 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4.1 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.4 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.13 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.12 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.11 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.10 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.9 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.8 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.7 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.6 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.5 app/views/camaleon_cms/admin/post_tags/_form.html.erb
camaleon_cms-2.4.3.4 app/views/camaleon_cms/admin/post_tags/_form.html.erb