当前位置: 首页>>代码示例>>PHP>>正文


PHP twig_lower_filter函数代码示例

本文整理汇总了PHP中twig_lower_filter函数的典型用法代码示例。如果您正苦于以下问题:PHP twig_lower_filter函数的具体用法?PHP twig_lower_filter怎么用?PHP twig_lower_filter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了twig_lower_filter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: block_body_class

 public function block_body_class($context, array $blocks = array())
 {
     $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4 = $this->env->getExtension("native_profiler");
     $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4->enter($__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class"));
     echo twig_escape_filter($this->env, "new new-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true);
     $__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4->leave($__internal_1f8fe57c9243b33b9661d0ff6641def4e34392b495fa93fa708ca3fdc0ebf9c4_prof);
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:7,代码来源:85a70e592a4609e0ef43c9bb632ae90e00efcba26fed6ba30174dad0aaab530d.php

示例2: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<script>\n    var \$table = \$('#table');\n    var extendColData = [];\n    var initResponse;\n\n    \$(document).ready(function () {\n        \$(\"#tableDiv\").show();\n        iniFillTableData();\n    });\n\n    function sortMyUsername(initResponse) {\n        var jsonString = JSON.parse(initResponse);\n        var filterUsers = [];\n        \n        var name = '";
     // line 15
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n        for (var i = 0; i < jsonString.users.length; i++) {\n            var tempUser = jsonString.users[i];\n            if (name.toLowerCase() === tempUser.username.toLowerCase()) {\n                filterUsers.push(tempUser);\n            }\n        }\n        for (var i = 0; i < jsonString.users.length; i++) {\n            var tempUser = jsonString.users[i];\n            if (name.toLowerCase() !== tempUser.username.toLowerCase()) {\n                filterUsers.push(tempUser);\n            }\n        }\n        var filterOpportunitiesArray = {'users': filterUsers};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n        return jsonStr;\n    }\n\n    function iniFillTableData() {\n        \$table.bootstrapTable('showLoading');\n        var data = '";
     // line 35
     echo twig_escape_filter($this->env, isset($context["userArray"]) ? $context["userArray"] : $this->getContext($context, "userArray"), "html", null, true);
     echo "';\n        var newString = data.replace(/&quot;/g, '\"');\n        initResponse = newString;\n        //var newString = JSON.parse(data);\n        \$table.bootstrapTable('hideLoading');\n        \$table.bootstrapTable('append', convertData(sortMyUsername(newString)));\n    }\n\n    function refreshTable() {\n        \$table.bootstrapTable('removeAll');\n        fillTableData();\n    }\n\n    function fillTableData() {\n        \$table.bootstrapTable('showLoading');\n        \$.post('";
     // line 50
     echo $this->env->getExtension('routing')->getPath("login_login_userTableData");
     echo "', null,\n                function (response) {\n                    if (response) {\n                        \$table.bootstrapTable('hideLoading');\n                        \$table.bootstrapTable('append', convertData(sortMyUsername(response)));\n                    } else {\n\n                    }\n                }\n        );\n    }\n    \n    function storePageSize(size) {\n        \$.post('";
     // line 63
     echo $this->env->getExtension('routing')->getPath("login_login_saveconfig");
     echo "',\n                {name: 'userview', value: size},\n        function (response) {\n            if (response !== \"false\") {\n\n            } else {\n                console.log(\"error occured in getting the manage view number in contacts\", response);\n            }\n        });\n    }\n\n    function checkAndSetValue(value, blankValue, scale, pre) {\n        if (value === '' || value === null) {\n            return blankValue;\n        } else {\n            if (pre === true) {\n                return scale + '' + value;\n            } else {\n                return value + '' + scale;\n            }\n        }\n    }\n\n    function detailFormatter(index, row) {\n\n        var title = checkAndSetValue(row.title, '-', '', true);\n        var company = checkAndSetValue(row.company, '-', '', true);\n        var email = checkAndSetValue(row.email, '-', '', true);\n        var telephone = checkAndSetValue(row.telephone, '-', '', true);\n        var cellphone = checkAndSetValue(row.cellphone, '-', '', true);\n\n        var originator = checkAndSetValue(row.originator, '-', '%', false);\n        var nonOriginator = checkAndSetValue(row.nonOriginator, '-', '%', false);\n        var earningGoals = checkAndSetValue(row.earningGoals, '-', '\$', true);\n        var drawAgainstCommission = checkAndSetValue(row.drawAgainstCommission, '-', '\$', true);\n        var dob = checkAndSetValue(row.dob, '-', '', true);\n\n        if (dob !== '-') {\n            var mdate = new Date(dob);\n            var month = 1;\n            if ((mdate.getMonth() + 1) < 10) {\n                month = '0' + (mdate.getMonth() + 1);\n            } else {\n                month = mdate.getMonth() + 1;\n            }\n            var day = 1;\n            if ((mdate.getDate()) < 10) {\n                day = '0' + (mdate.getDate());\n            } else {\n                day = mdate.getDate();\n            }\n            var dob = month + '/' + day + '/' + mdate.getFullYear();\n        }\n\n        var html = [];\n        html.push('<div class\"row\">' +\n                '<div class=\"col-xs-4\">' +\n                '<table class=\"table\" style=\"margin-left:42px; border: none !important;line-height: 5px;background-color: #fbfbfb;\">' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;width:30%\"><small>Title</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + title + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Company</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + company + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Email</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + email + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Telephone</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + telephone + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Cell Phone</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + cellphone + '</small></td>' +\n                '</tr>' +\n                '</table>' +\n                '</div>' +\n                '<div class=\"col-xs-4\">' +\n                '<table class=\"table\" style=\"margin-left:22px; border: none !important;line-height: 5px;background-color: #fbfbfb;\">' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;width:60%\"><small>Commissions Originator</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + originator + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Commissions Non-Originator</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + nonOriginator + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Earning Goals</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + earningGoals + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>Draw Against Commissions</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + drawAgainstCommission + '</small></td>' +\n                '</tr>' +\n                '<tr style=\"padding:0px;margin:0px;\">' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>DOB</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + dob + '</small></td>' +\n                '</tr>' +\n                '</table>' +\n                '</div>' +\n                '</div>');\n        //html.push('<div class\"row\">' + index + '</div>');\n        \$.each(row, function (key, value) {\n            //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n        });\n        return html.join('');\n    }\n\n    function convertData(response) {\n        var jsonString = JSON.parse(response);\n        extendColData = [];\n\n        var startId = 1,\n                rows = [];\n\n    ";
     // line 184
     echo "                for (var i = 0; i < jsonString.users.length; i++) {\n                    var tempUser = jsonString.users[i];\n\n                    extendColData.push({\n                    });\n                    \n                    var editPath = '";
     // line 190
     echo $this->env->getExtension('routing')->getPath("login_login_edituserpage", array("id" => 0));
     echo "';\n                    editPath = editPath.substring(0, editPath.length - 1);\n\n                    var openDealPath = '";
     // line 193
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("opportunity_opportunitycontactfilterV2", array("id" => 0, "filter" => 0)), "html", null, true);
     echo "';\n                    openDealPath = openDealPath.substring(0, openDealPath.length - 3);\n                    \n                    var taskPath = '";
     // line 196
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("task_manage_task", array("type" => "user", "id" => 0)), "html", null, true);
     echo "';\n                    taskPath = taskPath.substring(0, taskPath.length - 1);\n                    \n                    var openDeal = tempUser.openDeals;\n                    if(tempUser.openDeals > 0){\n                        openDeal = '<a href=\"' + openDealPath + tempUser.id + '/OpenUser' + '\">' + tempUser.openDeals + '</a>';\n                    }\n                    \n                    var wonDeal = tempUser.wonDeals;\n                    if(tempUser.wonDeals !== '0'){\n                        wonDeal = '<a href=\"' + openDealPath + tempUser.id + '/WonUser' + '\">\$' + tempUser.wonDeals + '</a>';\n                    }\n                    \n                    var lostDeal = tempUser.lossDeals;\n                    if(tempUser.lossDeals !== '0'){\n                        lostDeal = '<a href=\"' + openDealPath + tempUser.id + '/LostUser' + '\">\$' + tempUser.lossDeals + '</a>';\n                    }\n                    \n                    var action = '';\n                    var name = '";
     // line 215
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n                    if (name.toLowerCase() === tempUser.username.toLowerCase()) {\n                        action = '<div class=\"pull-right\">' +\n                                '<div class=\"keep-open btn-group\">' +\n                                '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n                                '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n                                '</button>' +\n                                '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n                                '<li><a href=\"' + editPath + tempUser.id + '\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>' +\n                                '<li><a href=\"#\" onclick=\"notespopup(' + tempUser.id + ')\"><i class=\"fa fa-file-o\"></i> Notes</a></li>' +\n                                '<li><a href=\"'+taskPath + tempUser.id +'\"><i class=\"fa fa-list\"></i> Tasks</a></li>' +\n                                '</ul>' +\n                                '</div>' +\n                                '</div>'\n                    }\n                    \n                    rows.push({\n                        first_name: tempUser.firstname,\n                        last_name: tempUser.lastname,\n                        username: tempUser.username,\n                        open_deal: openDeal,\n                        projected_revenue: '\$' + tempUser.projectedRevenue,\n                        weighted_forecast: '\$' + tempUser.individualForecast,\n                        won_deals: wonDeal,\n                        lost_deals: lostDeal,\n                        user_status: tempUser.status,\n                        user_level: tempUser.role,\n                        action: action,\n                        title: tempUser.title,\n                        company: tempUser.company,\n                        email: tempUser.email,\n                        telephone: tempUser.telephone,\n                        cellphone: tempUser.cellphone,\n                        originator: tempUser.originator,\n                        nonOriginator: tempUser.nonOriginator,\n                        earningGoals: tempUser.earningGoals,\n                        drawAgainstCommission: tempUser.drawAgainstCommission,\n                        dob: tempUser.dob\n\n                    });\n                }\n                return rows;\n            }\n\n            function priceSorter(a, b) {\n                a = +a.substring(1); // remove \$\n                b = +b.substring(1);\n                if (a > b)\n                    return 1;\n                if (a < b)\n                    return -1;\n                return 0;\n            }\n\n            function rowStyle(row, index) {\n                var classes = ['active'];\n\n                if (index % 2 === 0) {\n                    return {\n                        classes: classes[0]\n                    };\n                }\n                return {};\n            }\n            \n            function exportTableDataToCSV() {\n                var data = JSON.parse(initResponse);\n                \n                exportToCSV(data.users, \"users.csv\", [\"firstname\", \"lastname\", \"username\", \"openDeals\", \"projectedRevenue\", \n                    \"individualForecast\", \"wonDeals\", \"lossDeals\"]);\n            }\n            \n            function exportTableDataToPDF() {\n                var data = JSON.parse(initResponse);\n                \n                var userTablePDF = new exportPDF(data.users, \"users.pdf\", [\"firstname\", \"lastname\", \"username\", \"openDeals\", \"projectedRevenue\", \n                    \"individualForecast\", \"wonDeals\", \"lossDeals\"], \"Manage Users\");\n            }\n</script>";
 }
开发者ID:sirojan24,项目名称:BusinessPipeline,代码行数:31,代码来源:1e26fa37728064cdc1b29fe213cf418b0e9c4b0e40cf485c24599f2be06e.php

示例3: block_body_class

 public function block_body_class($context, array $blocks = array())
 {
     $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2 = $this->env->getExtension("native_profiler");
     $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2->enter($__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class"));
     echo twig_escape_filter($this->env, "edit edit-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true);
     $__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2->leave($__internal_2a7ad61baa16eaf7c9cbef91b7d57144dc80c137d49bd3ba086a65cbf78207a2_prof);
 }
开发者ID:3lolo,项目名称:lr_app,代码行数:7,代码来源:3adc100df0499fb665a73778270b08365cf324d228d76f609a16cbe1e9006334.php

示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ul class=\"archives\">\n\n";
     // line 3
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["archives_data"]) ? $context["archives_data"] : null);
     foreach ($context['_seq'] as $context["month"] => $context["items"]) {
         // line 4
         echo "    <li>\n    \t<a href=\"";
         // line 5
         echo isset($context["base_url"]) ? $context["base_url"] : null;
         echo "/archives_month";
         echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array());
         echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_date_format_filter($this->env, $context["month"], "M_Y")), "url");
         echo "\">\n        <span class=\"archive_date\">";
         // line 6
         echo $context["month"];
         echo "</span>\n        </a>";
         // line 7
         if (isset($context["archives_show_count"]) ? $context["archives_show_count"] : null) {
             echo "<span class=\"label\"> ( ";
             echo twig_length_filter($this->env, $context["items"]);
             echo " )</span>\n        ";
         }
         // line 9
         echo "    </li>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['month'], $context['items'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 11
     echo "</ul>\n";
 }
开发者ID:pendigo,项目名称:pendigo.xyz,代码行数:34,代码来源:6e14d961534991b9690b4ecba8275452e4c42f6a60f2173c62560bbf210b7547.php

示例5: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<script>\n    var \$opportunitySourceTable = \$('#opportunitytable');\n    var extendColData = [];\n    var initOpportunitySourceResponse;\n\n    \$(document).ready(function () {\n        \$(\"#opportunityTableDiv\").show();\n        iniFillOppotunitySourceTableData();\n    });\n\n    function iniFillOppotunitySourceTableData() {\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n        var data = '";
     // line 13
     echo twig_escape_filter($this->env, isset($context["opportunitySourceArray"]) ? $context["opportunitySourceArray"] : $this->getContext($context, "opportunitySourceArray"), "html", null, true);
     echo "';\n        var newString = data.replace(/&quot;/g, '\"');\n        initOpportunitySourceResponse = newString;\n        //var newString = JSON.parse(data);\n        \$opportunitySourceTable.bootstrapTable('hideLoading');\n        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(newString));\n    }\n\n    function refreshOpportunitySourceTable() {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        fillOpportunitySourceTableData();\n    }\n\n    function fillOpportunitySourceTableData() {\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n        \$.post('";
     // line 28
     echo $this->env->getExtension('routing')->getPath("settings_opportunity_source_table_data");
     echo "', null,\n                function (response) {\n                    if (response) {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                        initOpportunitySourceResponse = response;\n                        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(response));\n                    } else {\n\n                    }\n                }\n        );\n    }\n\n    function fillTableDataWithUsername(username) {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n        var path = '";
     // line 44
     echo $this->env->getExtension('routing')->getPath("contacts_contacts_table_data_username_filter", array("username" => "0"));
     echo "';\n        path = path.substring(0, path.length - 1);\n\n        \$.post(path + username, null,\n                function (response) {\n                    if (response) {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(response));\n                    } else {\n\n                    }\n                }\n        );\n    }\n\n    function checkAndSetValue(value, blankValue, scale, pre) {\n        if (value === '' || value === null) {\n            return blankValue;\n        } else {\n            if (pre === true) {\n                return scale + '' + value;\n            } else {\n                return value + '' + scale;\n            }\n        }\n    }\n\n    function detailFormatter(index, row) {\n\n        var note = checkAndSetValue(extendColData[index].note, '-', '', true);\n\n        var html = [];\n        html.push('<div class\"row\">' +\n                '<div class=\"col-xs-4\">' +\n                '<table class=\"table\" style=\"margin-left:42px; border: none !important;line-height: 5px;\">' +\n                '<tr style=\"padding:0px;margin:0px;border-bottom: 1px solid #DCDCDC;\">' +\n                '<td style=\"border: none !important;line-height: 5px;width:30%\"><small>Notes</small></td>' +\n                '<td style=\"border: none !important;line-height: 5px;\"><small>' + note + '</small></td>' +\n                '</tr>' +\n                '</table>' +\n                '</div>' +\n                '</div>');\n        //html.push('<div class\"row\">' + index + '</div>');\n        \$.each(row, function (key, value) {\n            //html.push('<p><b>' + key + ':</b> ' + value + '</p>');\n        });\n        return html.join('');\n    }\n\n    function convertOpportunitySourceData(response) {\n        var jsonString = JSON.parse(response);\n        extendColData = [];\n\n        var startId = 1,\n                rows = [];\n\n        for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n            var tempType = jsonString.opportunitySources[i];\n\n            extendColData.push({\n                note: tempType.notes\n            });\n\n            var name = '";
     // line 107
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["name"]) ? $context["name"] : $this->getContext($context, "name")), "html", null, true);
     echo "';\n            var action = '';\n            var role = '";
     // line 109
     echo twig_escape_filter($this->env, isset($context["role"]) ? $context["role"] : $this->getContext($context, "role"), "html", null, true);
     echo "';\n            if (role === \"Admin\") {\n                action = '<div class=\"pull-right\">' +\n                        '<div class=\"keep-open btn-group\">' +\n                        '<button class=\"btn btn-default btn-xs dropdown-toggle\" data-toggle=\"dropdown\">' +\n                        '<i class=\"glyphicon glyphicon-chevron-down\"></i>' +\n                        '</button>' +\n                        '<ul class=\"dropdown-menu\" role=\"menu\" style=\"min-width: 0px !important;\">' +\n                        '<li><a href=\"javascript:opeEditOpportunitySourceModal(' + tempType.id + ')\"><i class=\"fa fa-pencil-square-o\"></i> Edit</a></li>';\n\n                if (tempType.status === \"Inactive\") {\n                    action += '<li><a href=\"javascript:activateOpportunitySource(' + tempType.id + ')\"><i class=\"fa fa-check\"></i> Activate</a></li>';\n                } else if (tempType.status === \"Active\") {\n                    action += '<li><a href=\"javascript:deleteOpportunitySource(' + tempType.id + ')\"><i class=\"fa fa-times\"></i> Delete</a></li>';\n                }\n\n                action += '</ul>' +\n                        '</div>' +\n                        '</div>';\n            }else{\n                \$opportunitySourceTable.bootstrapTable('hideColumn', 'Action');\n            }\n\n            rows.push({\n                opportunitySource: tempType.opportunitySource,\n                notes: tempType.notes,\n                status: tempType.status,\n                action: action\n            });\n        }\n        return rows;\n    }\n\n    function deactivateOpportunitySourceId(id) {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n\n        var jsonString = JSON.parse(initOpportunitySourceResponse);\n        var filterContact = [];\n\n        for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n            var tempStage = jsonString.opportunitySources[i];\n\n            if (id === tempStage.id) {\n                tempStage.status = \"Inactive\";\n            }\n            filterContact.push(tempStage);\n\n        }\n        var filterOpportunitiesArray = {'opportunitySources': filterContact};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n        initOpportunitySourceResponse = jsonStr;\n        \$opportunitySourceTable.bootstrapTable('hideLoading');\n        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(jsonStr));\n    }\n\n    function deleteOpportunitySource(id) {\n        //\$opportunitySourceTable.bootstrapTable('showLoading');\n        var path = '";
     // line 167
     echo $this->env->getExtension('routing')->getPath("settings_deleteopportunitysource", array("id" => 0));
     echo "';\n        path = path.substring(0, path.length - 1);\n\n        \$.post(path + id, null,\n                function (response) {\n                    if (response) {\n                        //\$opportunitySourceTable.bootstrapTable('showLoading');\n                        deactivateOpportunitySourceId(id);\n                    } else {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                    }\n                }\n        );\n    }\n\n    function activateOpportunitySourceId(id) {\n        \$opportunitySourceTable.bootstrapTable('removeAll');\n        \$opportunitySourceTable.bootstrapTable('showLoading');\n\n        var jsonString = JSON.parse(initOpportunitySourceResponse);\n        var filterContact = [];\n\n        for (var i = 0; i < jsonString.opportunitySources.length; i++) {\n            var tempStage = jsonString.opportunitySources[i];\n\n            if (id === tempStage.id) {\n                tempStage.status = \"Active\";\n            }\n            filterContact.push(tempStage);\n\n        }\n        var filterOpportunitiesArray = {'opportunitySources': filterContact};\n        var jsonStr = JSON.stringify(filterOpportunitiesArray);\n        initOpportunitySourceResponse = jsonStr;\n        \$opportunitySourceTable.bootstrapTable('hideLoading');\n        \$opportunitySourceTable.bootstrapTable('append', convertOpportunitySourceData(jsonStr));\n    }\n\n    function activateOpportunitySource(id) {\n        //\$opportunitySourceTable.bootstrapTable('showLoading');\n        var path = '";
     // line 207
     echo $this->env->getExtension('routing')->getPath("settings_activateopportunitysource", array("id" => 0));
     echo "';\n        path = path.substring(0, path.length - 1);\n\n        \$.post(path + id, null,\n                function (response) {\n                    if (response) {\n                        activateOpportunitySourceId(id);\n                    } else {\n                        \$opportunitySourceTable.bootstrapTable('hideLoading');\n                    }\n                }\n        );\n    }\n\n    function priceSorter(a, b) {\n        a = +a.substring(1); // remove \$\n        b = +b.substring(1);\n        if (a > b)\n            return 1;\n        if (a < b)\n            return -1;\n        return 0;\n    }\n\n    function rowStyle(row, index) {\n        var classes = ['active'];\n\n        if (index % 2 === 0) {\n            return {\n                classes: classes[0]\n            };\n        }\n        return {};\n    }\n    \n    function exportOpportunitySourceTableDataToPDF() {\n        var data = JSON.parse(initOpportunitySourceResponse);\n                \n        var userTablePDF = new exportPDF(data.opportunitySources, \"opportunitySources.pdf\", [\"opportunitySource\", \"notes\", \"status\"], \"Manage Products\");\n    }\n    \n    function exportOpportunitySourceTableDataToCSV() {\n        var data = JSON.parse(initOpportunitySourceResponse);\n                \n        exportToCSV(data.opportunitySources, \"opportunitySources.csv\", [\"opportunitySource\", \"notes\", \"status\"]);\n    }\n</script>";
 }
