Subversion Repositories SmartDukaan

Rev

Rev 13532 | Rev 14455 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13532 Rev 13558
Line 145... Line 145...
145
			} else {
145
			} else {
146
				$this->Session->setFlash(__('The store could not be saved. Please, try again.'));
146
				$this->Session->setFlash(__('The store could not be saved. Please, try again.'));
147
			}
147
			}
148
		}
148
		}
149
		$statuses = array('active'=>'Active','paused'=>'Paused','deleted'=>'Deleted');
149
		$statuses = array('active'=>'Active','paused'=>'Paused','deleted'=>'Deleted');
-
 
150
		$cashback_statuses = array('active'=>'Active','inactive'=>'In-active');
150
		$this->set(compact('statuses'));
151
		$this->set(compact('statuses','cashback_statuses'));
151
	}
152
	}
152
 
153
 
153
/**
154
/**
154
 * admin_edit method
155
 * admin_edit method
155
 *
156
 *
Line 171... Line 172...
171
		} else {
172
		} else {
172
			$options = array('conditions' => array('Store.' . $this->Store->primaryKey => $id));
173
			$options = array('conditions' => array('Store.' . $this->Store->primaryKey => $id));
173
			$this->request->data = $this->Store->find('first', $options);
174
			$this->request->data = $this->Store->find('first', $options);
174
		}
175
		}
175
		$statuses = array('active'=>'Active','paused'=>'Paused','deleted'=>'Deleted');
176
		$statuses = array('active'=>'Active','paused'=>'Paused','deleted'=>'Deleted');
-
 
177
		$cashback_statuses = array('active'=>'Active','inactive'=>'In-active');
176
		$this->set(compact('statuses'));
178
		$this->set(compact('statuses','cashback_statuses'));
177
	}
179
	}
178
 
180
 
179
/**
181
/**
180
 * admin_delete method
182
 * admin_delete method
181
 *
183
 *