Version Notes
Event Manager
Download this release
Release Info
Developer | Piyush |
Extension | Piyush_Events |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.0 to 1.7.1
app/code/community/Piyush/Events/Block/Adminhtml/Events/Edit/Tab/Main.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
* @link N/A
|
8 |
*/
|
9 |
-
class
|
10 |
extends Mage_Adminhtml_Block_Widget_Form
|
11 |
implements Mage_Adminhtml_Block_Widget_Tab_Interface
|
12 |
{
|
@@ -17,12 +17,12 @@ class Valuelabs_Events_Block_Adminhtml_Events_Edit_Tab_Main
|
|
17 |
*/
|
18 |
protected function _prepareForm()
|
19 |
{
|
20 |
-
$model = Mage::helper('
|
21 |
|
22 |
/**
|
23 |
* Checking if user have permissions to save information
|
24 |
*/
|
25 |
-
if (Mage::helper('
|
26 |
$isElementDisabled = false;
|
27 |
} else {
|
28 |
$isElementDisabled = true;
|
@@ -33,7 +33,7 @@ class Valuelabs_Events_Block_Adminhtml_Events_Edit_Tab_Main
|
|
33 |
$form->setHtmlIdPrefix('news_main_');
|
34 |
|
35 |
$fieldset = $form->addFieldset('base_fieldset', array(
|
36 |
-
'legend' => Mage::helper('
|
37 |
));
|
38 |
|
39 |
if ($model->getId()) {
|
@@ -44,24 +44,24 @@ class Valuelabs_Events_Block_Adminhtml_Events_Edit_Tab_Main
|
|
44 |
|
45 |
$fieldset->addField('title', 'text', array(
|
46 |
'name' => 'title',
|
47 |
-
'label' => Mage::helper('
|
48 |
-
'title' => Mage::helper('
|
49 |
'required' => true,
|
50 |
'disabled' => $isElementDisabled
|
51 |
));
|
52 |
|
53 |
$fieldset->addField('venue', 'text', array(
|
54 |
'name' => 'venue',
|
55 |
-
'label' => Mage::helper('
|
56 |
-
'title' => Mage::helper('
|
57 |
'required' => true,
|
58 |
'disabled' => $isElementDisabled
|
59 |
));
|
60 |
|
61 |
$fieldset->addField('entry_fee', 'text', array(
|
62 |
'name' => 'entry_fee',
|
63 |
-
'label' => Mage::helper('
|
64 |
-
'title' => Mage::helper('
|
65 |
'required' => true,
|
66 |
'disabled' => $isElementDisabled
|
67 |
));
|
@@ -70,8 +70,8 @@ class Valuelabs_Events_Block_Adminhtml_Events_Edit_Tab_Main
|
|
70 |
'name' => 'published_at',
|
71 |
'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT),
|
72 |
'image' => $this->getSkinUrl('images/grid-cal.gif'),
|
73 |
-
'label' => Mage::helper('
|
74 |
-
'title' => Mage::helper('
|
75 |
'required' => true
|
76 |
));
|
77 |
|
@@ -90,7 +90,7 @@ class Valuelabs_Events_Block_Adminhtml_Events_Edit_Tab_Main
|
|
90 |
*/
|
91 |
public function getTabLabel()
|
92 |
{
|
93 |
-
return Mage::helper('
|
94 |
}
|
95 |
|
96 |
/**
|
@@ -100,7 +100,7 @@ class Valuelabs_Events_Block_Adminhtml_Events_Edit_Tab_Main
|
|
100 |
*/
|
101 |
public function getTabTitle()
|
102 |
{
|
103 |
-
return Mage::helper('
|
104 |
}
|
105 |
|
106 |
/**
|
6 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
* @link N/A
|
8 |
*/
|
9 |
+
class Piyush_Events_Block_Adminhtml_Events_Edit_Tab_Main
|
10 |
extends Mage_Adminhtml_Block_Widget_Form
|
11 |
implements Mage_Adminhtml_Block_Widget_Tab_Interface
|
12 |
{
|
17 |
*/
|
18 |
protected function _prepareForm()
|
19 |
{
|
20 |
+
$model = Mage::helper('piyush_events')->getEventsItemInstance();
|
21 |
|
22 |
/**
|
23 |
* Checking if user have permissions to save information
|
24 |
*/
|
25 |
+
if (Mage::helper('piyush_events/admin')->isActionAllowed('save')) {
|
26 |
$isElementDisabled = false;
|
27 |
} else {
|
28 |
$isElementDisabled = true;
|
33 |
$form->setHtmlIdPrefix('news_main_');
|
34 |
|
35 |
$fieldset = $form->addFieldset('base_fieldset', array(
|
36 |
+
'legend' => Mage::helper('piyush_events')->__('Events Item Info')
|
37 |
));
|
38 |
|
39 |
if ($model->getId()) {
|
44 |
|
45 |
$fieldset->addField('title', 'text', array(
|
46 |
'name' => 'title',
|
47 |
+
'label' => Mage::helper('piyush_events')->__('Events Title'),
|
48 |
+
'title' => Mage::helper('piyush_events')->__('Events Title'),
|
49 |
'required' => true,
|
50 |
'disabled' => $isElementDisabled
|
51 |
));
|
52 |
|
53 |
$fieldset->addField('venue', 'text', array(
|
54 |
'name' => 'venue',
|
55 |
+
'label' => Mage::helper('piyush_events')->__('Venue'),
|
56 |
+
'title' => Mage::helper('piyush_events')->__('Venue'),
|
57 |
'required' => true,
|
58 |
'disabled' => $isElementDisabled
|
59 |
));
|
60 |
|
61 |
$fieldset->addField('entry_fee', 'text', array(
|
62 |
'name' => 'entry_fee',
|
63 |
+
'label' => Mage::helper('piyush_events')->__('Entry Fee'),
|
64 |
+
'title' => Mage::helper('piyush_events')->__('Entry Fee'),
|
65 |
'required' => true,
|
66 |
'disabled' => $isElementDisabled
|
67 |
));
|
70 |
'name' => 'published_at',
|
71 |
'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT),
|
72 |
'image' => $this->getSkinUrl('images/grid-cal.gif'),
|
73 |
+
'label' => Mage::helper('piyush_events')->__('Publishing Date'),
|
74 |
+
'title' => Mage::helper('piyush_events')->__('Publishing Date'),
|
75 |
'required' => true
|
76 |
));
|
77 |
|
90 |
*/
|
91 |
public function getTabLabel()
|
92 |
{
|
93 |
+
return Mage::helper('piyush_events')->__('Events Info');
|
94 |
}
|
95 |
|
96 |
/**
|
100 |
*/
|
101 |
public function getTabTitle()
|
102 |
{
|
103 |
+
return Mage::helper('piyush_events')->__('Events Info');
|
104 |
}
|
105 |
|
106 |
/**
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Piyush_Events</name>
|
4 |
-
<version>1.7.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -11,8 +11,8 @@
|
|
11 |
<notes>Event Manager</notes>
|
12 |
<authors><author><name>Piyush</name><user>Piyush</user><email>phpteamlead.mca@gmail.com</email></author></authors>
|
13 |
<date>2013-03-08</date>
|
14 |
-
<time>22:
|
15 |
-
<contents><target name="magecommunity"><dir name="Piyush"><dir name="Events"><dir name="Block"><dir name="Adminhtml"><dir name="Events"><dir name="Edit"><dir name="Form"><dir name="Element"><file name="Image.php" hash="966af99cc5769f2f401d1de921d0463f"/></dir></dir><file name="Form.php" hash="5f47c53f39b196b0b5498d65a81f3b2c"/><dir name="Tab"><file name="Content.php" hash="735f927c414ef1142b4c99c7b74048d8"/><file name="Image.php" hash="180fa9cefb9c4b7ffad7cd899882f41b"/><file name="Main.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>5.5.5</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Piyush_Events</name>
|
4 |
+
<version>1.7.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)">OSL</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>Event Manager</notes>
|
12 |
<authors><author><name>Piyush</name><user>Piyush</user><email>phpteamlead.mca@gmail.com</email></author></authors>
|
13 |
<date>2013-03-08</date>
|
14 |
+
<time>22:48:41</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Piyush"><dir name="Events"><dir name="Block"><dir name="Adminhtml"><dir name="Events"><dir name="Edit"><dir name="Form"><dir name="Element"><file name="Image.php" hash="966af99cc5769f2f401d1de921d0463f"/></dir></dir><file name="Form.php" hash="5f47c53f39b196b0b5498d65a81f3b2c"/><dir name="Tab"><file name="Content.php" hash="735f927c414ef1142b4c99c7b74048d8"/><file name="Image.php" hash="180fa9cefb9c4b7ffad7cd899882f41b"/><file name="Main.php" hash="a9262b1460e9bf5328644bc39bba3e5e"/></dir><file name="Tabs.php" hash="9a45d9fc529903055cc7974e1f4f830a"/></dir><file name="Edit.php" hash="e664996f06249b2bd51f141dd7f93c56"/><file name="Grid.php" hash="e4982562c84614523de3b959ba287c5b"/></dir><file name="Events.php" hash="867ae54da8d57614a6b224ec66320ee3"/></dir><file name="Item.php" hash="1e30d49616b610b4c4126bd04fef9922"/><file name="List.php" hash="99a1c8caec3234dec2de9b76aeec7b44"/></dir><dir name="Helper"><file name="Admin.php" hash="57308cc47270203757cacf2e94960792"/><file name="Data.php" hash="b9e933853088370d73590938f14fed35"/><file name="Image.php" hash="d8604db97ce3f805064148ea5d928b1e"/></dir><dir name="Model"><file name="Events.php" hash="d91448f2018d2cd93a49f31a777862f1"/><file name="Observer.php" hash="7132c65f130bc7cea2bb81130f807b28"/><dir name="Resource"><dir name="Events"><file name="Collection.php" hash="4f17378a96e462b320b059c4edb8e475"/></dir><file name="Events.php" hash="5dc25d0eee990880f5554fe3216430dc"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="EventsController.php" hash="c8134dd3948e88b53abc0fdef9325f4e"/></dir><file name="IndexController.php" hash="de58090971805551323009562b78b12c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="fe1bbf561cea34142a6e2351d60b32dc"/><file name="config.xml" hash="0fdce3296e24d25c73c36ffeae17a45b"/><file name="system.xml" hash="ff242e0ce92f60df74d62cfddfb37276"/></dir><dir name="sql"><dir name="piyush_events_setup"><file name="install-1.0.1.php" hash="50acb64ce2344737f006691f69081db9"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="piyush_events.xml" hash="d147adee2b0d86261df042c92b171838"/></dir><dir name="template"><dir name="piyushevents"><dir name="events"><file name="item.phtml" hash="99d34e3180ba7cc5b31109afd0193b32"/><file name="list.phtml" hash="27b3ea1a8d98b543d717181e97360313"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="piyush_events.xml" hash="02209595d585a023cdebaa53563a5153"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Piyush_Events.xml" hash="1300830cc50a3992aa4e2c7d176c74fa"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>5.5.5</max></php></required></dependencies>
|
18 |
</package>
|