Skip to content

Commit

Permalink
1.77
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Morrical committed Apr 8, 2018
1 parent 6be8ba9 commit 0d52f16
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
1 change: 1 addition & 0 deletions application/go_inc/classes/class__go_lab.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ public function go_lab() {
$txt .= "\t\t\t\t$" . "this->db->where('ID', $" . "id);\r\n";
$txt .= "\t\t\t\t$" . "this->db->update('" . $this->post['table-name'] . "', $" . "data);\r\n";
$txt .= "\t\t\t}\r\n\r\n";
$txt .= "\t\t\t$" . "this->session->set_flashdata('flashSuccess', 'Record has been successfully updated.');\r\n\r\n";
$txt .= "\t\t\tswitch($" . "return_route) {\r\n";
$txt .= "\t\t\t\tcase 'save':\r\n";
$txt .= "\t\t\t\t\tredirect(base_url() . 'admin/" . $sef_single . "/edit?id=' . $" . "id);\r\n";
Expand Down
10 changes: 5 additions & 5 deletions application/views/admin/go/lab/lab.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
</div>
<div class="row">
<div class="col-md-6">
Class Name Plural<br /><span class="micro-1">(lowercase)</span>
Class Name Plural<br /><span class="micro-1">(lowercase, underscores ok)</span>
</div>
<div class="col-md-6">
<input name="class-name-plural" class="form-control" placeholder="clients" value="" />
</div>
</div>
<div class="row">
<div class="col-md-6">
Class Name Singular<br /><span class="micro-1">(lowercase)</span>
Class Name Singular<br /><span class="micro-1">(lowercase, underscores ok)</span>
</div>
<div class="col-md-6">
<input name="class-name-singular" class="form-control" placeholder="client" value="" />
Expand All @@ -63,7 +63,7 @@
</div>
<div class="row">
<div class="col-md-6">
DB Table Name<br /><span class="micro-1">(lowercase)</span>
DB Table Name<br /><span class="micro-1">(lowercase, underscores ok)</span>
</div>
<div class="col-md-6">
<input name="table-name" class="form-control" placeholder="clients" value="" />
Expand Down Expand Up @@ -146,7 +146,7 @@
</div>
<div class="row">
<div class="col-md-6">
Menu URL<br />&nbsp;
Menu URL<br /><span class="micro-1">(hyphens ok)</span>
</div>
<div class="col-md-6">
<input name="menu-url" class="form-control" placeholder="admin/clients" value="" />
Expand All @@ -162,7 +162,7 @@
</div>
<div class="row">
<div class="col-md-6">
Active Class<br /><br /><br /><br />&nbsp;
Active Class<br /><span class="micro-1">(hyphens ok)</span><br /><br /><br />&nbsp;
</div>
<div class="col-md-6">
<input name="active-class" class="form-control" placeholder="clients" value="" />
Expand Down
10 changes: 8 additions & 2 deletions application/views/admin/helpers/main_content_add_edit_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@
</button>
</div>
</div>

<div class="row">
<div class="col-md-12">
<div id="flashBlock">
<?php go__flash(); ?>
</div>
</div>
</div>
<?php
$save_route = (!empty($this->input->get('id'))) ? "?id=" . $this->input->get('id') : "";
?>
<form id="form1" name="data-list" class="" method="post" action="<?php echo base_url() . 'admin/' . $this_page_plural . $save_route; ?>">
<form id="form1" name="data-list" class="" method="post" action="<?php echo base_url() . 'admin/' . $sef_plural . $save_route; ?>">
4 changes: 2 additions & 2 deletions application/views/admin/helpers/main_content_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
//////////////////////////////// core file ///////////////////////////////
///////////////////////////////// go-cms /////////////////////////////////
?>
<?php $session_key = $_SESSION['admin']['filters']['lead_sources-active-inactive']; ?>
<?php // $session_key = $_SESSION['admin']['filters']['<<page plural>>-active-inactive']; ?>
<script>
// var display_status = "<?= $session_key; ?>"; // gets set in model get_display_status()
var display_status = "<?= $session_key; ?>"; // gets set in model get_display_status()

$(window).on('load', function(){

Expand Down
2 changes: 1 addition & 1 deletion application/views/templates/admin/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<script src="<?php echo base_url(); ?>assets/go/js/bootstrap-toggle.js"></script>
<script src="<?php echo base_url(); ?>assets/go/js/waiting-dialogue.js"></script>

<title><?php echo htmlspecialchars($title); ?></title>
<title><?php echo htmlspecialchars(parse_class_name_as_friendly($title)); ?></title>

<?php
$this->load->view('templates/admin/header');
Expand Down

0 comments on commit 0d52f16

Please sign in to comment.