feat: Refactor CRM and Finances modules
- Updated client-edit template to change 'Firma' to 'Nazwa' and added 'Nazwa firmy' input field. - Modified main-view template to reflect the new naming conventions for clients. - Enhanced finances main-view to display a list of clients with revenue details. - Added client selection dropdown in operation-edit template. - Improved work-time template by adding keyboard shortcut for task confirmation. - Introduced CrmController for handling client-related actions. - Created FinancesController to manage finance operations and categories. - Implemented ClientRepository for client data management. - Developed FinanceRepository for finance operations and data handling.
This commit is contained in:
@@ -31,6 +31,18 @@ ob_start();
|
||||
'inline' => true
|
||||
] );
|
||||
|
||||
$clients_values = [ '' => '--- brak ---' ];
|
||||
if ( is_array( $this -> clients ) ) foreach ( $this -> clients as $client )
|
||||
$clients_values[ $client['id'] ] = $client['firm'];
|
||||
|
||||
echo \Html::select( [
|
||||
'label' => 'Klient',
|
||||
'name' => 'client_id',
|
||||
'id' => 'client_id',
|
||||
'values' => $clients_values,
|
||||
'value' => $this -> operation['client_id'],
|
||||
] );
|
||||
|
||||
foreach ( $this -> operation['tags'] as $tag )
|
||||
{
|
||||
$tags_value .= $tag['tag'];
|
||||
@@ -110,4 +122,4 @@ echo $grid -> draw();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user