2012-09-06 14:43:50 +01:00
|
|
|
- unless ['edit', 'update'].include? controller.action_name
|
|
|
|
.leftlist= f.label :name, t("activerecord.attributes.repository.name"), :class => :label
|
|
|
|
.rightlist= f.text_field :name, :class => 'text_field'
|
2011-03-31 02:15:17 +01:00
|
|
|
|
2012-03-14 17:22:47 +00:00
|
|
|
.leftlist= f.label :description, t("activerecord.attributes.repository.description"), :class => :label
|
|
|
|
.rightlist= f.text_field :description, :class => 'text_field'
|
|
|
|
|
2012-09-06 14:43:50 +01:00
|
|
|
.leftlist= f.label :publish_wtihout_qa, t("activerecord.attributes.repository.publish_wtihout_qa"), :class => :label
|
|
|
|
.rightlist= f.check_box :publish_wtihout_qa, :class => 'check_box'
|
|
|
|
|
2012-03-14 17:22:47 +00:00
|
|
|
.both
|
2011-03-31 02:15:17 +01:00
|
|
|
|
2012-03-14 17:22:47 +00:00
|
|
|
.button_block
|
|
|
|
= submit_tag t("layout.save")
|
|
|
|
%span.text_button_padding= t("layout.or")
|
2012-03-15 22:56:12 +00:00
|
|
|
= link_to t("layout.cancel"), @repository.new_record? ? platform_repositories_path(@platform) : platform_repository_path(@platform, @repository), :class => "button"
|