2012-03-30 15:54:30 +01:00
|
|
|
-set_meta_tags :title => [title_object(@platform), t('layout.platforms.edit')]
|
2012-03-13 15:05:33 +00:00
|
|
|
= render :partial => 'submenu'
|
|
|
|
= render :partial => 'sidebar'
|
|
|
|
|
|
|
|
= form_for @platform, :url => platform_path(@platform), :html => { :class => :form } do |f|
|
|
|
|
= render :partial => "form", :locals => {:f => f}
|
2012-03-16 13:25:34 +00:00
|
|
|
|
2012-03-20 13:12:56 +00:00
|
|
|
- if can? :destroy, @platform
|
|
|
|
.hr
|
|
|
|
.leftside
|
|
|
|
= t("layout.platforms.delete_warning")
|
|
|
|
.rightside
|
2012-03-20 17:44:56 +00:00
|
|
|
= link_to t("layout.delete"), platform_path(@platform), :method => :delete, :confirm => t("layout.platforms.confirm_delete"), :class => 'button'
|
2012-03-20 13:12:56 +00:00
|
|
|
.both
|
2012-03-16 13:25:34 +00:00
|
|
|
|
2012-03-13 15:05:33 +00:00
|
|
|
-#.block
|
2011-03-31 00:10:23 +01:00
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
|
|
|
%li.first= link_to t("layout.platforms.list"), platforms_path
|
|
|
|
%li= link_to t("layout.platforms.new"), new_platform_path
|
|
|
|
%li.active= link_to t("layout.platforms.edit"), edit_platform_path
|
|
|
|
.content
|
|
|
|
%h2.title
|
|
|
|
= t("layout.platforms.edit_header")
|
|
|
|
.inner
|
|
|
|
= form_for @platform, :url => platform_path(@platform), :html => { :class => :form } do |f|
|
|
|
|
= render :partial => "form", :locals => {:f => f}
|
2012-03-13 15:05:33 +00:00
|
|
|
-# content_for :sidebar, render(:partial => 'sidebar')
|