Sha256: 07d03667a0e08c6b9f9bf36c8d2c8bdd5c82dac355ff99402d95ab2b93c49f14
Contents?: true
Size: 1.52 KB
Versions: 1
Compression:
Stored size: 1.52 KB
Contents
%dd{class: real_name(content_block)} .redditor__handle .redditor__control - if content_block.new_record? = link_to "", "javascript:void(0);", class: "redditor__delete", onclick: "if (confirm('#{t "redditor.remove?"}')) $(this).closest('dd').remove();" = link_to "", [redditor, :admin, p.object, content_block], class: "redditor__update", data: {:disable_with => t("redditor.saving")} - else = link_to "", [redditor, :admin, p.object, content_block], class: "redditor__delete", :method => :delete, remote: true, data: {confirm: "Вы, действительно, хотите удалить контент-блок?", disable_with: t("redditor.deleting")} = link_to "", [redditor, :admin, p.object, content_block], class: "redditor__update", data: {disable_with: t("redditor.saving")} = p.fields_for real_name(content_block).pluralize.to_sym, content_block, :include_id => false do |f| %div.redditor__form{data: {"object-name" => f.object.temp_id.present? ? f.object_name.sub!(/\[\d*\]/, "[#{f.object.temp_id}]") : f.object_name}, id: "#{real_name(content_block)}_#{content_block.id.nil? ? f.object.temp_id : content_block.id}"} = f.hidden_field :position, class: 'redditor__position' = render :partial => "redditor/admin/#{real_name(content_block)}", locals: {f: f} - unless f.object.new_record? = f.hidden_field :id = f.hidden_field :temp_id
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redditor-0.1.11 | app/views/redditor/admin/_content_block.haml |