|
|
@@ -207,34 +207,86 @@ class Route_Storage_AclStruct extends RouteBase {
|
|
|
");
|
|
|
}
|
|
|
|
|
|
- UI::table([
|
|
|
- '__html_id' => 'struct_table',
|
|
|
- 'caption' => UI::h('span', [], [
|
|
|
- "Struktura tabeli {$tblName} [{$idTable}] ",
|
|
|
+ echo UI::h('details', ['style'=>"margin-bottom:24px; padding:0 10px; background-color:#eee", 'open' => "open"], [
|
|
|
+ UI::h('summary', ['style'=>"font-size:1.4em; line-height:2em; cursor:pointer; outline:none"], [
|
|
|
+ "Struktura obiektu '{$item['namespace']}' ",
|
|
|
+ ]),
|
|
|
+ UI::h('div', ['style'=>"padding:4px 24px; border-top:1px solid #fff"], [
|
|
|
+ UI::h('span', ['style'=>"margin-right:12px"], [
|
|
|
+ ( ($item['idZasob'] > 0)
|
|
|
+ ? UI::h('span', [ 'title' => "Nr zasobu '{$item['idZasob']}'" ], "Nr zasobu [{$item['idZasob']}]")
|
|
|
+ : UI::h('span', [ 'title' => "Brak nr zasobu - dodaj do zasobów" ], [
|
|
|
+ UI::hButtonAjax("+ do zasobów", 'addAclObjectToZasobyAjax', [
|
|
|
+ 'class' => "btn btn-xs btn-primary",
|
|
|
+ 'href' => Router::getRoute('Storage')->getLink('addAclObjectToZasobyAjax'),
|
|
|
+ 'data' => [
|
|
|
+ 'idStorage' => $item['idDatabase'],
|
|
|
+ 'namespace' => $item['namespace'],
|
|
|
+ ]
|
|
|
+ ])
|
|
|
+ ])
|
|
|
+ ),
|
|
|
+ ]),
|
|
|
+ // UI::h('span', ['style'=>"margin:0 12px"], [
|
|
|
+ // ( ($item['isObjectActive'] > 0)
|
|
|
+ // ? UI::h('span', [ 'class' => "label label-success", 'title' => "Namespace active" ], "Active")
|
|
|
+ // : UI::h('span', [ 'title' => "Namespace not active" ], [
|
|
|
+ // ($item['idZasob'] > 0)
|
|
|
+ // ? UI::hButtonAjax("Aktywuj", 'activateObjectAjax', [
|
|
|
+ // 'class' => "btn btn-xs btn-primary",
|
|
|
+ // 'href' => Router::getRoute('Storage')->getLink('activateObjectAjax'),
|
|
|
+ // 'data' => [
|
|
|
+ // 'namespace' => $item['namespace'],
|
|
|
+ // ]
|
|
|
+ // ])
|
|
|
+ // : '',
|
|
|
+ // ])
|
|
|
+ // ),
|
|
|
+ // ]),
|
|
|
UI::h('a', [
|
|
|
- 'href' => "index.php?_route=ViewTableAjax&namespace=default_db/{$tblName}",
|
|
|
- 'class' => "btn btn-md btn-link"
|
|
|
+ 'href' => "index.php?_route=ViewTableAjax&namespace={$item['namespace']}",
|
|
|
+ 'class' => "btn btn-sm btn-link"
|
|
|
], "Przeglądaj tabelę"),
|
|
|
+ ( ($item['idZasob'] > 0)
|
|
|
+ ? UI::h('a', [
|
|
|
+ 'href' => "procesy5.php?task=CRM_LISTA_ZASOBOW&filtr_id={$item['idZasob']}&filtr_ids=%2B&filtr_ob=%2B",
|
|
|
+ 'class' => "btn btn-sm btn-link",
|
|
|
+ 'title' => "Struktura tabeli w drzewie zasobów"
|
|
|
+ ], "Zasoby")
|
|
|
+ : ''
|
|
|
+ ),
|
|
|
+ ( ($item['idZasob'] > 0)
|
|
|
+ ? UI::h('a', [
|
|
|
+ 'href' => "index.php?FUNCTION_INIT=PROCES_MENU&HEADER_NOT_INIT=YES&_task=PROCES_FOR_TABLE&tblId={$item['idZasob']}",
|
|
|
+ 'class' => "btn btn-sm btn-link",
|
|
|
+ 'title' => "Procesy dla aktualnie przeglądanej tabeli"
|
|
|
+ ], "Procesy")
|
|
|
+ : ''
|
|
|
+ ),
|
|
|
+ // UI::h('a', [
|
|
|
+ // 'href' => Router::getRoute('Storage_AclReinstall')->getLink('', [ 'namespace' => $item['namespace'] ]),
|
|
|
+ // 'class' => 'btn btn-sm btn-link', 'style' => "color:#f00",
|
|
|
+ // 'title' => "Zainstaluje ponownie obiekt"
|
|
|
+ // ], "reinstall object"),
|
|
|
UI::h('a', [
|
|
|
- 'href' => "procesy5.php?task=CRM_LISTA_ZASOBOW&filtr_id={$idTable}&filtr_ids=%2B&filtr_ob=%2B",
|
|
|
- 'class' => "btn btn-md btn-link",
|
|
|
- 'title' => "Struktura aktualnie przeglądanej tabeli"
|
|
|
- ], "Zasoby"),
|
|
|
- UI::h('a', [
|
|
|
- 'href' => "index.php?FUNCTION_INIT=PROCES_MENU&HEADER_NOT_INIT=YES&_task=PROCES_FOR_TABLE&tblId={$idTable}",
|
|
|
- 'class' => "btn btn-md btn-link",
|
|
|
- 'title' => "Procesy dla aktualnie przeglądanej tabeli"
|
|
|
- ], "Procesy"),
|
|
|
- UI::h('a', [
|
|
|
- 'href' => Router::getRoute('Storage_AclUsage')->getLink('', [ 'namespace' => "default_db/{$tblName}" ]),
|
|
|
- 'class' => "btn btn-md btn-link",
|
|
|
+ 'href' => Router::getRoute('Storage_AclUsage')->getLink('', [ 'namespace' => $item['namespace'] ]),
|
|
|
+ 'class' => "btn btn-sm btn-link",
|
|
|
'title' => "Uprawnienia - analiza użycia komórek w procesach"
|
|
|
], "Uprawnienia (analiza użycia)"),
|
|
|
+ UI::h('a', [
|
|
|
+ 'href' => Router::getRoute('WfsJsRequestPanel')->getLink('', [ 'namespace' => $item['namespace'] ]),
|
|
|
+ 'class' => "btn btn-sm btn-link",
|
|
|
+ 'title' => "JavaScript WFS Panel"
|
|
|
+ ], "JavaScript WFS Panel"),
|
|
|
UI::h('a', [
|
|
|
'href' => Router::getRoute('Storage_TestXsd')->getLink('tableXsd', [ 'idStorage' => $idStorage, 'table' => "{$tblName}" ]),
|
|
|
'class' => "btn btn-md btn-link",
|
|
|
], "xsd"),
|
|
|
- ]),
|
|
|
+ ])
|
|
|
+ ]);
|
|
|
+ UI::table([
|
|
|
+ '__html_id' => 'struct_table',
|
|
|
+ 'caption' => "Struktura tabeli {$tblName} [{$idTable}]",
|
|
|
'cols_label' => [
|
|
|
'sort' => UI::h('nobr', [
|
|
|
'class' => "ta-ordering" . ('sort' === $sortByCol ? " ta-ordering-" . ( 'asc' === $sortByDir ? 'asc' : 'desc' ) : '' ),
|
|
|
@@ -650,6 +702,11 @@ class Route_Storage_AclStruct extends RouteBase {
|
|
|
'class' => "btn btn-sm btn-link",
|
|
|
'title' => "Uprawnienia - analiza użycia komórek w procesach"
|
|
|
], "Uprawnienia (analiza użycia)"),
|
|
|
+ UI::h('a', [
|
|
|
+ 'href' => Router::getRoute('WfsJsRequestPanel')->getLink('', [ 'namespace' => $item['namespace'] ]),
|
|
|
+ 'class' => "btn btn-sm btn-link",
|
|
|
+ 'title' => "JavaScript WFS Panel"
|
|
|
+ ], "JavaScript WFS Panel"),
|
|
|
UI::hButtonPost("(podgląd z relacjami)", [
|
|
|
'data' => [
|
|
|
'_postTask' => 'preview'
|