-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from srogers/develop
Release v005
- Loading branch information
Showing
24 changed files
with
400 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
= f.input :name, :autofocus => true, label: 'Presentation Name' | ||
= f.input :conference_id, collection: [[@presentation.conference_name,@presentation.conference_id]], label: "Conference Name", input_html: { data: { delimiter: ',', placeholder: "enter a conference year...", source: conferences_path(format: :json) }, class: "select2-autocomplete", id: "conference_picker" } | ||
= f.label :description | ||
= f.trix_editor :description | ||
= f.input :tag_list, label: 'Subject Areas', hint: "economics, politics, psychology, etc. - separate with commas" | ||
= f.input :parts | ||
= f.input :duration, hint: "total minutes" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
.row | ||
.col-md-12 | ||
= title "Edit Presentation Details" | ||
.row | ||
.col-md-12 | ||
= simple_form_for @presentation do |f| | ||
= render :partial => "form_fields", :locals => {:f => f} | ||
= render :partial => "base_form_fields", :locals => {:f => f} | ||
= save_or_cancel f, presentation_path(@presentation), 'Save' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.row | ||
.col-md-12 | ||
%h4= @presentation.name | ||
.row | ||
.col-md-12 | ||
%h5 Manage Publications | ||
%ul | ||
- if @presentation.publications.empty? | ||
%li None Yet | ||
- @presentation.publications.each do |publication| | ||
%li | ||
- if publication.url.present? | ||
= link_to publication.format, publication.url, target: '_blank' | ||
- else | ||
= publication.format | ||
= publication.published_on.year | ||
- if publication.notes.present? | ||
= " - #{ publication.notes }" | ||
= link_to icon('edit', :class => 'fa-fw'), edit_publication_path(publication) | ||
= link_to icon('trash', :class => 'fa-fw'), publication_path(publication), :method => :delete, :data => { :confirm => 'remove this publication?' }, :post => true, class: 'text-danger' | ||
|
||
.row | ||
.col-md-12 | ||
%h5 Add a publication | ||
= simple_form_for @publication, :html => {:autocomplete => "off"} do |f| | ||
= render partial: "publications/form_fields", locals: {:f => f} | ||
%p= f.submit "Add" | ||
|
||
.row | ||
.col-md-12 | ||
%p= link_to "Done", presentation_path(@presentation), :class => "btn btn-primary" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.row | ||
.col-md-12 | ||
%h4= @presentation.name | ||
.row | ||
.col-md-12 | ||
%h5 Manage Speakers | ||
%ul | ||
- @presentation.presentation_speakers.each do |presentation_speaker| | ||
%li | ||
= presentation_speaker.speaker.name | ||
=# link_to icon('edit', 'Edit', :class => 'fa-fw'), presentation_speaker_path(presentation_speaker), edit_presentation_speaker_path(presentation_speaker) | ||
= link_to icon('trash-alt', :class => 'fa-fw'), presentation_speaker_path(presentation_speaker), :method => :delete, :data => { :confirm => 'remove this speaker?' }, :post => true, class: 'text-danger' | ||
|
||
.row | ||
= simple_form_for @presentation_speaker, :html => {:autocomplete => "off", id: 'new_presentation_speaker_form'} do |ps| | ||
.col-md-6 | ||
= ps.input :presentation_id, as: :hidden, input_html: { value: @presentation.id } | ||
= ps.input :speaker_id, collection: [['',0]], label: false, input_html: { data: { delimiter: ',', placeholder: "enter a speaker name...", width: 400, source: speakers_path(format: :json), exclude: @current_speaker_ids }, class: "select2-autocomplete" } | ||
.col-md-6 | ||
%p= ps.submit 'Add', form: 'new_presentation_speaker_form' | ||
|
||
.row | ||
.col-md-12 | ||
%p= link_to "Done", presentation_path(@presentation), :class => "btn btn-primary" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.row | ||
.col-md-12 | ||
= title "Add a New Presentation" | ||
.row | ||
.col-md-12 | ||
= simple_form_for @presentation, :html => {:autocomplete => "off"} do |f| | ||
= render :partial => "form_fields", :locals => {:f => f} | ||
= simple_fields_for :presentation_speaker do |p| | ||
= p.input :speaker_id, collection: [['',0]], label: false, input_html: { data: { delimiter: ',', placeholder: "enter a speaker name...", source: speakers_path(format: :json) }, class: "select2-autocomplete" }, label: "Speaker" | ||
|
||
= render :partial => "base_form_fields", :locals => {:f => f} | ||
= save_or_cancel f, presentations_path, 'Create' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.