Updated addon MCV

This commit is contained in:
fligtar%gmail.com 2006-08-28 03:22:04 +00:00
parent 6b73b90092
commit 25586217bb
3 changed files with 25 additions and 6 deletions

View File

@ -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) {

View File

@ -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').' &raquo;').'</td>';

View 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>';
?>