display only few information on public audition page #55
@@ -12,20 +12,11 @@
|
|||||||
<%= card_header text: @casting_call.title %>
|
<%= card_header text: @casting_call.title %>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6 col-sm-12">
|
<div class="col-12">
|
||||||
<dl>
|
<dl>
|
||||||
<%= description_list_pair_for @casting_call, :title, append: ":" %>
|
<%= description_list_pair_for @casting_call, :title, append: ":" %>
|
||||||
<%= description_list_pair_for @casting_call, :description, append: ":" %>
|
<%= description_list_pair_for @casting_call, :description, append: ":" %>
|
||||||
<%= description_list_pair_for @casting_call, :project_description, append: ":" %>
|
<%= description_list_pair_for @casting_call, :project_description, append: ":" %>
|
||||||
<%= description_list_pair_for @casting_call, :created_at, append: ":" %>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6 col-sm-12">
|
|
||||||
<dl>
|
|
||||||
<%= description_list_pair_for @casting_call, :status, append: ":" %>
|
|
||||||
<%= description_list_pair_for @casting_call, :interview_instructions, append: ":" %>
|
|
||||||
<%= description_list_pair_for @casting_call, :interview_requirements, append: ":" %>
|
|
||||||
<%= description_list_pair_for @casting_call, :questions, append: ":" %>
|
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,20 +9,6 @@ SET xmloption = content;
|
|||||||
SET client_min_messages = warning;
|
SET client_min_messages = warning;
|
||||||
SET row_security = off;
|
SET row_security = off;
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: fuzzystrmatch; Type: EXTENSION; Schema: -; Owner: -
|
-- Name: fuzzystrmatch; Type: EXTENSION; Schema: -; Owner: -
|
||||||
--
|
--
|
||||||
@@ -331,8 +317,8 @@ CREATE TABLE public.appearance_releases (
|
|||||||
person_last_name character varying,
|
person_last_name character varying,
|
||||||
guardian_first_name character varying,
|
guardian_first_name character varying,
|
||||||
guardian_last_name character varying,
|
guardian_last_name character varying,
|
||||||
guardian_email character varying,
|
|
||||||
identifier character varying,
|
identifier character varying,
|
||||||
|
guardian_email character varying,
|
||||||
person_address_street2 character varying,
|
person_address_street2 character varying,
|
||||||
person_address_city character varying,
|
person_address_city character varying,
|
||||||
person_address_state character varying,
|
person_address_state character varying,
|
||||||
@@ -742,15 +728,6 @@ CREATE SEQUENCE public.contract_templates_id_seq
|
|||||||
ALTER SEQUENCE public.contract_templates_id_seq OWNED BY public.contract_templates.id;
|
ALTER SEQUENCE public.contract_templates_id_seq OWNED BY public.contract_templates.id;
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: data_migrations; Type: TABLE; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE public.data_migrations (
|
|
||||||
version character varying NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: directories; Type: TABLE; Schema: public; Owner: -
|
-- Name: directories; Type: TABLE; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
@@ -1492,6 +1469,7 @@ CREATE TABLE public.settings (
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.settings_id_seq
|
CREATE SEQUENCE public.settings_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
@@ -1527,6 +1505,7 @@ CREATE TABLE public.taggings (
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.taggings_id_seq
|
CREATE SEQUENCE public.taggings_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
@@ -1557,6 +1536,7 @@ CREATE TABLE public.tags (
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE SEQUENCE public.tags_id_seq
|
CREATE SEQUENCE public.tags_id_seq
|
||||||
|
AS integer
|
||||||
START WITH 1
|
START WITH 1
|
||||||
INCREMENT BY 1
|
INCREMENT BY 1
|
||||||
NO MINVALUE
|
NO MINVALUE
|
||||||
@@ -1917,9 +1897,9 @@ CREATE TABLE public.zoom_meetings (
|
|||||||
api_meeting_id character varying,
|
api_meeting_id character varying,
|
||||||
created_at timestamp(6) without time zone NOT NULL,
|
created_at timestamp(6) without time zone NOT NULL,
|
||||||
updated_at timestamp(6) without time zone NOT NULL,
|
updated_at timestamp(6) without time zone NOT NULL,
|
||||||
status integer DEFAULT 0,
|
|
||||||
zoom_user_id bigint,
|
zoom_user_id bigint,
|
||||||
project_id bigint
|
project_id bigint,
|
||||||
|
status integer DEFAULT 0
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@@ -2426,14 +2406,6 @@ ALTER TABLE ONLY public.contract_templates
|
|||||||
ADD CONSTRAINT contract_templates_pkey PRIMARY KEY (id);
|
ADD CONSTRAINT contract_templates_pkey PRIMARY KEY (id);
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: data_migrations data_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
||||||
--
|
|
||||||
|
|
||||||
ALTER TABLE ONLY public.data_migrations
|
|
||||||
ADD CONSTRAINT data_migrations_pkey PRIMARY KEY (version);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: directories directories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
-- Name: directories directories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
||||||
--
|
--
|
||||||
|
|||||||
@@ -19,9 +19,6 @@ RSpec.describe Public::CastingCallsController, type: :controller do
|
|||||||
expect(response.body).to have_content(casting_call.title)
|
expect(response.body).to have_content(casting_call.title)
|
||||||
expect(response.body).to have_content(casting_call.description)
|
expect(response.body).to have_content(casting_call.description)
|
||||||
expect(response.body).to have_content(casting_call.project_description)
|
expect(response.body).to have_content(casting_call.project_description)
|
||||||
expect(response.body).to have_content(casting_call.interview_instructions)
|
|
||||||
expect(response.body).to have_content(casting_call.interview_requirements)
|
|
||||||
expect(response.body).to have_content(casting_call.questions)
|
|
||||||
expect(response.body).to have_link("Schedule an Audition")
|
expect(response.body).to have_link("Schedule an Audition")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -74,6 +74,43 @@ feature "User managing casting calls" do
|
|||||||
expect(page).to have_content("The casting call request has been cancelled")
|
expect(page).to have_content("The casting call request has been cancelled")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scenario "can open casting call details" do
|
||||||
|
cc = create(:casting_call, title: "Dummy title", project: project)
|
||||||
|
|
||||||
|
visit project_casting_calls_path(project)
|
||||||
|
|
||||||
|
click_on manage_button
|
||||||
|
click_on view_button
|
||||||
|
|
||||||
|
expect(page).to have_content cc.title
|
||||||
|
expect(page).to have_content cc.description
|
||||||
|
expect(page).to have_content cc.project_description
|
||||||
|
expect(page).to have_content cc.created_at
|
||||||
|
expect(page).to have_content cc.status
|
||||||
|
expect(page).to have_content cc.interview_instructions
|
||||||
|
expect(page).to have_content cc.interview_requirements
|
||||||
|
expect(page).to have_content cc.questions
|
||||||
|
end
|
||||||
|
|
||||||
|
context "when signed out" do
|
||||||
|
scenario "user opens public accessible casting call URL" do
|
||||||
|
cc = create(:casting_call, title: "Dummy title", project: project)
|
||||||
|
|
||||||
|
sign_out
|
||||||
|
public_url = "/casting_calls/#{cc.token}"
|
||||||
|
visit public_url
|
||||||
|
|
||||||
|
expect(page).to have_content cc.title
|
||||||
|
expect(page).to have_content cc.description
|
||||||
|
expect(page).to have_content cc.project_description
|
||||||
|
expect(page).not_to have_content cc.created_at
|
||||||
|
expect(page).not_to have_content cc.status
|
||||||
|
expect(page).not_to have_content cc.interview_instructions
|
||||||
|
expect(page).not_to have_content cc.interview_requirements
|
||||||
|
expect(page).not_to have_content cc.questions
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def no_casting_calls_label
|
def no_casting_calls_label
|
||||||
@@ -84,6 +121,10 @@ feature "User managing casting calls" do
|
|||||||
t "casting_calls.casting_call.actions.manage"
|
t "casting_calls.casting_call.actions.manage"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def view_button
|
||||||
|
'View'
|
||||||
|
end
|
||||||
|
|
||||||
def add_new_casting_call_label
|
def add_new_casting_call_label
|
||||||
t "casting_calls.index.actions.new"
|
t "casting_calls.index.actions.new"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user