rosa-build/app/views/platforms/repositories/_form.html.haml

27 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-02-12 11:16:45 +00:00
- if ['edit', 'update'].exclude? controller.action_name
2014-01-21 04:51:49 +00:00
.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
2014-01-21 04:51:49 +00:00
.leftlist= f.label :description, t("activerecord.attributes.repository.description"), class: :label
.rightlist= f.text_field :description, class: 'text_field'
2014-01-21 04:51:49 +00:00
.leftlist= f.label :publish_without_qa, t("activerecord.attributes.repository.publish_without_qa"), class: :label
.rightlist= f.check_box :publish_without_qa, class: 'check_box'
2014-01-13 22:37:27 +00:00
.leftlist= f.label :synchronizing_publications
.rightlist= f.check_box :synchronizing_publications
- if @platform.main?
.both
.leftlist= f.label :publish_builds_only_from_branch
.rightlist= f.text_field :publish_builds_only_from_branch
.both
.hr
2011-03-31 02:15:17 +01:00
.button_block
2014-01-21 04:51:49 +00:00
= submit_tag t('layout.save'), data: {'disable-with' => t('layout.saving')}
%span.text_button_padding= t("layout.or")
2014-01-21 04:51:49 +00:00
= link_to t("layout.cancel"), @repository.new_record? ? platform_repositories_path(@platform) : platform_repository_path(@platform, @repository), class: "button"