Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gredu_labs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
gredu_labs
Commits
9165103e
Commit
9165103e
authored
Apr 05, 2016
by
Vassilis Kanellopoulos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
open data page
parent
342c4a17
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
106 additions
and
0 deletions
+106
-0
config/app.config.php
config/app.config.php
+1
-0
config/settings/acl.global.php
config/settings/acl.global.php
+1
-0
config/settings/nav.global.php
config/settings/nav.global.php
+4
-0
module/open_data/bootstrap.php
module/open_data/bootstrap.php
+30
-0
module/open_data/templates/open_data/index.twig
module/open_data/templates/open_data/index.twig
+70
-0
No files found.
config/app.config.php
View file @
9165103e
...
...
@@ -24,6 +24,7 @@ return [
'module/in_numbers/bootstrap.php'
,
'module/in_numbers_mm/bootstrap.php'
,
'module/csv_export/bootstrap.php'
,
'module/open_data/bootstrap.php'
,
],
'cache_config'
=>
'data/cache/config/settings.php'
,
];
config/settings/acl.global.php
View file @
9165103e
...
...
@@ -37,6 +37,7 @@ return [
[
'/sch_sync/sync'
,
[
'school'
],
[
'get'
]],
[
'/in_numbers'
,
[
'guest'
,
'user'
],
[
'get'
]],
[
'/export/csv/edulabs_{type}.csv'
,
[
'guest'
,
'user'
],
[
'get'
]],
[
'/open-data'
,
[
'guest'
,
'user'
],
[
'get'
]],
],
],
],
...
...
config/settings/nav.global.php
View file @
9165103e
...
...
@@ -51,6 +51,10 @@ return [
'label'
=>
'Αίτηση'
,
'route'
=>
'application_form'
,
],
'open-data'
=>
[
'label'
=>
'Ανοικτά δεδομένα'
,
'route'
=>
'open_data'
,
],
'about'
=>
[
'label'
=>
'Σχετικά με τη δράση'
,
'route'
=>
'about'
,
...
...
module/open_data/bootstrap.php
0 → 100644
View file @
9165103e
<?php
use
Slim\App
;
use
Slim\Container
;
use
Slim\Http\Request
;
use
Slim\Http\Response
;
/**
* gredu_labs.
*
* @link https://github.com/eellak/gredu_labs for the canonical source repository
*
* @copyright Copyright (c) 2008-2015 Greek Free/Open Source Software Society (https://gfoss.ellak.gr/)
* @license GNU GPLv3 http://www.gnu.org/licenses/gpl-3.0-standalone.html
*/
return
function
(
App
$app
)
{
$container
=
$app
->
getContainer
();
$events
=
$container
[
'events'
];
$events
(
'on'
,
'app.bootstrap'
,
function
(
App
$app
,
Container
$c
)
{
$app
->
get
(
'/open-data'
,
function
(
Request
$req
,
Response
$res
)
use
(
$c
)
{
$view
=
$c
->
get
(
'view'
);
$view
->
getEnvironment
()
->
getLoader
()
->
prependPath
(
__DIR__
.
'/templates'
);
return
$view
->
render
(
$res
,
'open_data/index.twig'
);
})
->
setName
(
'open_data'
);
});
};
module/open_data/templates/open_data/index.twig
0 → 100644
View file @
9165103e
{%
extends
"layout.twig"
%}
{%
block
content
%}
<h1>
Ανοικτά δεδομένα
</h1>
<table
class=
"table"
>
<thead>
<tr>
<th
colspan=
"2"
>
Λίστα αρχείων
</th>
<tr>
</thead>
<tbody>
<tr>
<td>
Μονάδες που συμμετέχουν στη δράση
</td>
<td>
<a
href=
"
{{
path_for
(
'export.csv'
,
{
type
:
'schools'
}
)
}}
"
>
<i
class=
"fa fa-download"
></i>
Μεταφόρτωση αρχείου .csv
</a>
</td>
</tr>
<tr>
<td>
Χώροι μονάδων που καταγράφηκαν από τη δράση
</td>
<td>
<a
href=
"
{{
path_for
(
'export.csv'
,
{
type
:
'labs'
}
)
}}
"
>
<i
class=
"fa fa-download"
></i>
Μεταφόρτωση αρχείου .csv
</a>
</td>
</tr>
<tr>
<td>
Εξοπλισμός μονάδων που καταγράφηκε από τη δράση
</td>
<td>
<a
href=
"
{{
path_for
(
'export.csv'
,
{
type
:
'assets'
}
)
}}
"
>
<i
class=
"fa fa-download"
></i>
Μεταφόρτωση αρχείου .csv
</a>
</td>
</tr>
<tr>
<td>
Λογισμικό που χρησιμοποιείται από τις μονάδες και καταγράφηκε από τη δράση
</td>
<td>
<a
href=
"
{{
path_for
(
'export.csv'
,
{
type
:
'software'
}
)
}}
"
>
<i
class=
"fa fa-download"
></i>
Μεταφόρτωση αρχείου .csv
</a>
</td>
</tr>
<tr>
<td>
Αιτήσεις που συγκεντρώθηκαν από τις μονάδες
</td>
<td>
<a
href=
"
{{
path_for
(
'export.csv'
,
{
type
:
'appforms'
}
)
}}
"
>
<i
class=
"fa fa-download"
></i>
Μεταφόρτωση αρχείου .csv
</a>
</td>
</tr>
<tr>
<td>
Εξοπλισμός που αιτήθηκαν οι μονάδες
</td>
<td>
<a
href=
"
{{
path_for
(
'export.csv'
,
{
type
:
'appforms_items'
}
)
}}
"
>
<i
class=
"fa fa-download"
></i>
Μεταφόρτωση αρχείου .csv
</a>
</td>
</tr>
</tbody>
<tfoot>
<tr><th
colspan=
"2"
></th><tr>
</tfoot>
</table>
{%
endblock
%}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment