Subversion Repositories SmartDukaan

Rev

Rev 14547 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14509 anikendra 1
<div class="campaigns form">
2
<?php echo $this->Form->create('Campaign'); ?>
3
	<fieldset>
4
		<legend><?php echo __('Admin Edit Campaign'); ?></legend>
5
	<?php
6
		echo $this->Form->input('id');
7
		echo $this->Form->input('name');
8
		echo $this->Form->input('url');
9
		echo $this->Form->input('img_url');
10
		$sizes = array('paused' => 'Paused', 'active' => 'Active', 'deleted' => 'Deleted');
11
		echo $this->Form->input(
12
		    'status',
13
		    array('options' => $sizes, 'default' => 'active')
14
		);
15
		echo $this->Form->input('clicks');
16
	?>
17
	</fieldset>
18
<?php echo $this->Form->end(__('Submit')); ?>
19
</div>
20
<div class="actions">
21
	<h3><?php echo __('Actions'); ?></h3>
22
	<ul>
23
 
24
		<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Campaign.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Campaign.id'))); ?></li>
25
		<li><?php echo $this->Html->link(__('List Campaigns'), array('action' => 'index')); ?></li>
26
	</ul>
27
</div>