Skip to content

Commit c431f70

Browse files
committed
Final updates to speaker language on CFP
Signed-off-by: Jimmy McArthur <jimmy@tipit.net>
1 parent bf60423 commit c431f70

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

summit/code/forms/AddSpeakerForm.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function getFormFields() {
4949
$max_moderators_reached = $this->presentation->maxModeratorsReached();
5050
$use_moderator = $this->presentation->Type()->UseModerator;
5151
$moderator_exists = $this->presentation->Moderator()->exists();
52-
$speaker_type = ($use_moderator && (!$max_moderators_reached || !$use_speakers)) ? 'moderator' : 'speaker';
52+
$speaker_type = ($use_moderator && (!$max_moderators_reached || !$use_speakers)) ? 'moderator' : 'moderator';
5353

5454
$fields = FieldList::create(
5555
LiteralField::create('SpeakerNote',
@@ -84,14 +84,14 @@ protected function getFormFields() {
8484
|| $this->presentation->ModeratorID == Member::currentUser()->getSpeakerProfile()->ID) {
8585
$fields->replaceField('SpeakerType', HiddenField::create('SpeakerType', '', 'Else'));
8686
$fields->field('EmailAddress')
87-
->setTitle('Enter the first name, last name or email address of your presenter/moderator (*)')
87+
->setTitle('Enter the first name, last name or email address of your '.$speaker_type.' (*)')
8888
->setDisplayLogicCriteria(null);
8989
}
9090

9191
if ( (!$use_speakers || $speakers_exists) && (!$use_moderator || $moderator_exists) ) {
9292
if ( ($use_speakers && !$max_speakers_reached) || ($use_moderator && !$max_moderators_reached) ) {
9393
$fields->insertBefore(
94-
LiteralField::create('MoreSpeakers', '<h3 class="more-speakers">Any more presenters/moderators to add?</h3>'),
94+
LiteralField::create('MoreSpeakers', '<h3 class="more-speakers">Any more '.$speaker_type.' to add?</h3>'),
9595
'SpeakerNote'
9696
);
9797
$fields->removeField('SpeakerNote');
@@ -119,12 +119,12 @@ protected function getFormActions($controller) {
119119
$max_moderators_reached = $this->presentation->maxModeratorsReached();
120120
$use_moderator = $this->presentation->Type()->UseModerator;
121121
$moderator_exists = $this->presentation->Moderator()->exists();
122-
$speaker_type = ($use_moderator && (!$max_moderators_reached || !$use_speakers)) ? 'moderator' : 'speaker';
122+
$speaker_type = ($use_moderator && (!$max_moderators_reached || !$use_speakers)) ? 'moderator' : 'moderator';
123123
$actions = array();
124124

125125
if ( (!$use_speakers || $speakers_exists) && (!$use_moderator || $moderator_exists) ) {
126126
if (($use_speakers && !$max_speakers_reached) || ($use_moderator && !$max_moderators_reached)) {
127-
$actions[] = FormAction::create('doAddSpeaker', '<i class="fa fa-plus fa-start"></i> Add another moderator');
127+
$actions[] = FormAction::create('doAddSpeaker', '<i class="fa fa-plus fa-start"></i> Add another '.$speaker_type);
128128
}
129129

130130
$default_actions = $controller->createSaveActions('doFinishSpeaker', 3);

summit/code/forms/PresentationForm.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function getPresentationFields() {
7878
foreach($types as $type){
7979
$instructions .= $type->Type;
8080
if(intval($type->MaxSpeakers > 0))
81-
$instructions .= sprintf(" Max %s speakers", $type->MaxSpeakers);
81+
$instructions .= sprintf(" Max %s moderators", $type->MaxSpeakers);
8282

8383
if(intval($type->MaxModerators > 0))
8484
$instructions .= sprintf(" %s moderator", $type->MaxModerators);
@@ -87,7 +87,7 @@ protected function getPresentationFields() {
8787
}
8888
$instructions .= ')';
8989
$fields = FieldList::create()
90-
->text('Title', 'Proposed Presentation Title')
90+
->text('Title', 'Proposed Title')
9191
->configure()
9292
->setAttribute('autofocus','TRUE')
9393
->end()
@@ -98,7 +98,7 @@ protected function getPresentationFields() {
9898
->setSource($types->map('ID', 'Type'))
9999
->end()
100100
->literal('CategoryContainer','<div id="category_options"></div>')
101-
->dropdown('Level','Select the technical level of your presentation content')
101+
->dropdown('Level','Select the technical level of your session')
102102
->configure()
103103
->setEmptyString('-- Select one --')
104104
->setSource(Presentation::create()->dbObject('Level')->enumValues())
@@ -114,13 +114,13 @@ protected function getPresentationFields() {
114114
->setRows(10)
115115
->setColumns(8)
116116
->end()
117-
->tinyMCEEditor('AttendeesExpectedLearnt','What should attendees expect to learn? (1000 chars)')
117+
->tinyMCEEditor('AttendeesExpectedLearnt','Why is this session useful? (1000 chars)')
118118
->configure()
119119
->setRows(20)
120120
->setColumns(8)
121121
->end()
122122
->optionset('AttendingMedia',
123-
'Are you available to discuss the topic of this presentation with attending media?',
123+
'Are you available to discuss this topic with attending media?',
124124
array(
125125
1 => 'Yes',
126126
0 => 'No'
@@ -145,7 +145,7 @@ protected function getPresentationFields() {
145145
->end()
146146
->literal('EndHr','<hr>');
147147

148-
$CategoryGroupField = new CategoryGroupField('GroupID','Select the <a href="'.$this->summit->Link.'categories" target="_blank">Summit Category</a> of your presentation');
148+
$CategoryGroupField = new CategoryGroupField('GroupID','Select the <a href="'.$this->summit->Link.'categories" target="_blank">Summit Category</a> of your session');
149149
$CategoryGroupField->setSource($category_groups_map);
150150
if(count($category_groups_map) < 2 && count($category_groups_map) > 0 ) {
151151
$CategoryGroupField->setValue($category_groups_map[0]['id']);

summit/templates/PresentationPage.ss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<% if $IsWelcome %>
2020
<div class="presentation-app-header success">
2121
<div class="container">
22-
<p class="status">Welcome to OpenStack!</p>
22+
<p class="status">Welcome to the OpenStack CFP!</p>
2323
</div>
2424
</div>
2525
<% end_if %>

0 commit comments

Comments
 (0)