end
def cvs_field_tags(form, repository)
- content_tag('p', form.text_field(:root_url,
- :label => 'CVSROOT', :size => 60, :required => true,
- :disabled => !repository.new_record?)) +
- content_tag('p', form.text_field(:url, :label => 'Module',
- :size => 30, :required => true,
- :disabled => !repository.new_record?)) +
- content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
- :label => 'Commit messages encoding', :required => true))
+ content_tag('p', form.text_field(:root_url,
+ :label => 'CVSROOT', :size => 60, :required => true,
+ :disabled => !repository.new_record?)) +
+ content_tag('p', form.text_field(:url, :label => 'Module',
+ :size => 30, :required => true,
+ :disabled => !repository.new_record?)) +
+ content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
+ :label => 'Commit messages encoding', :required => true))
end
def bazaar_field_tags(form, repository)
- content_tag('p', form.text_field(:url, :label => 'Root directory',
- :size => 60, :required => true,
- :disabled => (repository && !repository.new_record?))) +
- content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
- :label => 'Commit messages encoding', :required => true))
+ content_tag('p', form.text_field(:url, :label => 'Root directory',
+ :size => 60, :required => true,
+ :disabled => (repository && !repository.new_record?))) +
+ content_tag('p', form.select(:log_encoding, [nil] + Setting::ENCODINGS,
+ :label => 'Commit messages encoding', :required => true))
end
def filesystem_field_tags(form, repository)