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.' );