mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Updated addon MCV
This commit is contained in:
parent
6b73b90092
commit
25586217bb
@ -241,11 +241,21 @@ class AddonsController extends AppController
|
||||
$this->set('manifestData', $manifestData);
|
||||
$this->render('add_step2');
|
||||
}
|
||||
elseif (isset($this->data['Addon']['add_step2'])) {
|
||||
|
||||
$this->render('add_step25');
|
||||
}
|
||||
elseif (isset($this->data['Addon']['add_step25'])) {
|
||||
elseif (isset($this->data['Addon']['add_step2']) || isset($this->data['Addon']['add_step25'])) {
|
||||
//Step 2 processing
|
||||
if (isset($this->data['Addon']['add_step2'])) {
|
||||
//Validate stuff
|
||||
|
||||
if($this->data['Addon']['ShowEula'] == 1) {
|
||||
$this->render('add_step25');
|
||||
die();
|
||||
}
|
||||
//Else, continue and show step3
|
||||
}
|
||||
//Step 2.5 processing
|
||||
if (isset($this->data['Addon']['add_step25'])) {
|
||||
}
|
||||
|
||||
//Get Platforms list
|
||||
$platformQry = $this->Platform->findAll();
|
||||
foreach ($platformQry as $k => $v) {
|
||||
|
@ -44,7 +44,7 @@ echo '<td>'.$html->textarea('Addon/Description', array('value' => $info[
|
||||
)).$html->tagErrorMsg('Addon/Description', _('Please enter a description of your add-on.')).'</td>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo '<td colspan=2>'.$html->checkbox('Addon/ShowEULA').' '._('I would like to add an End User License Agreement and/or Privacy Policy').'</td>';
|
||||
echo '<td colspan=2>'.$html->checkbox('Addon/ShowEula').' '._('I would like to add an End User License Agreement and/or Privacy Policy').'</td>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
echo '<td colspan=2>'.$html->submit(_('Next').' »').'</td>';
|
||||
|
9
webtools/remora/app/views/addons/add_step4.thtml
Normal file
9
webtools/remora/app/views/addons/add_step4.thtml
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
echo '<h1>'.(($newAddon === true) ? _('Submit New Add-on') : sprintf(_('Update %s'), $existing['Addon']['name'])).'</h1>';
|
||||
echo '<h2>'._('Step 4 :: Success').'</h2>';
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
echo '<td colspan=2>'._('Your add-on has been submited for review, etc.').'</td>';
|
||||
echo '</tr>';
|
||||
echo '</table>';
|
||||
?>
|
Loading…
Reference in New Issue
Block a user