开发者ID:sirojan24,项目名称:BusinessPipeline,代码行数:26,代码来源:9d8dc22f4ac13ca40af41564164fd05cdb0558d92f8e652a444c8f864708.php

示例6: block_body_class

 public function block_body_class($context, array $blocks = array())
 {
     $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6 = $this->env->getExtension("native_profiler");
     $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6->enter($__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body_class"));
     echo twig_escape_filter($this->env, "edit edit-" . twig_lower_filter($this->env, $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array())), "html", null, true);
     $__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6->leave($__internal_1ca9b8c9e6e9e470939fa91edc4c240346d5f984d7519dc7d3514aa86f5bcfe6_prof);
 }
开发者ID:karolskora1993,项目名称:strona-przedszkola,代码行数:7,代码来源:4eba2610b1e22ca25938b3648481aa9102c2f0a5f7b630281ef57b0c5865d1e3.php

示例7: block_linkElement

 public function block_linkElement($context, array $blocks = array())
 {
     // line 23
     echo "    ";
     $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_htabs.html.twig", 23);
     // line 24
     echo "    ";
     $context["itemLink"] = $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "uri", array());
     // line 25
     echo "    ";
     if ($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "hasChildren", array()) && $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "displayChildren", array())) {
         // line 26
         echo "        ";
         $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("data-toggle" => "tab"));
         // line 27
         echo "        ";
         $context["itemLink"] = "#" . trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "name", array()), array(" " => "_", "#" => "_"))));
         // line 28
         echo "    ";
     } else {
         // line 29
         echo "        ";
         $context["linkAttributes"] = twig_array_merge(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, array("class" => $context["oro_menu"]->getadd_attribute_values(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null, "class", array(0 => "empty"))));
         // line 32
         echo "    ";
     }
     // line 33
     echo "    <a href=\"";
     echo twig_escape_filter($this->env, isset($context["itemLink"]) ? $context["itemLink"] : null, "html", null, true);
     echo "\"";
     echo $context["oro_menu"]->getattributes(isset($context["linkAttributes"]) ? $context["linkAttributes"] : null);
     echo ">";
     $this->displayBlock("label", $context, $blocks);
     echo "</a>\n";
 }
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:35,代码来源:c8a2b9c23cb1c77de66f25decb624aa532a5fdb7264d6d7299163ce4f9a47d82.php

