Sha256: b21168b5655b3865de9709d40a57c8747365095f9ee3c221bff9eaf4276672e4
Contents?: true
Size: 1.53 KB
Versions: 45
Compression:
Stored size: 1.53 KB
Contents
<% @post_tag = CamaleonCms::PostTag.new(parent_id: params[:post_type_id]) 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
45 entries across 45 versions & 2 rubygems