Skip to content

Commit 63849e4

Browse files
authored
Merge pull request #583 from topcoder-platform/issues-559
Issues-559: Fixed popups
2 parents 07b41db + b23bb32 commit 63849e4

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

vanilla/applications/vanilla/controllers/class.discussioncontroller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ public function delete($discussionID, $target = '') {
774774
}
775775
}
776776

777-
$this->setData('Title', t('Delete Discussion'));
777+
$this->setData('Title', t('Delete'));
778778
$this->render();
779779
}
780780

vanilla/applications/vanilla/views/discussion/announce.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
echo $this->Form->open();
77
echo $this->Form->errors();
88

9-
echo '<div class="P">'.t('Where do you want to announce this discussion?').'</div>';
9+
echo '<div class="P Message">'.t('Where do you want to announce this discussion?').'</div>';
1010

11-
echo '<div class="P">', $this->Form->radio('Announce', '@'.sprintf(t('In <b>%s.</b>'), $this->data('Category.Name')), ['Value' => '2']), '</div>';
11+
echo '<div class="">', $this->Form->radio('Announce', '@'.sprintf(t('In <b>%s.</b>'), $this->data('Category.Name')), ['Value' => '2']), '</div>';
1212
// FIX: https://github.com/topcoder-platform/forums/issues/409
1313
//echo '<div class="P">', $this->Form->radio('Announce', '@'.sprintf(t('In <b>%s</b> and recent discussions.'), $this->data('Category.Name')), ['Value' => '1']), '</div>';
14-
echo '<div class="P">', $this->Form->radio('Announce', '@'.t("Don't announce."), ['Value' => '0']), '</div>';
14+
echo '<div class="">', $this->Form->radio('Announce', '@'.t("Don't announce."), ['Value' => '0']), '</div>';
1515

1616
echo '<div class="Buttons Buttons-Confirm">';
17-
echo $this->Form->button('OK');
1817
echo $this->Form->button('Cancel', ['type' => 'button', 'class' => 'Button Close']);
18+
echo $this->Form->button('OK', ['class' => 'Button Primary Action']);
1919
echo '<div>';
2020
echo $this->Form->close();
2121
?>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php if (!defined('APPLICATION')) exit(); ?>
2+
3+
<h1><?php echo $this->data('Title'); ?></h1>
4+
5+
<?php
6+
echo $this->Form->open();
7+
echo $this->Form->errors();
8+
9+
echo '<div class="P Message">'.sprintf(t('Are you sure you want to delete this %s?'), t('item')).'</div>';
10+
11+
echo '<div class="Buttons Buttons-Confirm">';
12+
echo $this->Form->button('Cancel', ['type' => 'button', 'class' => 'Button Close']);
13+
echo $this->Form->button('Delete', ['class' => 'Button Primary Delete']);
14+
echo '</div>';
15+
echo $this->Form->close();
16+
?>

vanilla/applications/vanilla/views/moderation/confirmdiscussionmoves.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php if (!defined('APPLICATION')) exit(); ?>
2-
<h1><?php echo $this->data('Title'); ?></h1>
2+
<h1><?php echo 'Move'; ?></h1>
33
<?php
44
echo $this->Form->open();
55
echo $this->Form->errors();
@@ -20,12 +20,12 @@
2020
t('You are about to move %1$s of the %2$s of the selected discussions.'),
2121
$CountAllowed,
2222
$CountCheckedDiscussions
23-
), 'p');
23+
), 'p', array('class'=>'P Message') );
2424
} else {
2525
echo wrap(sprintf(
2626
t('You are about to move %s.'),
2727
plural($CountCheckedDiscussions, '%s discussion', '%s discussions')
28-
), 'p');
28+
), 'p',array('class'=>'P Message'));
2929
}
3030
?>
3131

@@ -51,7 +51,7 @@
5151
<?php
5252
echo '<div class="Buttons Buttons-Confirm">';
5353
echo $this->Form->button('Cancel', ['type' => 'button', 'class' => 'Button Close']);
54-
echo $this->Form->button('Move', ['type' => 'submit', 'class' => 'Button Primary Move']);
54+
echo $this->Form->button('Move Discussion', ['type' => 'submit', 'class' => 'Button Primary Move']);
5555
echo '</div>';
5656
echo '</div>';
5757

0 commit comments

Comments
 (0)