X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=application%2Fship-simu%2Ftemplates%2Fde%2Fcode%2Flogin_main.ctp;h=56adbab9a194936144e0488ca9e22ef1c17bda21;hb=1ba00542fd9835dffde8c340cc5d8c5cb1c91659;hp=eb1386187e77da5ff945c4aaa9205b50296b789e;hpb=7fd79861b1009c1f10800e95e2a22924ea3505e5;p=shipsimu.git diff --git a/application/ship-simu/templates/de/code/login_main.ctp b/application/ship-simu/templates/de/code/login_main.ctp index eb13861..56adbab 100644 --- a/application/ship-simu/templates/de/code/login_main.ctp +++ b/application/ship-simu/templates/de/code/login_main.ctp @@ -7,16 +7,17 @@ $blockInstance = ObjectFactory::createObjectByConfiguredName('web_block_helper', array($this, 'persona_data')); // Set the data source instance which must exist in registry -$blockInstance->prefetchValueInstance('user'); +$blockInstance->prefetchValueInstance('user', 'user_points'); // Assign fields with template variables $blockInstance->assignField('username'); -$blockInstance->assignFieldWithFilter('user_status', "user_status_translator"); +$blockInstance->assignFieldWithFilter('user_status', 'user_status_translator'); +$blockInstance->assignFieldWithFilter('points', 'format_number'); // Shall we include registration date? if ($blockInstance->ifIncludeRegistrationStamp()) { // Then assign it as well! - $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp'); + $blockInstance->assignFieldWithFilter('registered', 'format_timestamp'); } // END - if // Flush the content out to a template variable @@ -35,28 +36,28 @@ $blockInstance->prefetchValueInstance('company', 'user'); // Assign the company name if ($blockInstance->getValueInstance()->ifUserIsFounder()) { // User is the founder of the company - $blockInstance->assignMessageField('company_status', "user_is_company_founder"); - $blockInstance->assignLinkFieldWithAction('company' , "company_overview"); - $blockInstance->assignMessageField('company', "link_text_company_overview"); - $blockInstance->assignMessageField('company_title', "link_title_company_overview"); + $blockInstance->assignMessageField('company_status', 'user_is_company_founder'); + $blockInstance->assignLinkFieldWithAction('company' , 'company_overview'); + $blockInstance->assignMessageField('company', 'link_text_company_overview'); + $blockInstance->assignMessageField('company_title', 'link_title_company_overview'); } elseif ($blockInstance->getValueInstance()->ifUserIsOwner()) { // User owns the company - $blockInstance->assignMessageField('company_status', "user_is_company_owner"); - $blockInstance->assignLinkFieldWithAction('company' , "company_overview"); - $blockInstance->assignMessageField('company', "link_text_company_overview"); - $blockInstance->assignMessageField('company_title', "link_title_company_overview"); + $blockInstance->assignMessageField('company_status', 'user_is_company_owner'); + $blockInstance->assignLinkFieldWithAction('company' , 'company_overview'); + $blockInstance->assignMessageField('company', 'link_text_company_overview'); + $blockInstance->assignMessageField('company_title', 'link_title_company_overview'); } elseif ($blockInstance->getValueInstance()->ifUserIsEmployee()) { // User is employed in company - $blockInstance->assignMessageField('company_status', "user_is_employed_in_company"); - $blockInstance->assignLinkFieldWithAction('company' , "employee_overview"); - $blockInstance->assignMessageField('company', "link_text_employee_overview"); - $blockInstance->assignMessageField('company_title', "link_title_employee_overview"); + $blockInstance->assignMessageField('company_status', 'user_is_employed_in_company'); + $blockInstance->assignLinkFieldWithAction('company' , 'employee_overview'); + $blockInstance->assignMessageField('company', 'link_text_employee_overview'); + $blockInstance->assignMessageField('company_title', 'link_title_employee_overview'); } else { // No company participation! - $blockInstance->assignMessageField('company_status', "user_not_assigned_company"); - $blockInstance->assignLinkFieldWithAction('company' , "company"); - $blockInstance->assignMessageField('company', "link_text_company"); - $blockInstance->assignMessageField('company_title', "link_title_company"); + $blockInstance->assignMessageField('company_status', 'user_not_assigned_company'); + $blockInstance->assignLinkFieldWithAction('company' , 'company'); + $blockInstance->assignMessageField('company', 'link_text_company'); + $blockInstance->assignMessageField('company_title', 'link_title_company'); } // Flush the content out to a template variable @@ -74,7 +75,7 @@ $linkInstance->flushContent(); // [EOC] ?>
- Willkommen im Loginbereich von {?app_full_name?}! + Willkommen im Loginbereich von {?app_full_name?}!