示例8: block_form_start

 public function block_form_start($context, array $blocks = array())
 {
     // line 2
     ob_start();
     // line 3
     echo "    ";
     $context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"));
     // line 4
     echo "    ";
     if (twig_in_filter(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) {
         // line 5
         echo "        ";
         $context["form_method"] = isset($context["method"]) ? $context["method"] : $this->getContext($context, "method");
         // line 6
         echo "    ";
     } else {
         // line 7
         echo "        ";
         $context["form_method"] = "POST";
         // line 8
         echo "    ";
     }
     // line 9
     echo "    <form name=\"";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars", array()), "name", array()), "html", null, true);
     echo "\" method=\"";
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")), "html", null, true);
     echo "\" action=\"";
     echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), "html", null, true);
     echo "\"";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"));
     foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
         echo " ";
         echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
         echo "=\"";
         echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
         echo "\"";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     if (isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart")) {
         echo " enctype=\"multipart/form-data\"";
     }
     echo " novalidate=\"true\">\n    ";
     // line 10
     if ((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))) {
         // line 11
         echo "        <input type=\"hidden\" name=\"_method\" value=\"";
         echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "html", null, true);
         echo "\" />\n    ";
     }
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
开发者ID:dawidf,项目名称:air,代码行数:55,代码来源:b7df9b2df2f9fd77361b66a91c3bf1b344fca4b9622eec02deee73cb5f15.php

