jbox-web/redmine_git_hosting

View on GitHub
app/views/repository_post_receive_urls/_new_modal.html.slim

Summary

Maintainability
Test Coverage
h3.title = l :label_post_receive_url_add

= labelled_form_for :repository_post_receive_url, @post_receive_url,
                    url: repository_post_receive_urls_path(@repository),
                    authenticity_token: form_authenticity_token,
                    html: { method: :post, class: 'tabular', remote: true } do |f|

  = render partial: 'form', locals: { f: f }
  .buttons
    = submit_tag l(:button_add)
    '
    = link_to_function l(:button_cancel), 'hideModal(this);'