1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-10 04:02:28 +01:00
polr/resources/views/index.blade.php
2015-11-06 20:25:48 -05:00

41 lines
1.6 KiB
PHP

@extends('layouts.base')
@section('css')
<link rel='stylesheet' href='css/index.css' />
@endsection
@section('content')
<h1 class='title'>{{env('APP_NAME')}}</h1>
<form method='POST' action='/shorten' role='form'>
<input type='text' autocomplete="off" class='form-control long-link-input' placeholder='http://' value='http://' name='link-url' />
<div id='options'>
<div class='btn-group btn-toggle visibility-toggler' data-toggle='buttons'>
<label class='btn btn-primary btn-sm active'>
<input type='radio' name='options' value='p' checked /> Public
</label>
<label class='btn btn-sm btn-default'>
<input type='radio' name='options' value='s' /> Secret
</label>
</div>
<p>Customize link: </p>
<div class='custom-link-text'>
<h2 class='site-url-field'>{{env('APP_ADDRESS')}}/</h2>
<input type='text' autocomplete="off" class='form-control custom-url-field' name='custom-ending' />
</div>
<div>
<a href='#' class='btn btn-success btn-xs check-btn' id='check-link-availability'>Check Availability</a>
<div id='link-availability-status'></div>
</div>
</div>
<input type='submit' class='btn btn-info' id='shorten' value='Shorten' />
<a href='#' class='btn btn-warning' id='show-link-options'>Link Options</a>
<input type="hidden" name='_token' value='{{csrf_token()}}' />
</form>
<div id='tips' class='text-muted tips'><i class='fa fa-spinner'></i> Loading Tips...</div>
@endsection
@section('js')
<script src='js/index.js'></script>
@endsection