示例9: block_input

 public function block_input($context, array $blocks = array())
 {
     // line 10
     echo "        ";
     $context["field"] = twig_array_merge(isset($context["field"]) ? $context["field"] : null, array("style" => "background-color: " . (isset($context["value"]) ? $context["value"] : null), "pattern" => "^#([a-fA-F0-9]{6})|(rgba\\(\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*((0.[0-9]+)|[01])\\s*\\))\$"));
     // line 11
     echo "        <div class=\"colorpicker ";
     echo $this->getAttribute($this, "contrast", array(0 => $this->env->getExtension('GantryTwig')->colorContrastFunc(twig_lower_filter($this->env, isset($context["value"]) ? $context["value"] : null))), "method");
     echo "\">\n        <input\n            ";
     // line 14
     echo "            type=\"text\"\n            name=\"";
     // line 15
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"\n            value=\"";
     // line 16
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ")));
     echo "\"\n            ";
     // line 18
     echo "            ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n            ";
     // line 20
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) {
         echo "autocomplete=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()));
         echo "\"";
     }
     // line 21
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "autofocus=\"autofocus\"";
     }
     // line 22
     echo "            ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array(), "any", true, true)) {
         echo "pattern=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array()));
         echo "\"";
     }
     // line 23
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "disabled=\"disabled\"";
     }
     // line 24
     echo "            ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array(), "any", true, true)) {
         echo "list=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array()));
         echo "\"";
     }
     // line 25
     echo "            />\n            <i class=\"fa fa-tint\"></i>\n        </div>\n";
 }
