Skip to content

Commit

Permalink
Adding Save/Save & Exit to page layouts.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfairholm committed Oct 12, 2012
1 parent 5aee7cc commit 932c705
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion system/cms/modules/pages/controllers/admin_layouts.php
Expand Up @@ -170,7 +170,9 @@ public function edit($id = 0)

$this->session->set_flashdata('success', sprintf(lang('page_layouts.edit_success'), $this->input->post('title')));

redirect('admin/pages/layouts');
$this->input->post('btnAction') == 'save_exit'
? redirect('admin/pages/layouts')
: redirect('admin/pages/layouts/edit/'.$id);
}

// Loop through each validation rule
Expand Down
4 changes: 2 additions & 2 deletions system/cms/modules/pages/views/admin/layouts/form.php
Expand Up @@ -76,9 +76,9 @@
</div>

</div>

<div class="buttons float-right padding-top">
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel') )); ?>
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'save_exit', 'cancel') )); ?>
</div>

<?php echo form_close(); ?>
Expand Down

0 comments on commit 932c705

Please sign in to comment.