This commit is contained in:
Joey Kimsey
2025-01-20 22:42:30 -05:00
parent 1d8d48e7c1
commit ca50450682
55 changed files with 1385 additions and 337 deletions

View File

@ -45,7 +45,7 @@ class Resume extends AdminController {
Issues::add( 'error', [ 'There was an error with your request.' => Check::userErrors() ] );
return $this->index();
}
$result = self::$positions->create( Input::post( 'name' ), Input::post( 'position' ), Input::post( 'start' ), Input::post( 'end' ), Input::post( 'details' ) );
$result = self::$positions->create( Input::post( 'name' ), Input::post( 'position' ), Input::post( 'start' ), Input::post( 'end' ), Input::post( 'details' ), Input::post( 'detailsNobs' ) );
if ( $result ) {
Issues::add( 'success', 'Your position has been created.' );
return $this->index();
@ -69,6 +69,7 @@ class Resume extends AdminController {
'start' => Input::post( 'start' ),
'end' => Input::post( 'end' ),
'details' => Input::post( 'details' ),
'details_nobs' => Input::post( 'detailsNobs' ),
];
if ( self::$positions->update( $data, $fields ) ) {
Issues::add( 'success', 'Position Updated.' );

View File

@ -23,6 +23,15 @@ use TheTempusProject\Houdini\Classes\Template;
class Resume extends Controller {
protected static $positions;
public function __construct() {
parent::__construct();
Components::append( 'TEMPLATE_JS_INCLUDES', Template::parse(
'<script language="JavaScript" crossorigin="anonymous" type="text/javascript" src="{ROOT_URL}app/plugins/resume/js/resume.js"></script>'
) );
}
public function index() {
self::$positions = new Positions;
self::$title = '{SITENAME} - Resume';