开发者ID:vnatuan1989,项目名称:myloyal,代码行数:55,代码来源:1cce5874feac9439c3806957b12cfb544b4bf5966eb43d246d84b6ad56aeabd7.php

示例10: block_root

 public function block_root($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $context["oro_menu"] = $this->loadTemplate("OroNavigationBundle:Menu:menu.html.twig", "OroNavigationBundle:Menu:_dots_tabs-content.html.twig", 4);
     // line 5
     echo "\n    <div class=\"tab-content\">\n        ";
     // line 7
     $context["items"] = isset($context["item"]) ? $context["item"] : null;
     // line 8
     echo "        ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["items"]) ? $context["items"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
         // line 9
         echo "            ";
         $context["showNonAuthorized"] = $this->getAttribute($this->getAttribute($context["item"], "extras", array(), "any", false, true), "showNonAuthorized", array(), "any", true, true) && $this->getAttribute($this->getAttribute($context["item"], "extras", array()), "showNonAuthorized", array());
         // line 10
         echo "            ";
         $context["displayable"] = $this->getAttribute($this->getAttribute($context["item"], "extras", array()), "isAllowed", array()) || (isset($context["showNonAuthorized"]) ? $context["showNonAuthorized"] : null);
         // line 11
         echo "            ";
         if (isset($context["displayable"]) ? $context["displayable"] : null) {
             // line 12
             echo "                <div class=\"tab-pane\"\n                     id=\"";
             // line 13
             echo twig_escape_filter($this->env, trim(twig_lower_filter($this->env, twig_replace_filter($this->getAttribute($context["item"], "name", array()), array(" " => "_", "#" => "_")))), "html", null, true);
             echo "-content\">\n                    ";
             // line 14
             $context["options"] = array("tabTitle" => $this->getAttribute($context["item"], "label", array()));
             // line 15
             echo "                    ";
             $context["options"] = array("defaultUrl" => $this->env->getExtension('routing')->getPath("oro_default"));
             // line 16
             echo "                    ";
             $context["options"] = twig_array_merge(isset($context["options"]) ? $context["options"] : null, $this->getAttribute($context["item"], "extras", array()));
             // line 17
             echo "                    ";
             echo $this->env->getExtension('oro_menu')->render($this->getAttribute($context["item"], "name", array()), isset($context["options"]) ? $context["options"] : null);
             echo "\n                </div>\n            ";
         }
         // line 20
         echo "        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 21
     echo "        ";
     $context["item"] = isset($context["items"]) ? $context["items"] : null;
     // line 22
     echo "    </div>\n";
 }
