体验新版 GitCode,发现更多精彩内容 >>
- page_title "New Environment" %h3.page-title New Environment %hr = form_for @environment, url: namespace_project_environments_path(@project.namespace, @project), html: { id: "new-environment-form", class: "form-horizontal js-new-environment-form js-requires-input" } do |f| = form_errors(@environment) .form-group = f.label :ref, 'Name', class: 'control-label' .col-sm-10 = f.text_field :name, required: true, tabindex: 2, class: 'form-control' .form-actions = f.submit 'Create', class: 'btn btn-create', tabindex: 3 = link_to 'Cancel', namespace_project_environments_path(@project.namespace, @project), class: 'btn btn-cancel'