Skip to content
Snippets Groups Projects
Commit 970c6178 authored by Marko Ivancic's avatar Marko Ivancic
Browse files

WIP

parent 89c409e4
No related branches found
No related tags found
1 merge request!1Relate histories
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: SimpleSAMLphp 2.0.0\n"
"Report-Msgid-Bugs-To: simplesamlphp-translation@googlegroups.com\n"
"POT-Creation-Date: 2016-10-12 09:31+0200\n"
"PO-Revision-Date: 2022-01-09 12:14+0200\n"
"Last-Translator: Marko Ivancic <mivanci@srce.hr\n"
"Language: en\n"
"Language-Team: \n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.3.4\n"
msgid "Accounting"
msgstr "Accounting"
...@@ -2,10 +2,40 @@ ...@@ -2,10 +2,40 @@
namespace SimpleSAML\Module\accounting\Controller; namespace SimpleSAML\Module\accounting\Controller;
use SimpleSAML\Configuration;
use SimpleSAML\Locale\Translate;
use SimpleSAML\Session;
use SimpleSAML\XHTML\Template;
use Symfony\Component\HttpFoundation\Request;
class Test class Test
{ {
public function test(): void protected Configuration $configuration;
protected Session $session;
/**
* @param Configuration $configuration
* @param Session $session The current user session.
*/
public function __construct(Configuration $configuration, Session $session)
{ {
echo 'test'; $this->configuration = $configuration;
$this->session = $session;
}
/**
* @param Request $request
* @return Template
* @throws \Exception
*/
public function test(Request $request): Template
{
$template = new Template(Configuration::getConfig(), 'accounting:configuration.twig');
$template->data = [
'test' => Translate::noop('Accounting'),
];
return $template;
} }
} }
{% set pagetitle = 'Accounting configuration page'|trans %}
{% set frontpage_section = 'main' %}
{% extends "base.twig" %}
{% block preload %}
<link rel="stylesheet" href="{{ asset('css/accounting.css', 'accounting') }}">
{% endblock %}
{% block content %}
<h2>{{ pagetitle }} </h2>
<p>
{{ test }}
</p>
{% endblock %}
.test table {
border: 1px solid #eee;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment