Your commit message
This commit is contained in:
parent
e64c4ead99
commit
0fee63db20
|
@ -4,7 +4,7 @@ namespace application\controllers;
|
||||||
|
|
||||||
defined('BASEPATH') or exit('No direct script access allowed');
|
defined('BASEPATH') or exit('No direct script access allowed');
|
||||||
|
|
||||||
// use application\models\Form_model;
|
use application\models\Form_model;
|
||||||
|
|
||||||
class Form extends CI_Controller
|
class Form extends CI_Controller
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ class Form extends CI_Controller
|
||||||
}
|
}
|
||||||
public function submit()
|
public function submit()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!$this->session->userdata('logged_in')) {
|
if (!$this->session->userdata('logged_in')) {
|
||||||
// If not logged in, redirect to login page
|
// If not logged in, redirect to login page
|
||||||
redirect('users/login');
|
redirect('users/login');
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// namespace application\controllers;
|
namespace application\controllers;
|
||||||
|
|
||||||
defined('BASEPATH') or exit('No direct script access allowed');
|
defined('BASEPATH') or exit('No direct script access allowed');
|
||||||
class Welcome extends CI_Controller
|
class Welcome extends CI_Controller
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
let index = 1
|
let index = 1
|
||||||
let activeSection = null
|
let activeSection = null
|
||||||
function addOption(type, container) {
|
|
||||||
|
function addOption(type, container)
|
||||||
let optionHtml
|
let optionHtml
|
||||||
|
|
||||||
if (type === 'multiple-choice' || type === 'checkboxes') {
|
if (type === 'multiple-choice' || type === 'checkboxes') {
|
||||||
|
|
Loading…
Reference in New Issue