wip
This commit is contained in:
@ -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.' );
|
||||
|
@ -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';
|
||||
|
Reference in New Issue
Block a user