00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 class Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Release
00035 extends Mage_Adminhtml_Block_Extensions_Custom_Edit_Tab_Abstract
00036 {
00037 public function __construct()
00038 {
00039 parent::__construct();
00040 $this->setTemplate('extensions/custom/release.phtml');
00041 }
00042
00043 public function initForm()
00044 {
00045 $form = new Varien_Data_Form();
00046 $form->setHtmlIdPrefix('_release');
00047
00048 $fieldset = $form->addFieldset('release_fieldset', array('legend'=>Mage::helper('adminhtml')->__('Release')));
00049
00050 $stabilityOptions = Mage::getModel('adminhtml/extension')->getStabilityOptions();
00051
00052 $fieldset->addField('release_version', 'text', array(
00053 'name' => 'release_version',
00054 'label' => Mage::helper('adminhtml')->__('Release Version'),
00055 'required' => true,
00056 ));
00057
00058 $fieldset->addField('api_version', 'text', array(
00059 'name' => 'api_version',
00060 'label' => Mage::helper('adminhtml')->__('API Version'),
00061 'required' => true,
00062 ));
00063
00064 $fieldset->addField('release_stability', 'select', array(
00065 'name' => 'release_stability',
00066 'label' => Mage::helper('adminhtml')->__('Release Stability'),
00067 'options' => $stabilityOptions,
00068 ));
00069
00070 $fieldset->addField('api_stability', 'select', array(
00071 'name' => 'api_stability',
00072 'label' => Mage::helper('adminhtml')->__('API Stability'),
00073 'options' => $stabilityOptions,
00074 ));
00075
00076 $fieldset->addField('notes', 'textarea', array(
00077 'name' => 'notes',
00078 'label' => Mage::helper('adminhtml')->__('Notes'),
00079 'style' => 'height:300px;',
00080 'required' => true,
00081 ));
00082
00083 $form->setValues($this->getData());
00084
00085 $this->setForm($form);
00086
00087 return $this;
00088 }
00089 }