mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
mention organization in dashboard, splashpage and admin/conference#edit
This commit is contained in:
parent
32c5af2a17
commit
540c982771
5 changed files with 25 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
|||
= semantic_form_for(@conference, url: admin_conference_path(@conference.short_title), html: {multipart: true}) do |f|
|
||||
= f.input :title, hint: "The full title of the conference, e.g. 'openSUSE Conference 2014'"
|
||||
= f.input :short_title, hint: "A short title, e.g. 'oSC14', to be used in URLs"
|
||||
= f.input :organization, hint: 'The organization in which this conference belongs', input_html: { disabled: true }
|
||||
= f.input :description, hint: markdown_hint('A description of the conference.'), input_html: { rows: 5, data: { provide: 'markdown-editable' } }
|
||||
= f.input :color, hint: 'The color will be used eg for the dashboard.', input_html: {size: 6, type: 'color'}
|
||||
= f.label 'Conference Logo'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
%h1
|
||||
%span.fa.fa-tachometer
|
||||
Dashboard for #{@conference.title}
|
||||
Dashboard for #{@conference.title} ( by #{@conference.organization.name} )
|
||||
%hr
|
||||
.row
|
||||
.col-sm-4.col-xs-4
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@
|
|||
.col-md-8
|
||||
%h1
|
||||
= @conference.title
|
||||
%h3
|
||||
%i
|
||||
= "( by #{@conference.organization.name} )"
|
||||
%p.lead
|
||||
- if @conference.venue
|
||||
= "#{@conference.venue.city} / #{@conference.venue.country_name}"
|
||||
|
|
|
|||
|
|
@ -71,6 +71,15 @@ feature Conference do
|
|||
end
|
||||
|
||||
describe 'admin' do
|
||||
let!(:conference) { create(:conference) }
|
||||
|
||||
scenario 'has organization name in edit form', feature: true, js: true do
|
||||
sign_in user
|
||||
visit edit_admin_conference_path(conference.short_title)
|
||||
org_id = find('#conference_organization_id').value
|
||||
expect(Organization.find(org_id)).to eq conference.organization
|
||||
end
|
||||
|
||||
it_behaves_like 'add and update conference'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -61,4 +61,15 @@ feature Splashpage do
|
|||
expect(current_path).to eq(root_path)
|
||||
end
|
||||
end
|
||||
|
||||
context 'public splashpage already created' do
|
||||
let!(:splashpage) { create(:splashpage, conference: conference, public: true)}
|
||||
|
||||
scenario 'should have organization name', feature: true, js: true do
|
||||
sign_in participant
|
||||
visit conference_path(conference.short_title)
|
||||
|
||||
expect(page).to have_text(conference.organization.name)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue