X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fship-simu%2Ftemplates%2Fde%2Fcode%2Flogin_main.ctp;fp=application%2Fship-simu%2Ftemplates%2Fde%2Fcode%2Flogin_main.ctp;h=0ad51a2f849bff1b6a5656fe7f01d57b3e6cd72e;hb=462649eb59a6b4903bdaf0428bbe671d1750866a;hp=a2d19106dddfe4db0dd5fe86a5f142b72d614562;hpb=019cebc524a0b4863182b31feaf37b41282608d7;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 a2d1910..0ad51a2 100644 --- a/application/ship-simu/templates/de/code/login_main.ctp +++ b/application/ship-simu/templates/de/code/login_main.ctp @@ -36,38 +36,37 @@ $blockInstance->prefetchValueInstance('company', 'user'); if ($blockInstance->getValueInstance()->ifUserIsFounder()) { // User is the founder of the company $blockInstance->assignMessageField('company_status', "user_is_company_founder"); - $blockInstance->assignLinkFieldWithAction('company_link' , "company_overview"); - $blockInstance->assignMessageField('company_link_text', "link_text_company_overview"); - $blockInstance->assignMessageField('company_link_title', "link_title_company_overview"); + $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_link' , "company_overview"); - $blockInstance->assignMessageField('company_link_text', "link_text_company_overview"); - $blockInstance->assignMessageField('company_link_title', "link_title_company_overview"); + $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_link' , "employee_overview"); - $blockInstance->assignMessageField('company_link_text', "link_text_employee_overview"); - $blockInstance->assignMessageField('company_link_title', "link_title_employee_overview"); + $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_link' , "company"); - $blockInstance->assignMessageField('company_link_text', "link_text_company"); - $blockInstance->assignMessageField('company_link_title', "link_title_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 $blockInstance->flushContent(); // Get helper instance -$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action_link', 'index.php?app={?app_short_name?}&page=login_area')); +$linkInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'logout_action', 'index.php?app={?app_short_name?}&page=login_area')); // Add action -$linkInstance->addLinkGroup('logout', ""); -$linkInstance->addActionLink('logout', "Ausloggen"); +$linkInstance->addActionLinkById('logout', 'logout'); // Flush the content $linkInstance->flushContent(); @@ -91,8 +90,8 @@ $linkInstance->flushContent(); {?persona_data?} -