Add simple tpl for each php
Change the home.css to common.css
This commit is contained in:
parent
d2060ce1b8
commit
868e49c834
11 changed files with 60 additions and 8 deletions
|
@ -1,3 +0,0 @@
|
|||
body {
|
||||
padding: 30px;
|
||||
}
|
|
@ -2,5 +2,9 @@
|
|||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
$exercice = new Exercice($EXERCICE);
|
||||
|
||||
$template->assign("Exercice", $exercice);
|
||||
//$template->assign("Number", $ex_number);
|
||||
|
||||
return "teams/exercice";
|
||||
|
|
|
@ -2,5 +2,4 @@
|
|||
|
||||
if(!defined('ONYX')) exit;
|
||||
|
||||
|
||||
return "teams/change";
|
||||
return "teams/me";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends file="layout-nav.tpl"}
|
||||
{block name=head}
|
||||
<link href="/css/home.css" rel="stylesheet">
|
||||
<link href="/css/common.css" rel="stylesheet">
|
||||
{/block}
|
||||
{block name=content}
|
||||
<h1>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{extends file="layout-nav.tpl"}
|
||||
{block name=head}
|
||||
<link href="/css/home.css" rel="stylesheet">
|
||||
<link href="/css/common.css" rel="stylesheet">
|
||||
{/block}
|
||||
{block name=content}
|
||||
<h1>
|
||||
|
|
19
onyx/tpl/bootstrap/teams/exercice.tpl
Normal file
19
onyx/tpl/bootstrap/teams/exercice.tpl
Normal file
|
@ -0,0 +1,19 @@
|
|||
{extends file="layout-nav.tpl"}
|
||||
|
||||
{block name=head}
|
||||
<link href="/css/common.css" rel="stylesheet">
|
||||
{/block}
|
||||
|
||||
{block name=content}
|
||||
<!-- TODO: resolved number -->
|
||||
<div>
|
||||
<h1>Exercice {$Number} - X</h1>
|
||||
<ul>
|
||||
<li>Difficulté : {$Exercice->statement}</li>
|
||||
<li>Gain :</li>
|
||||
<!-- Dowloads files -->
|
||||
<li>Description</li>
|
||||
<!-- Input solution -->
|
||||
<ul>
|
||||
|
||||
{/block}
|
|
@ -1,7 +1,7 @@
|
|||
{extends file="layout-nav.tpl"}
|
||||
|
||||
{block name=head}
|
||||
<link href="/css/home.css" rel="stylesheet">
|
||||
<link href="/css/common.css" rel="stylesheet">
|
||||
{/block}
|
||||
|
||||
{block name=content}
|
||||
|
|
11
onyx/tpl/bootstrap/teams/me.tpl
Normal file
11
onyx/tpl/bootstrap/teams/me.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
{extends file="layout-nav.tpl"}
|
||||
|
||||
{block name=head}
|
||||
<link href="/css/common.css" rel="stylesheet">
|
||||
{/block}
|
||||
|
||||
{block name=content}
|
||||
<h1>
|
||||
THIS IS ME
|
||||
</h1>
|
||||
{/block}
|
11
onyx/tpl/bootstrap/teams/summary.tpl
Normal file
11
onyx/tpl/bootstrap/teams/summary.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
{extends file="layout-nav.tpl"}
|
||||
|
||||
{block name=head}
|
||||
<link href="/css/common.css" rel="stylesheet">
|
||||
{/block}
|
||||
|
||||
{block name=content}
|
||||
<h1>
|
||||
THIS IS SUMMARY
|
||||
</h1>
|
||||
{/block}
|
11
onyx/tpl/bootstrap/teams/team.tpl
Normal file
11
onyx/tpl/bootstrap/teams/team.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
{extends file="layout-nav.tpl"}
|
||||
|
||||
{block name=head}
|
||||
<link href="/css/common.css" rel="stylesheet">
|
||||
{/block}
|
||||
|
||||
{block name=content}
|
||||
<h1>
|
||||
THIS IS TEAM
|
||||
</h1>
|
||||
{/block}
|
Reference in a new issue