From 400fb6f0f92c696d5384771bfa50aa050d1e50eb Mon Sep 17 00:00:00 2001 From: Summer <73361970+summer-cook@users.noreply.github.com> Date: Fri, 4 Aug 2023 09:22:20 -0300 Subject: [PATCH] remove spec file, view file already exists in this case? (#644) --- spec/views/hyrax/contact_form/new.html.erb | 52 ---------------------- 1 file changed, 52 deletions(-) delete mode 100644 spec/views/hyrax/contact_form/new.html.erb diff --git a/spec/views/hyrax/contact_form/new.html.erb b/spec/views/hyrax/contact_form/new.html.erb deleted file mode 100644 index 18ddba15c..000000000 --- a/spec/views/hyrax/contact_form/new.html.erb +++ /dev/null @@ -1,52 +0,0 @@ -<%# Hyrax 3.4.2 override to add negative captcha %> -<% provide :page_title, I18n.t('hyrax.contact_form.title') %> - -
- <%= render 'directions' %> -
- -

- <%= t('hyrax.contact_form.header') %> -

- -<% if user_signed_in? %> - <% nm = current_user.name %> - <% em = current_user.email %> -<% else %> - <% nm = '' %> - <% em = '' %> -<% end %> - -<%= form_for @contact_form, url: hyrax.contact_form_index_path, - html: { class: 'form-horizontal' } do |f| %> - <%= raw negative_captcha(@captcha) %> - <%= f.text_field :contact_method, class: 'hide' %> -
- <%= f.label :category, t('hyrax.contact_form.type_label'), class: "col-sm-2 control-label" %> -
- <%= f.select 'category', options_for_select(contact_form_issue_type_options), { include_blank: t('hyrax.contact_form.select_type') }, {class: 'form-control', required: true } %> -
-
- -
- <%= negative_label_tag(@captcha, :name, t('hyrax.contact_form.name_label'), class: "col-sm-2 control-label" ) %> -
<%= negative_text_field_tag(@captcha, :name, value: nm, class: 'form-control', required: true ) %>
-
- -
- <%= negative_label_tag(@captcha, :email, t('hyrax.contact_form.email_label'), class: "col-sm-2 control-label" ) %> -
<%= negative_text_field_tag(@captcha, :email, value: em, class: 'form-control', required: true ) %>
-
- -
- <%= f.label :subject, t('hyrax.contact_form.subject_label'), class: "col-sm-2 control-label" %> -
<%= f.text_field :subject, class: 'form-control', required: true %>
-
- -
- <%= negative_label_tag(@captcha, :message, t('hyrax.contact_form.message_label'), class: "col-sm-2 control-label" ) %> -
<%= negative_text_area_tag(@captcha, :message, rows: 4, class: 'form-control', required: true ) %>
-
- - <%= f.submit value: t('hyrax.contact_form.button_label'), class: "btn btn-primary" %> -<% end %> \ No newline at end of file