2011-12-13 13:27:27 +00:00
|
|
|
- unless ['edit', 'update'].include? controller.action_name
|
2012-03-13 15:05:33 +00:00
|
|
|
.leftlist= f.label :name, :class => :label
|
|
|
|
.rightlist= f.text_field :name, :class => 'text_field'
|
2012-03-15 22:56:12 +00:00
|
|
|
.both
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2012-03-13 15:05:33 +00:00
|
|
|
.leftlist= f.label :description, :class => :label
|
2012-03-15 22:56:12 +00:00
|
|
|
.rightlist= f.text_area :description, :class => 'text_field'
|
|
|
|
.both
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2011-12-13 13:27:27 +00:00
|
|
|
- unless ['edit', 'update'].include? controller.action_name
|
2012-03-13 15:05:33 +00:00
|
|
|
.leftlist= f.label :distrib_type, :class => :label
|
|
|
|
.rightlist= f.select :distrib_type, options_for_select(APP_CONFIG['distr_types'])
|
2012-03-15 22:56:12 +00:00
|
|
|
.both
|
2011-10-27 17:31:54 +01:00
|
|
|
|
2012-03-20 13:12:56 +00:00
|
|
|
-#.leftlist= f.label :parent, :class => :label
|
|
|
|
.rightlist= f.collection_select :parent_platform_id, Platform.all, :id, :description, :include_blank => true
|
|
|
|
.both
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2012-03-16 13:25:34 +00:00
|
|
|
- unless @platform.platform_type.in? ['personal']
|
|
|
|
.leftlist= f.label :released, :class => :label
|
|
|
|
.rightlist= f.check_box :released, :class => 'check_box'
|
|
|
|
.both
|
2011-12-01 09:29:04 +00:00
|
|
|
|
2012-03-16 13:25:34 +00:00
|
|
|
.leftlist= label_tag "", t("layout.platforms.admin_id"), :class => :label
|
|
|
|
.rightlist= autocomplete_field_tag 'admin_id', @admin_uname, autocomplete_user_uname_platforms_path, :id_element => '#admin_id_field'
|
|
|
|
= hidden_field_tag 'admin_id', @admin_id, :id => 'admin_id_field'
|
|
|
|
.both
|
2012-03-13 15:05:33 +00:00
|
|
|
|
|
|
|
.button_block
|
2012-03-15 22:56:12 +00:00
|
|
|
= submit_tag t("layout.save")
|
2012-03-13 15:05:33 +00:00
|
|
|
-#%input.button{:type => "submit", :class => "button"}
|
|
|
|
-#= image_tag("choose.png", :alt => t("layout.save"))
|
|
|
|
-#= t("layout.clone")
|
2011-03-31 00:10:23 +01:00
|
|
|
%span.text_button_padding= t("layout.or")
|
2012-03-15 22:56:12 +00:00
|
|
|
= link_to t("layout.cancel"), @platform.new_record? ? root_path : platform_path(@platform), :class => "button"
|