Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/assets/stylesheets/partials/_admin_workshop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
padding-top: 10px;
}

#workshop_description {
height: 150px;
}
2 changes: 1 addition & 1 deletion app/controllers/admin/workshops_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def destroy
def workshop_params
params.require(:workshop).permit(:local_date, :local_time, :chapter_id,
:invitable, :seats, :rsvp_open_local_date,
:rsvp_open_local_time, :ends_at, sponsor_ids: [])
:rsvp_open_local_time, :ends_at, :description, sponsor_ids: [])
end

def chapter_id
Expand Down
10 changes: 10 additions & 0 deletions app/views/admin/workshops/_edit_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,20 @@
.row
.large-6.columns
= f.input :host, as: :select, collection: Sponsor.all, include_blank: true, selected: (@workshop.host.id rescue '')
%br
.row
.large-6.columns
= f.association :sponsors
%br
.row
.large-6.columns
%h6 Default description text:
%small= t("workshops.lead")
.row
.large-6.columns
= f.input :description, as: :text, label: 'Additional description (supports HTML)',
placeholder: 'Use this space to write a description of the workshop.'
%br
.row
.large-6.columns
.panel.callout
Expand Down
10 changes: 10 additions & 0 deletions app/views/admin/workshops/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
.medium-6.columns.admin_margin
= f.association :sponsors, required: true
%br
.row
.large-6.columns
%h6 Default description text:
%p
%small= t("workshops.lead")
.row
.large-6.columns
= f.input :description, as: :text, label: 'Additional description (supports HTML)',
placeholder: 'Use this space to write a description of the workshop.'
%br
.row
.large-6.columns
.panel.callout
Expand Down
3 changes: 3 additions & 0 deletions app/views/admin/workshops/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
%strong.label.round.primary #{@workshop.venue.seats} student spots, #{@workshop.venue.coach_spots} coach spots
- unless @workshop.spaces?
%label.label.round.warning Full
%p.description
%br
= sanitize(@workshop.description)
%br
.row
.large-3.small-6.columns#host
Expand Down
4 changes: 3 additions & 1 deletion app/views/workshops/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
.row
.medium-12.columns
%p.lead
Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students.
= t("workshops.lead")
%p.description
= sanitize(@workshop.description)

- unless current_user and current_user.banned?
= render 'workshop_actions'
Expand Down
2 changes: 2 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ de:
paper: "Benutze Stift und Papier oder ein Whiteboard! Viele der Lernenden haben keine Vorgeschichte mit der Informatik. Zeichnungen und visuelle Hilfen können sehr nützlich sein."
stubling: "Lasse zu, dass die Lernenden auch mal stolpern. Wir lernen aus Fehlern, indem wir unseren eigenen Weg von der Frustration zur Lösung des Problems finden. Stehe den Lernenden unterstützend zur Seite, aber lass sie selbständig erkunden."
suggestions: "Hast du noch Vorschläge? Eröffne einen <a href='https://github.com/codebar/planner'>pull request</a> oder <a href='https://github.com/codebar/planner/issues/new'>erstelle eine issue</a>\""
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Veranstaltungen"
past: "Vergangene"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ en:
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problem in our own way. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en_AU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ en-AU:
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problem in our own way. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en_GB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ en-GB:
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problems in our own ways. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en_US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ en-US:
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problem in our own way. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ es:
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problem in our own way. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ fi:
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problem in our own way. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ fr:
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problem in our own way. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down
2 changes: 2 additions & 0 deletions config/locales/no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@
paper: "Use pen and paper or go to a whiteboard! Often students are coming from a non-technical background. Drawing and explaining with visual material is really helpful."
stubling: "Let them stumble. We learn by making mistakes, getting frustrated, and working through problem in our own way. Be supportive, but let them explore."
suggestions: "Do you have something to suggest? Make a <a href='https://github.com/codebar/planner'>pull request</a> or <a href='https://github.com/codebar/planner/issues/new'>create an issue</a>"
workshops:
lead: "Attend our workshops to learn programming in a safe and supportive environment at your own pace, or to share your knowledge and coach our students."
events:
title: "Events"
past: "Past"
Expand Down