Changeset 498 for trunk/app/views/groups
- Timestamp:
- 05/16/08 23:23:24 (7 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/groups/admin_edit.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/groups/admin_edit.ctp
r342 r498 1 1 <?php 2 2 //die( debug( $this->data ) ); 3 if ( $cU['User']['group_id'] != 1 ) 4 { 5 $this->flash('Error, you are not allowed to be here'); 6 } 3 if ( $cU['User']['group_id'] != 1 ): 4 $this->flash('Error, you are not allowed to be here'); 5 endif; 7 6 8 7 echo $form->create('Group',array("onsubmit"=>"return validateData()")); … … 16 15 echo $form->error('Group.code', 'Code is required.'); 17 16 18 if ( $this->data['Group']['id'] == 4) 19 { 20 echo $form->label('Group.active', 'Enabled: '); 21 echo $form->checkbox('Group.active', array('value'=>2)); 22 } 23 ?> 24 <br /></fieldset> 25 <?php echo $form->end('Save'); ?> 26 17 if ( $this->data['Group']['id'] == 4): 18 echo $form->label('Group.active', 'Enabled: '); 19 echo $form->checkbox('Group.active', array('value'=>2)); 20 endif; 21 echo $form->end('Save'); 22 ?> 23 </fieldset> 27 24 <script type="text/javascript"> 28 25 function validateData()
