-
Notifications
You must be signed in to change notification settings - Fork 34
Sf1 dm #288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: hw/symfony-1-2019-11-12
Are you sure you want to change the base?
Sf1 dm #288
Changes from all commits
1c95a87
958c805
ab68d33
cafcedc
5de997a
f457bda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| #index: | ||
| # path: / | ||
| # controller: App\Controller\DefaultController::index | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,181 @@ | ||
| { | ||
| "team1": { | ||
| "name": "Team1", | ||
| "mentors": [ | ||
| "Mantas" | ||
| ], | ||
| "students": [ | ||
| "Tadas", | ||
| "Gytis", | ||
| "Ričardas" | ||
| ] | ||
| }, | ||
| "baltichalatai": { | ||
| "name": "BaltiChalatai", | ||
| "mentors": [ | ||
| "Lukas" | ||
| ], | ||
| "students": [ | ||
| "Vytas", | ||
| "Lukas", | ||
| "Diana" | ||
| ] | ||
| }, | ||
| "nnizer": { | ||
| "name": "ePacientas", | ||
| "mentors": [ | ||
| "Tadas" | ||
| ], | ||
| "students": [ | ||
| "Kornelijus", | ||
| "Dominykas", | ||
| "Miglė" | ||
| ] | ||
| }, | ||
| "activegen": { | ||
| "name": "ActiveGen", | ||
| "mentors": [ | ||
| "Arnoldas" | ||
| ], | ||
| "students": [ | ||
| "Andrius", | ||
| "Nojus", | ||
| "Martynas", | ||
| "Edvinas" | ||
| ] | ||
| }, | ||
| "mms": { | ||
| "name": "Membership-management-system", | ||
| "mentors": [ | ||
| "Mindaugas" | ||
| ], | ||
| "students": [ | ||
| "Erika", | ||
| "Rokas", | ||
| "Valentinas", | ||
| "Eligijus" | ||
| ] | ||
| }, | ||
| "pamainos": { | ||
| "name": "NFQ pamainu sistema", | ||
| "mentors": [ | ||
| "Paulius" | ||
| ], | ||
| "students": [ | ||
| "Liudas", | ||
| "Justina", | ||
| "Andrius" | ||
| ] | ||
| }, | ||
| "receptai": { | ||
| "name": "Receptai", | ||
| "mentors": [ | ||
| "Mantas" | ||
| ], | ||
| "students": [ | ||
| "Arnoldas", | ||
| "Arentas", | ||
| "Tautvydas" | ||
| ] | ||
| }, | ||
| "pulse": { | ||
| "name": "NFQ pulse", | ||
| "mentors": [ | ||
| "Lorenas" | ||
| ], | ||
| "students": [ | ||
| "Arvydas", | ||
| "Titas", | ||
| "Kristijonas", | ||
| "Andrius" | ||
| ] | ||
| }, | ||
| "lita": { | ||
| "name": "NFQ Petro atrankos problema akademijai", | ||
| "mentors": [ | ||
| "Paulius" | ||
| ], | ||
| "students": [ | ||
| "Kristina", | ||
| "Indrė", | ||
| "Dmitri" | ||
| ] | ||
| }, | ||
| "myfleet": { | ||
| "name": "MyFleet", | ||
| "mentors": [ | ||
| "Laurynas" | ||
| ], | ||
| "students": [ | ||
| "Artūras", | ||
| "Ignas", | ||
| "Jonas" | ||
| ] | ||
| }, | ||
| "career": { | ||
| "name": "NFQ Career Criteria Assessment", | ||
| "mentors": [ | ||
| "Erikas" | ||
| ], | ||
| "students": [ | ||
| "Matas", | ||
| "Andrius", | ||
| "Ainis" | ||
| ] | ||
| }, | ||
| "carparking": { | ||
| "name": "NFQ Car parking", | ||
| "mentors": [ | ||
| "Andrejus" | ||
| ], | ||
| "students": [ | ||
| "Kęstas", | ||
| "Lukas", | ||
| "Lukas" | ||
| ] | ||
| }, | ||
| "podcast": { | ||
| "name": "Krepšinio podcastai", | ||
| "mentors": [ | ||
| "Eligijus" | ||
| ], | ||
| "students": [ | ||
| "Edvardas", | ||
| "Nerijus", | ||
| "Kazimieras" | ||
| ] | ||
| }, | ||
| "Barakas": { | ||
| "name": "barakas", | ||
| "mentors": [ | ||
| "Armandas" | ||
| ], | ||
| "students": [ | ||
| "Raimondas", | ||
| "Mantas", | ||
| "Tomas" | ||
| ] | ||
| }, | ||
| "devcollab": { | ||
| "name": "Education sharing platform", | ||
| "mentors": [ | ||
| "Viktoras" | ||
| ], | ||
| "students": [ | ||
| "Karolis", | ||
| "Arnas", | ||
| "Evaldas", | ||
| "Algirdas" | ||
| ] | ||
| }, | ||
| "hack<b>er</b>'is po .mySubdomain &project=123": { | ||
| "name": "' OR 1 -- DROP DATABASE", | ||
| "mentors": [ | ||
| "<b>Ponas</b> Programišius" | ||
| ], | ||
| "students": [ | ||
| "Aurelijus", | ||
| "<b>Ir</b> jo \"geras\" draug'as" | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| <?php | ||
|
|
||
| namespace App\Controller; | ||
|
|
||
| use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | ||
| use Symfony\Component\HttpFoundation\Request; | ||
| use Symfony\Component\HttpFoundation\Response; | ||
| use Symfony\Component\Routing\Annotation\Route; | ||
|
|
||
| class StudentController extends AbstractController | ||
| { | ||
| /** | ||
| * @Route("/student", name="student") | ||
| * @param Request $request | ||
| * @return Response | ||
| */ | ||
| public function index(Request $request): Response | ||
| { | ||
| $name = $request->get('name'); | ||
| $project = $request->get('project'); | ||
| return $this->render('student/index.html.twig', [ | ||
| 'name' => $name, | ||
| 'project' => $project | ||
| ]); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,56 @@ | ||||||
| {% extends 'base.html.twig' %} | ||||||
|
|
||||||
| {% block title %}{{ someVariable }}{% endblock %} | ||||||
| {% block title %}Projektai{% endblock %} | ||||||
|
|
||||||
| {% block body %} | ||||||
| <div class="nfq-academy">{{ someVariable }}</div> | ||||||
| {% endblock %} | ||||||
| <ul class="list-group m-4"> | ||||||
| <li class="list-group-item list-group-item-info">Studentai</li> | ||||||
| {% for key, team in data %} | ||||||
| {% for student in team.students %} | ||||||
| <li class="list-group-item"> | ||||||
| <a href="{{ path('student', {name: student, project: key})|escape }}">{{ student }}</a> | ||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Symfony'je Twig'as standartinškai yra įjungęs
Suggested change
|
||||||
| ( | ||||||
| <span class="badge">Mentorius</span> {{ team.mentors[0] }} | ||||||
| ) | ||||||
| </li> | ||||||
| {% endfor %} | ||||||
| {% endfor %} | ||||||
| </ul> | ||||||
|
|
||||||
| <div class="m-4"> | ||||||
| <form action="/student" method="get"> | ||||||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reikėtų įprasti visur naudoti |
||||||
| <div class="input-group"> | ||||||
| <input name="name" type="text" class="form-control" placeholder="Studentas"/> | ||||||
| </div> | ||||||
| <div class="input-group"> | ||||||
| <input name="project" type="text" class="form-control" placeholder="Projektas"/> | ||||||
| </div> | ||||||
| <button type="submit" class="btn btn-success">Sužinoti vertinimą</button> | ||||||
| </form> | ||||||
| </div> | ||||||
|
|
||||||
| <ul class="list-group m-4"> | ||||||
| <li class="list-group-item list-group-item-info">Projektai</li> | ||||||
| {% for key, team in data %} | ||||||
| <li class="list-group-item"> | ||||||
| <h3>{{ team.name }}</h3> | ||||||
| <div class="panel panel-default"> | ||||||
| <div> | ||||||
| <a target="_blank" href=https://github.com/nfqakademija/{{ key|url_encode}}">github.com/nfqakademija/{{ key }}</a> | ||||||
| <span class="badge">GitHub</span> | ||||||
| </div> | ||||||
| <div> | ||||||
| <a target="_blank" href="http://{{ key|url_encode }}.projektai.nfqakademija.lt/">{{ key }}.projektai.nfqakademija.lt/</a> | ||||||
| <span class="badge">Web</span> | ||||||
| </div> | ||||||
| <div> | ||||||
| <pre>ssh {{ key }}@deploy.nfqakademija.lt -p 2222</pre> | ||||||
| </div> | ||||||
| </div> | ||||||
| </li> | ||||||
| {% endfor %} | ||||||
| </ul> | ||||||
| <div class="m-4"> | ||||||
| <a class="text-light" href="students.json">Duomenų failas</a> | ||||||
| </div> | ||||||
| {% endblock %} | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| {% extends 'base.html.twig' %} | ||
|
|
||
| {% block title %}Vertinimas{% endblock %} | ||
|
|
||
| {% block body %} | ||
| <div class="bg-light m-4"> | ||
| <table class="table"> | ||
| <tbody> | ||
| <tr> | ||
| <th scope="row">Projektas</th> | ||
| <th scope="row">Studentas</th> | ||
| </tr> | ||
| <tr> | ||
| <td>{{ project }}</td> | ||
| <td>{{ name }}</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
| {% if name == 'Dominykas' %} | ||
| <div class="alert alert-success" role="alert"> | ||
| Dešimt balų | ||
| </div> | ||
| {% else %} | ||
| <div class="alert alert-warning" role="alert"> | ||
| Gal pasiseks kitą kartą | ||
| </div> | ||
| {% endif %} | ||
| </div> | ||
|
|
||
| <div class="m-4"> | ||
| <a class="text-light" href="{{ path('home') }}">Visi studentai</a> | ||
| </div> | ||
| {% endblock %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Šaunu, kad naudoji
KernelInterface– tada ramiau galima judinti PHP failus tarp skirtingų katalogų