Skip to content

Instantly share code, notes, and snippets.

View AndriyShepitsen's full-sized avatar

Andriy Shepitsen AndriyShepitsen

View GitHub Profile
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Created July 1, 2013 18:24
Laravel_Foundation_Slide_Down_Reveal-Modal_Login_Passsword_Form_With_Button
<div id="adminAuth" class="reveal-modal medium adminAuth2">
{{Form::open(array('url'=>'/login'))}}
{{ Form::email('email', $value = null, $attributes = array())}}
{{ Form::password('password', $value = null, $attributes = array())}}
{{ Form::submit('Login', $attributes = array('class'=>'button tiny radius'))}}
<a class="close-reveal-modal">&#215;</a>
{{Form::close()}}
</div>
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Created July 1, 2013 18:19
Laravel_Foundation_Slide_Down_Reveal-Modal_Contact_Form_With_Image
<div id="myModal" class="reveal-modal medium myModal2">
<h3 class="subheader">Contact Us</h3>
{{Form::open(array('url' => 'foo/bar'))}}
{{Form::label('email', 'Your E-mail')}}
{{Form::text('email', '', array('placeholder'=>'@', 'class'=>'txt'))}}
{{Form::label('msg', 'Enter a Message')}}
{{Form::textarea('msg', '', array('placeholder'=>'', 'class'=>'txtarea'))}}
{{ Form::submit('Send', array('class'=>'secondary button small radius'))}}
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Last active December 19, 2015 05:09
Laravel Image URL
<img src="{{url('comp/img/name.png')}}" alt="name">
{{link_to('#', '${1:linkName}');}}
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Created July 1, 2013 15:02
Laravel Image HTML
{{ HTML::image('myphoto.png', 'alt-text')}}
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Last active December 19, 2015 05:08
Laravel Link to Named Route with Text Only
{{link_to_route('routeName', 'Visible_Text_of_the_Laravel_Link');}}
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Last active March 12, 2023 13:32
Laravel Link to Named Route with an Image (Logo etc.)
<a href="{{URL::route('home')}}" title="Home Page">
<img src="{{url('comp/img/logo.png')}}" alt="Logo">
</a>
@AndriyShepitsen
AndriyShepitsen / vw_contact.blade.php
Created June 29, 2013 17:39
Laravel Form (Contact Us)
<div class="row">
<div class="large-12 columns">
{{Form::open(array('url' => 'foo/bar'))}}
<fieldset >
<legend><h3>Contact Us</h3></legend>
<div class="row">
<div class="small-6 columns">
{{Form::label('firstName', 'First Name')}}
{{Form::text('firstName', '', array('placeholder'=>'Your name', 'class'=>'className'))}}
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Created June 28, 2013 18:25
Laravel Form (Find Your Home)
<div class="large-12 columns panel">
<span class="find">FIND YOUR HOME</span>
<div class="row">
<div class="large-12 columns">
{{Form::open(array('url' => 'foo/bar'))}}
<div class="row">
<div class="large-12 columns">
{{Form::label('location', 'Location')}}
@AndriyShepitsen
AndriyShepitsen / master.blade.php
Last active March 23, 2023 21:01
Laravel Top Bar Menu Navigation Panel
<div class="navPanel">
<div class="row">
<div class="large-12 columns">
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
{{link_to_route('home', 'your_text_is_here');}}