New code, building a migration routine.

This commit is contained in:
James Cole
2014-06-30 07:26:38 +02:00
parent 5d430e7dad
commit ecadf005a8
23 changed files with 338 additions and 15 deletions

View File

@@ -0,0 +1,19 @@
<html>
<head>
<style type="text/css">
* {font-size:Arial;}
</style>
</head>
<body>
<p>
Hi!
</p>
<p>
To get a new password, please <a href="{{route('reset',$reset)}}">verify your e-mail address</a>.
</p>
<p>
Cya!
</p>
</body>
</html>

View File

@@ -0,0 +1,5 @@
Hi!
To get a new password, please verify your e-mail address: {{route('reset',$reset)}}
Cya!

View File

@@ -7,5 +7,10 @@
@if(Auth::check())
logged in!
@endif
<br />
<a href="{{route('logout')}}">logout!</a>
</body>
</html>

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="{{url::to('/')}}">
<base href="{{URL::route('index')}}/">
<title>Firefly</title>
<!-- Bootstrap -->

View File

@@ -0,0 +1,50 @@
@extends('layouts.default')
@section('content')
<div class="row">
<div class="col-lg-8 col-md-8 col-sm-12">
<h1>Firefly<br/>
<small>Migration instructions</small>
</h1>
<ol>
<li>Open <code>app/config/database.php</code></li>
<li>Fill in the <code>old-firefly</code> connection records.</li>
<li>Refresh this page.</li>
</ol>
<p>
It should look something like this:
</p>
<pre>
return [
'fetch' => PDO::FETCH_CLASS,
'default' => 'mysql',
'connections' => [
'mysql' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => '(current database)',
'username' => '',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],
<strong>
'old-firefly' => [
'driver' => 'mysql',
'host' => 'localhost',
'database' => '(previous database)',
'username' => '',
'password' => '',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
],</strong>
],
</pre>
<p>
Refresh this page; when the connection is valid this page will refresh.
</p>
</div>
</div>
@stop

41
app/views/start.blade.php Normal file
View File

@@ -0,0 +1,41 @@
@extends('layouts.default')
@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h1>Firefly<br/>
<small>Welcome!</small>
</h1>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<p>
Welcome to Firefly! To get started, choose either of the two options below.
</p>
</div>
</div>
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12">
<h2>Start anew</h2>
<p>
Click the link below to create your first account, and get started with Firefly.
</p>
<p>
<a href="#" class="btn btn-info">Start with a new account</a>
</p>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<h2>Migrate from another Firefly</h2>
<p>
If you've used Firefly before and have another database around, follow this link to import
your data from a previous version.
</p>
<p>
<a href="{{route('migrate.index')}}" class="btn btn-info">Import your old data</a>
</p>
</div>
</div>
@stop

View File

@@ -44,7 +44,7 @@
</p>
@endif
<p>
<a href="#" class="btn btn-default">Reset password</a>
<a href="{{route('remindme')}}" class="btn btn-default">Forgot your password?</a>
</p>
</div>

View File

@@ -33,7 +33,7 @@
<a href="{{route('login')}}" class="btn btn-default">Back to login form</a>
</p>
<p>
<a href="#" class="btn btn-default">Reset password</a>
<a href="{{route('remindme')}}" class="btn btn-default">Reset password</a>
</p>
</div>

View File

@@ -0,0 +1,42 @@
@extends('layouts.guest')
@section('content')
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<h1>Firefly<br/>
<small>Forgot your password?</small>
</h1>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12">
{{Form::open()}}
<div class="form-group">
<label for="inputEmail">Email address</label>
<input type="email" class="form-control" id="inputEmail" name="email" placeholder="Enter email">
</div>
<button type="submit" class="btn btn-info">Submit</button>
{{Form::close()}}
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-4 col-sm-12">
<p>
&nbsp;
</p>
<p>
<a href="{{route('login')}}" class="btn btn-default">Back to login form</a>
</p>
<p>
<a href="{{route('register')}}" class="btn btn-default">Register a new account</a>
</p>
</div>
</div>
@stop