开发者ID:aml-bendall,项目名称:ExpandAkeneoApi,代码行数:53,代码来源:bfd86a92a17796ac1274afc62f4295016ebe03c815fe776bad3870896b463ad1.php

示例11: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b = $this->env->getExtension("native_profiler");
     $__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b->enter($__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "::card.html.twig"));
     // line 1
     echo "<h1>";
     echo twig_escape_filter($this->env, twig_upper_filter($this->env, isset($context["firstname"]) ? $context["firstname"] : $this->getContext($context, "firstname")), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["lastname"]) ? $context["lastname"] : $this->getContext($context, "lastname")), "html", null, true);
     echo "</h1>";
     $__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b->leave($__internal_835030d3a3194b400a592ed316b98b85a7a2a4c65ece066f1ebbec2bc191740b_prof);
 }
开发者ID:s179861,项目名称:vie_data_save,代码行数:12,代码来源:f47827f9c6350034fe755be76b59b31a1dad78372728ee17da0c6a916d3494e9.php

示例12: getpageLinkName

 public function getpageLinkName($__text__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("text" => $__text__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         echo twig_replace_filter(twig_lower_filter($this->env, isset($context["text"]) ? $context["text"] : null), array(" " => "_"));
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
开发者ID:clee03,项目名称:metal,代码行数:13,代码来源:608ec7bc80655bdf337efd0577a714479136b3ca2acf1e513d59db0be2212290.php

示例13: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div id=\"topLeftBar\">\n    ";
     // line 2
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "topMenu"));
     foreach ($context['_seq'] as $context["label"] => $context["menu"]) {
         // line 3
         echo "        ";
         if ($this->getAttribute($this->getContext($context, "menu", true), "_html", array(), "any", true, true)) {
             // line 4
             echo "            ";
             echo $this->getAttribute($this->getContext($context, "menu"), "_html");
             echo "\n        ";
         } elseif ($this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "module") == $this->getContext($context, "currentModule") && (twig_test_empty($this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "action")) || $this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "action") == $this->getContext($context, "currentAction"))) {
             // line 6
             echo "            <span class=\"topBarElem topBarElemActive\"><strong>";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array($this->getContext($context, "label"))), "html", null, true);
             echo "</strong></span> |\n        ";
         } else {
             // line 8
             echo "            <span class=\"topBarElem\" ";
             if ($this->getAttribute($this->getContext($context, "menu", true), "_tooltip", array(), "any", true, true)) {
                 echo "title=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "menu"), "_tooltip"), "html", null, true);
                 echo "\"";
             }
             echo ">\n                <a id=\"topmenu-";
             // line 9
             echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "menu"), "_url"), "module")), "html", null, true);
             echo "\" href=\"index.php";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('urlRewriteWithParameters')->getCallable(), array($this->getAttribute($this->getContext($context, "menu"), "_url"))), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array($this->getContext($context, "label"))), "html", null, true);
             echo "</a>\n            </span> |\n        ";
         }
         // line 12
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['label'], $context['menu'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 13
     echo "</div>";
 }
开发者ID:KiwiJuicer,项目名称:handball-dachau,代码行数:46,代码来源:57d0a3375378c9626fe2c7d8c899f54987fd34aa2623a29f7956fa705a1c.php

示例14: block_content

 public function block_content($context, array $blocks = array())
 {
     // line 2
     echo "    <h4>";
     if (isset($context["_request"])) {
         $__request_ = $context["_request"];
     } else {
         $__request_ = null;
     }
     if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "1" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") {
         echo " Спец. проект: \"Устная история\" ";
     }
     // line 3
     echo "        ";
     if (isset($context["_request"])) {
         $__request_ = $context["_request"];
     } else {
         $__request_ = null;
     }
     if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "2" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") {
         echo " Спец. проект: \"Краеведение\" ";
     }
     // line 4
     echo "        ";
     if (isset($context["_request"])) {
         $__request_ = $context["_request"];
     } else {
         $__request_ = null;
     }
     if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "3" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") {
         echo " Спец. проект: \"Орнаменты\" ";
     }
     // line 5
     echo "        ";
     if (isset($context["_request"])) {
         $__request_ = $context["_request"];
     } else {
         $__request_ = null;
     }
     if (twig_lower_filter($this->env, $this->getAttribute($__request_, "param", array(0 => "type"), "method")) == "4" && twig_lower_filter($this->env, $this->getAttribute($__request_, "controller")) == "specprojects") {
         echo " Спец. проект: \"Шежире\" ";
     }
     // line 6
     echo "    </h4>\n";
 }
开发者ID:HappyKennyD,项目名称:teest,代码行数:45,代码来源:dd59bf8644e7589076b0768a8cff.php

示例15: block_main

 public function block_main($context, array $blocks = array())
 {
     $__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b = $this->env->getExtension("native_profiler");
     $__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b->enter($__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "main"));
     // line 16
     echo "    <div class=\"form-horizontal\">\n        ";
     // line 17
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["fields"]) ? $context["fields"] : $this->getContext($context, "fields"));
     foreach ($context['_seq'] as $context["field"] => $context["metadata"]) {
         // line 18
         echo "            <div class=\"form-group field-";
         echo twig_escape_filter($this->env, twig_lower_filter($this->env, $this->getAttribute($context["metadata"], "type", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["metadata"], "type", array()), "default") : "default"), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["metadata"], "css_class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["metadata"], "css_class", array()), "") : "", "html", null, true);
         echo "\">\n                <label class=\"col-sm-2 control-label\">\n                    ";
         // line 20
         echo twig_escape_filter($this->env, $this->getAttribute($context["metadata"], "label", array()) ? $this->env->getExtension('translator')->trans($this->getAttribute($context["metadata"], "label", array()), isset($context["_trans_parameters"]) ? $context["_trans_parameters"] : $this->getContext($context, "_trans_parameters")) : $this->env->getExtension('form')->humanize($context["field"]), "html", null, true);
         echo "\n                </label>\n                <div class=\"col-sm-10\">\n                    <div class=\"form-control\">\n                        ";
         // line 24
         echo $this->env->getExtension('easyadmin_extension')->renderEntityField($this->env, "show", $this->getAttribute(isset($context["_entity_config"]) ? $context["_entity_config"] : $this->getContext($context, "_entity_config"), "name", array()), isset($context["entity"]) ? $context["entity"] : $this->getContext($context, "entity"), $context["metadata"]);
         echo "\n                    </div>\n\n                    ";
         // line 27
         if (($this->getAttribute($context["metadata"], "help", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["metadata"], "help", array()), "") : "") != "") {
             // line 28
             echo "                        <span class=\"help-block\"><i class=\"fa fa-info-circle\"></i> ";
             echo $this->env->getExtension('translator')->trans($this->getAttribute($context["metadata"], "help", array()));
             echo "</span>\n                    ";
         }
         // line 30
         echo "                </div>\n            </div>\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['field'], $context['metadata'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 33
     echo "\n        <div class=\"form-group form-actions\">\n            <div class=\"col-sm-10 col-sm-offset-2\">\n            ";
     // line 36
     $this->displayBlock('item_actions', $context, $blocks);
     // line 68
     echo "            </div>\n        </div>\n    </div>\n\n    ";
     // line 72
     $this->displayBlock('delete_form', $context, $blocks);
     $__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b->leave($__internal_dc4ed691fdb13ce88e2ce36f8943ab07b377a427847d38d6094e0fb293d0097b_prof);
 }
开发者ID:3lolo,项目名称:lr_app,代码行数:45,代码来源:eb9f835f97a1d997d221a9a36354f98cd0c6f2f610b122711bc7b9622784b14e.php


注:本文中的twig_lower_filter函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。