Add basic(!) html sites to display project information
This commit is contained in:
37
application/views/web/configurations/detail.php
Normal file
37
application/views/web/configurations/detail.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Configuration <?=$name?></title>
|
||||
<link rel="stylesheet" href="/ScattPort/assets/css/inuit.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="grids">
|
||||
<div class="grid grid-10">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
Konfigurationsdetails
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>ID</td><td><?=$id?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td><td><?=$name?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="grid grid-6">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Beschreibung</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=nl2br($description)?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
40
application/views/web/projects/create.php
Normal file
40
application/views/web/projects/create.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html5>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Create Project</title>
|
||||
<link rel="stylesheet" href="/ScattPort/assets/css/inuit.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="grids">
|
||||
<div class="grid grid-8">
|
||||
<?=form_open('web/projects/create')?>
|
||||
<table>
|
||||
<tr><th colspan="2">Create a new project</th></tr>
|
||||
<tr>
|
||||
<td>
|
||||
Name:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="f_name" value="<?=$name?>"/><?=form_error('f_name')?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Beschreibung:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="f_description" value="<?=$description?>"/><?=form_error('description')?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right" colspan="2">
|
||||
<input type="submit" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?=form_close()?>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
41
application/views/web/projects/detail.php
Normal file
41
application/views/web/projects/detail.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<!--
|
||||
To change this template, choose Tools | Templates
|
||||
and open the template in the editor.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Project <?=$name?></title>
|
||||
<link rel="stylesheet" href="/ScattPort/assets/css/inuit.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="grids">
|
||||
<div class="grid grid-8">
|
||||
<table>
|
||||
<tr><th colspan="2">Projektdetails</th></tr>
|
||||
<tr>
|
||||
<td>ID</td>
|
||||
<td><?=$id?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td>
|
||||
<td><?=$name?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Beschreibung</td>
|
||||
<td><?=$description?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="grid grid-8">
|
||||
<table>
|
||||
<tr><th>Konfigurationen</th></tr>
|
||||
<? foreach($configs as $config): ?>
|
||||
<tr><td><?=anchor('web/configurations/detail/'.$config['id'], $config['name'])?></td></tr>
|
||||
<? endforeach; ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
24
application/views/web/projects/list.php
Normal file
24
application/views/web/projects/list.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html5>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>List of projects</title>
|
||||
<link rel="stylesheet" href="/ScattPort/assets/css/inuit.css" />
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<tr>
|
||||
<td><b>id</b></td>
|
||||
<td><b>name</b></td>
|
||||
<td><b>owner</b></td>
|
||||
</tr>
|
||||
<? foreach($projects as $project): ?>
|
||||
<tr>
|
||||
<td><?=anchor('web/projects/detail/'.$project['id'], $project['id'])?></td>
|
||||
<td><?=$project['name']?></td>
|
||||
<td><?=$project['owner']?></td>
|
||||
</tr>
|
||||
<? endforeach; ?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user