first commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
|
||||
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
|
||||
/**
|
||||
* Actives Add View Model
|
||||
*
|
||||
* @copyright 2021 Manaknightdigital Inc.
|
||||
* @link https://manaknightdigital.com
|
||||
* @license Proprietary Software licensing
|
||||
* @author Ryan Wong
|
||||
*/
|
||||
|
||||
const db = require("../models");
|
||||
let AuthService = require("../services/AuthService");
|
||||
|
||||
module.exports = function (entity, pageName = "", success, error, base_url = "") {
|
||||
this._entity = entity;
|
||||
this.session = null;
|
||||
|
||||
this.success = success || null;
|
||||
this.error = error || null;
|
||||
|
||||
this._base_url = base_url;
|
||||
|
||||
this.get_page_name = () => pageName;
|
||||
|
||||
this.endpoint = "/admin/actives";
|
||||
|
||||
this.heading = "Add active";
|
||||
|
||||
this.action = "/admin/actives-add";
|
||||
|
||||
this.form_fields = { name: "", handle: "", description: "" };
|
||||
|
||||
return this;
|
||||
};
|
||||
Reference in New Issue
Block a user