public static function name($_model_id, $dom_id) { $module = static::$module; $modeler = $module::model()->modeler; if (!($modeler::exists($_model_id, 'id') && (\Sequode\Application\Modules\Account\Authority::isOwner($modeler::model()) || \Sequode\Application\Modules\Account\Authority::isSystemOwner()))) { return; } return DOMElementKitJS::placeForm(ModuleForm::render($module::$registry_key, __FUNCTION__), $dom_id); }
public static function updateName($_model_id, $dom_id) { $module = static::$module; $modeler = $module::model()->modeler; if (!$modeler::exists($_model_id, 'id')) { return; } return DOMElementKitJS::placeForm(ModuleForm::render($module::$registry_key, __FUNCTION__), $dom_id); }
public static function signup() { $module = static::$module; $dialogs = $module::model()->components->dialogs; $dialog = forward_static_call_array(array($dialogs, __FUNCTION__), array()); if (!SessionStore::is($dialog->session_store_key)) { SessionStore::set($dialog->session_store_key, $dialog->session_store_setup); } $dialog_store = SessionStore::get($dialog->session_store_key); $step = $dialog->steps[$dialog_store->step]; $_o = (object) null; $_o->icon_background = 'users-icon-background'; $_o->size = 'small'; if ($dialog_store->step != 0 && $dialog_store->step < count($dialog->steps) - 1) { $_o->menu = (object) null; $_o->menu->items = array(); $_o->menu->items[] = CardKit::onTapEventsXHRCallMenuItem('Start Over', 'operations/account/' . __FUNCTION__, array(FormComponent::jsQuotedValue('{"reset":"1"}'))); } $_o->head = ' Create Account'; $_o->body = array(''); if (isset($step->content)) { if (isset($step->content->head)) { $_o->body[] = '<div class="subline">' . $step->content->head . '</div>'; } if (isset($step->content->head)) { $_o->body[] = $step->content->body; } } if (isset($step->forms)) { foreach ($step->forms as $form) { $_o->body = array_merge($_o->body, ModuleForm::render($module::$registry_key, $form)); } } if ($dialog_store->step != 0 && $dialog_store->step < count($dialog->steps) - 1) { $_o->body[] = CardKit::resetDialogButton('operations/register/' . __FUNCTION__); } $_o->body[] = (object) array('js' => '$(\'.focus-input\').focus(); $(\'.focus-input\').select();'); return $_o; }
public static function search() { $module = static::$module; $modeler = $module::model()->modeler; $_model == null ? forward_static_call_array(array($modeler, 'model'), array()) : forward_static_call_array(array($modeler, 'model'), array($_model)); $_o = (object) null; $_o->size = 'fullscreen'; $_o->icon_type = 'menu-icon'; $_o->icon_background = 'user-icon-background'; $_o->menu = (object) null; $_o->menu->items = array(); $search_components_array = ModuleForm::render($module::$registry_key, 'search'); $_o->head = $search_components_array[0]; array_shift($search_components_array); foreach ($search_components_array as $key => $object) { $_o->menu->items[] = array('css_classes' => 'automagic-card-menu-item noSelect', 'contents' => $object->html, 'js_action' => $object->js); } $_o->body = array(); $_o->body[] = CardKit::collectionCard((object) array('collection' => 'user_search', 'icon' => 'user', 'card_route' => 'cards/user/search', 'details_route' => 'cards/user/details')); return $_o; }
public static function selectPalette($dom_id) { $module = static::$module; return DOMElementKitJS::placeForm(ModuleForm::render($module::$registry_key, __FUNCTION__), $dom_id); }
public static function search() { $module = static::$module; $_o = (object) null; $_o->size = 'fullscreen'; $_o->icon_type = 'menu-icon'; $_o->icon_background = 'atom-icon-background'; $_o->menu = (object) null; $_o->menu->items = array(); $search_components_array = ModuleForm::render($module::$registry_key, 'search'); $_o->head = $search_components_array[0]; array_shift($search_components_array); foreach ($search_components_array as $key => $object) { $_o->menu->items[] = array('css_classes' => 'automagic-card-menu-item noSelect', 'contents' => $object->html, 'js_action' => $object->js); } $_o->body = array(); $_o->body[] = CardKit::collectionCard((object) array('collection' => 'token_search', 'icon' => 'atom', 'card_route' => 'cards/token/my', 'details_route' => 'cards/token/details')); return $_o; }