-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#724 - added new empty page and controller for csv import
- Loading branch information
1 parent
8467583
commit 2520ceb
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...r/src/main/java/de/deadlocker8/budgetmaster/transactions/TransactionImportController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package de.deadlocker8.budgetmaster.transactions; | ||
|
||
import de.deadlocker8.budgetmaster.controller.BaseController; | ||
import de.deadlocker8.budgetmaster.services.HelpersService; | ||
import de.deadlocker8.budgetmaster.utils.Mappings; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
import javax.servlet.http.HttpServletRequest; | ||
|
||
@Controller | ||
@RequestMapping(Mappings.TRANSACTION_IMPORT) | ||
public class TransactionImportController extends BaseController | ||
{ | ||
private static class ReturnValues | ||
{ | ||
public static final String TRANSACTION_IMPORT = "transactions/transactionImport"; | ||
} | ||
|
||
private final TransactionService transactionService; | ||
private final HelpersService helpers; | ||
|
||
@Autowired | ||
public TransactionImportController(TransactionService transactionService, HelpersService helpers) | ||
{ | ||
this.transactionService = transactionService; | ||
this.helpers = helpers; | ||
} | ||
|
||
@GetMapping | ||
public String transactionImport(HttpServletRequest request, Model model) | ||
{ | ||
return ReturnValues.TRANSACTION_IMPORT; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
BudgetMasterServer/src/main/resources/templates/transactions/transactionImport.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<html> | ||
<head> | ||
<#import "../helpers/header.ftl" as header> | ||
<@header.globals/> | ||
<@header.header "BudgetMaster - ${locale.getString('menu.transactions.import')}"/> | ||
<#import "/spring.ftl" as s> | ||
</head> | ||
<@header.body> | ||
<#import "../helpers/navbar.ftl" as navbar> | ||
<@navbar.navbar "importCSV" settings/> | ||
|
||
<#import "../search/searchMacros.ftl" as searchMacros> | ||
|
||
<main> | ||
<div class="card main-card background-color"> | ||
<div class="container"> | ||
<div class="section center-align"> | ||
<div class="headline">${locale.getString("menu.transactions.import")}</div> | ||
</div> | ||
</div> | ||
|
||
<@header.content> | ||
</@header.content> | ||
</div> | ||
</main> | ||
|
||
<!-- Scripts--> | ||
<#import "../helpers/scripts.ftl" as scripts> | ||
<@scripts.scripts/> | ||
</@header.body> | ||
</html> |