2011-12-13 13:27:27 +00:00
|
|
|
- unless ['edit', 'update'].include? controller.action_name
|
|
|
|
.group
|
|
|
|
= f.label :name, :class => :label
|
|
|
|
= f.text_field :name, :class => 'text_field'
|
2011-03-31 00:10:23 +01:00
|
|
|
|
|
|
|
.group
|
2011-11-28 15:41:42 +00:00
|
|
|
= f.label :description, :class => :label
|
|
|
|
= f.text_field :description, :class => 'text_field'
|
2011-03-31 00:10:23 +01:00
|
|
|
|
2011-12-13 13:27:27 +00:00
|
|
|
- unless ['edit', 'update'].include? controller.action_name
|
|
|
|
.group
|
|
|
|
= f.label :distrib_type, :class => :label
|
|
|
|
= f.select :distrib_type, options_for_select(APP_CONFIG['distr_types'])
|
2011-10-27 17:31:54 +01:00
|
|
|
|
2011-12-13 13:27:27 +00:00
|
|
|
.group
|
|
|
|
= f.label :parent, :class => :label
|
|
|
|
= f.collection_select :parent_platform_id, Platform.all, :id, :description, :include_blank => true
|
2011-03-31 00:10:23 +01:00
|
|
|
|
|
|
|
.group
|
|
|
|
= f.label :released, :class => :label
|
|
|
|
= f.check_box :released, :class => 'check_box'
|
2011-12-01 09:29:04 +00:00
|
|
|
|
|
|
|
.group
|
2011-12-12 14:10:39 +00:00
|
|
|
= label_tag "", t("layout.platforms.admin_id"), :class => :label
|
2011-12-12 15:37:28 +00:00
|
|
|
= 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'
|
2011-03-31 00:10:23 +01:00
|
|
|
|
|
|
|
.group.navform.wat-cf
|
|
|
|
%button.button{:type => "submit"}
|
2012-02-27 23:16:14 +00:00
|
|
|
= image_tag("choose.png", :alt => t("layout.save"))
|
2011-03-31 00:10:23 +01:00
|
|
|
= t("layout.save")
|
|
|
|
%span.text_button_padding= t("layout.or")
|
2011-10-17 15:27:07 +01:00
|
|
|
= link_to t("layout.cancel"), @platforms_path, :class => "text_button_padding link_button"
|