Base
This commit is contained in:
47
resources/views/install/admin.blade.php
Normal file
47
resources/views/install/admin.blade.php
Normal file
@ -0,0 +1,47 @@
|
||||
@extends('install.base')
|
||||
|
||||
@section('content')
|
||||
<h3>Create Admin</h3>
|
||||
<form class="form-horizontal" method="post" action="create_admin.php">
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">Username</div>
|
||||
<div class="col-md-3"><input type="text" name="name" class="form-control" /></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-2">Password</div>
|
||||
<div class="col-md-3"><input type="password" name="password" class="form-control" /></div>
|
||||
<div class="col-md-3" id="msg2"></div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-2"><button type="submit" class="form-control">Create</button></div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
status = 0;
|
||||
$("input[name='password']").blur(function(e) {
|
||||
var result = zxcvbn($(this).val(), user_inputs=[$("input[name='name']").val()]);
|
||||
if (result.score < 3) {
|
||||
$('#msg2').html('<span class="label label-danger"><span class="glyphicon glyphicon-warning-sign"></span> Nivel ' + result.score + '</span>');
|
||||
status = 0;
|
||||
} else {
|
||||
if (result.score == 3) {
|
||||
$('#msg2').html('<span class="label label-warning"><span class="glyphicon glyphicon-ok"></span> Nivel ' + result.score + '</span>');
|
||||
} else {
|
||||
$('#msg2').html('<span class="label label-success"><span class="glyphicon glyphicon-ok"></span> Nivel ' + result.score + '</span>');
|
||||
}
|
||||
status = 1;
|
||||
}
|
||||
});
|
||||
$("form").submit(function(e) {
|
||||
if (!status) {
|
||||
e.preventDefault();
|
||||
}
|
||||
return status;
|
||||
});
|
||||
};
|
||||
</script>
|
||||
@endpush
|
38
resources/views/install/base.blade.php
Normal file
38
resources/views/install/base.blade.php
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
@if (isset($titulo))
|
||||
{{$titulo}} -
|
||||
@endif
|
||||
Incoviba S. A.</title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/app.css" />
|
||||
<link rel="icon" type="image/png" href="../images/Isotipo 32.png" />
|
||||
<script type="text/javascript" src="../js/app.js"></script>
|
||||
|
||||
@stack('styles')
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="logo_cabezal">
|
||||
<a href="."><img src="../images/logo_cabezal.png" /></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
@yield('content')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@include('layout.footer')
|
||||
@stack('scripts')
|
||||
</body>
|
||||
</html>
|
5
resources/views/install/end.blade.php
Normal file
5
resources/views/install/end.blade.php
Normal file
@ -0,0 +1,5 @@
|
||||
@extends('install.base')
|
||||
|
||||
@section('content')
|
||||
Installation ended. Go to <a href="../">Inicio</a>. Remember to remove install folder.
|
||||
@endsection
|
6
resources/views/install/start.blade.php
Normal file
6
resources/views/install/start.blade.php
Normal file
@ -0,0 +1,6 @@
|
||||
@extends('install.base')
|
||||
|
||||
@section('content')
|
||||
Start Installation
|
||||
<a href="next_step.php">Create Tables</a>
|
||||
@endsection
|
Reference in New Issue
Block a user