Changeset View
Changeset View
Standalone View
Standalone View
core/admin_templates/error_fatal.tpl
- This file was added.
<inp2:m_Set skip_last_template="1"/> | |||||
<inp2:m_include t="incs/header"/> | |||||
<inp2:m_RenderElement name="combined_header" prefix="adm" section="in-portal:root" title_preset="error_fatal" parent="0"/> | |||||
alex: The `no_permissions` title preset is used resulting in `No Permissions` page title instead of… | |||||
<!-- ToolBar --> | |||||
<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0"> | |||||
<tbody> | |||||
<tr> | |||||
<td id="toolbar_cell"> | |||||
<script type="text/javascript"> | |||||
function prepareToolbar() { | |||||
a_toolbar = new ToolBar(); | |||||
a_toolbar.AddButton( | |||||
new ToolBarButton( | |||||
'prev', | |||||
'<inp2:m_phrase label="la_ToolTip_Back" escape="1"/>', | |||||
function() { | |||||
history.back(); | |||||
} | |||||
) | |||||
); | |||||
a_toolbar.Render( $('#toolbar_cell').get(0) ); | |||||
} | |||||
$(document).ready( | |||||
function() { | |||||
prepareToolbar(); | |||||
Application.removeDebuggerStatistics(); | |||||
maximizeElement('#fatal_error'); | |||||
$('#fatal_error_container').css('background-color', '#F6F6F6'); | |||||
} | |||||
Not Done ReplyThe error can happen when user isn't logged-in as well I suppose, so this block must be removed. alex: The error can happen when user isn't logged-in as well I suppose, so this block must be removed. | |||||
); | |||||
</script> | |||||
</td> | |||||
</tr> | |||||
</tbody> | |||||
</table> | |||||
<div id="fatal_error" class="table-color1" style="bottom: 50%; text-align: center; vertical-align: middle;"> | |||||
<br /> | |||||
<strong><inp2:m_Phrase name="la_text_FatalError"/></strong> | |||||
<inp2:m_if check="m_Recall" name="FatalErrorMessage"> | |||||
Not Done ReplyPlease replace text in <strong> tags with la_text_FatalError (also add this phrase to the /core/install/english.lang file). alex: Please replace text in `<strong>` tags with `la_text_FatalError` (also add this phrase to the… | |||||
<inp2:m_if check="m_IsDebugMode"> | |||||
<br /><br /> | |||||
<div style="text-align: left;"> | |||||
<inp2:m_Recall name="FatalErrorMessage"/><br /> | |||||
</div> | |||||
Not Done Reply
alex: # Only show error message text when we're in Debug Mode.
# Remove error message from session in… | |||||
<inp2:system-log_PrintBacktrace/> | |||||
</inp2:m_if> | |||||
<inp2:m_RemoveVar name="FatalErrorMessage"/> | |||||
</inp2:m_if> | |||||
</div> | |||||
Not Done ReplyAfter you display a message from session you need to remove it from session as well. Luckily there is a tag for that. alex: After you display a message from session you need to remove it from session as well. Luckily… | |||||
<inp2:m_include t="incs/footer"/> |
The no_permissions title preset is used resulting in No Permissions page title instead of correct one: