]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
fix urls for company functions for users
authorAlexander Smirnov <fredeom@mail.ru>
Mon, 8 Apr 2024 13:47:59 +0000 (16:47 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Mon, 8 Apr 2024 13:47:59 +0000 (16:47 +0300)
erp24/views/companyFunctionsForUsers/index.php

index b28172b5ba8e5c3bdf2084f3faf11109d845c49f..8987b7b4c1ed2fe5c67accccb07260e163ca2c0b 100755 (executable)
@@ -7,17 +7,17 @@ function writeNode($node, $depth = 0) {
     $executors = [];
     foreach ($node['executors'] as $ind => $executor) {
         $executors []= Html::a($executor['admin']['name'],
-            ['/companyFunctionsForUsers/index', 'action' => 'clickOnExecutor', 'admin_id' => $executor['admin']['id'], 'company_function_id' => $node['id']],
+            ['/company-functions-for-users/index', 'action' => 'clickOnExecutor', 'admin_id' => $executor['admin']['id'], 'company_function_id' => $node['id']],
             ['class' => 'badge rounded-pill bg-info', 'target' => '_blank']);
     }
 
     $style = isset($node['entity']) ? "style='border: 3px solid #cdcdcd'" : "";
     echo "<div $style>"
-        . Html::a($node['name'], ['/companyFunctionsForUsers/index', 'action' => 'clickOnFunction', 'company_function_id' => $node['id']], ['class' => 'btn btn-light font-weight-bold  font-size-' . ($depth), 'target' => '_blank'])
+        . Html::a($node['name'], ['/company-functions-for-users/index', 'action' => 'clickOnFunction', 'company_function_id' => $node['id']], ['class' => 'btn btn-light font-weight-bold  font-size-' . ($depth), 'target' => '_blank'])
         . (isset($node['admin']) ?
             "&nbsp;<span class='badge rounded-pill bg-primary'>Админ.функ.</span> "
             . Html::a($node['admin']['admin']['name'],
-                ['/companyFunctionsForUsers/index', 'action' => 'clickOnAdministrator', 'company_function_id' => $node['id']],
+                ['/company-functions-for-users/index', 'action' => 'clickOnAdministrator', 'company_function_id' => $node['id']],
                 ['class' => 'badge rounded-pill bg-info', 'target' => '_blank']) : "")
         . (count($node['executors']) > 0 ? "&nbsp;<span class='badge rounded-pill bg-secondary'>Исполнители</span> " . implode(', ', $executors) : "")
         . (isset($node['entity']) ? "&nbsp;Цикл по <button class='btn btn-warning btn-sm' onclick='showEntities(" . $node['id']. ")'>" . $node['entity'] . "</button>" : "")
@@ -91,7 +91,7 @@ $this->registerCss($fontSize);
 
                 $.each(data, function() {
                     const a = document.createElement("a");
-                    a.href = "/companyFunctionsForUsers/index?company_function_id=" + function_id + "&entity_id=" + this['id'] + "&action=clickOnEntity";
+                    a.href = "/company-functions-for-users/index?company_function_id=" + function_id + "&entity_id=" + this['id'] + "&action=clickOnEntity";
                     a.target = "_blank";
                     a.classList.add("btn");
                     a.classList.add("btn-link");