芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/views/layout-form-retire.twig
{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (${FILE_NAME}) */ Theme::Set('form_id', 'RetireForm'); Theme::Set('form_meta', '
'); // Retire the layout Theme::Set('form_action', 'index.php?p=layout&q=Retire'); Theme::Set('form_fields', array(Form::AddMessage(__('Are you sure you want to retire this layout ?')))); $form = Theme::RenderReturn('form_render'); $this->getState()->SetFormRequestResponse($form, sprintf(__('Retire %s'), $layout->layout), '300px', '200px'); $this->getState()->AddButton(__('Help'), 'XiboHelpRender("' . Help::Link('Layout', 'Retire') . '")'); $this->getState()->AddButton(__('Delete'), 'XiboSwapDialog("index.php?p=layout&q=DeleteLayoutForm&layoutid=' . $layoutId . '")'); $this->getState()->AddButton(__('No'), 'XiboDialogClose()'); $this->getState()->AddButton(__('Yes'), '$("#RetireForm").submit()'); #} {% extends "form-base.twig" %} {% import "forms.twig" as forms %} {% block formTitle %} {% set layout = layout.layout %} {% trans %}Retire {{ layout }}{% endtrans %} {% endblock %} {% block formButtons %} {% trans "Help" %}, XiboHelpRender("{{ help.retire }}") {% trans "Delete" %}, XiboSwapDialog("{{ urlFor("layout.delete.form", {id: layout.layoutId}) }}") {% trans "No" %}, XiboDialogClose() {% trans "Yes" %}, $("#layoutRetireForm").submit() {% endblock %} {% block formHtml %}
{{ forms.message("Are you sure you want to retire this layout?") }} {# it is missing few things obviously #}
{% endblock %}