Permalink
Browse files

Basic template, basic form

  • Loading branch information...
vojtasvoboda committed Aug 17, 2014
1 parent ad55c0d commit fb8f5466d5bcb4912655efea6e02e0482f7e80d7
Showing with 43 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +42 −0 index.php
View
@@ -1 +1,2 @@
/vendor/
.idea
View
@@ -0,0 +1,42 @@
<?php
require 'vendor/autoload.php';
?>
<!doctype html>
<html lang="cs">
<head>
<meta charset="utf-8">
<title>Reservation form</title>
<meta name="description" content="" />
<meta name="copyright" content="" />
<meta name="language" content="cs" />
<script src="vendor/nette/forms/src/assets/netteForms.js"></script>
<style>
.required label { color: maroon }
</style>
</head>
<body>
<?php
use Nette\Forms\Form;
$form = new Form;
$form->addText('name', 'Name:');
$form->addPassword('password', 'Password:');
$form->addSubmit('send', 'Register');
// renders the form
echo $form;
?>
</body>
</html>

0 comments on commit fb8f546

Please sign in to comment.