Guest User

Untitled

a guest
Aug 17th, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
4CS 2.71 KB | None | 0 0
  1. @extends('layouts.default')
  2.  
  3. @section('title', ' - 聯絡我們')
  4.  
  5. @section('content')
  6.  
  7.     <div class="jumbotron" style="background-image: url('img/contact_picture.jpg');
  8.            background-repeat: no-repeat;
  9.            background-position: right bottom;
  10.            background-size: cover;
  11.            min-height: 450px;
  12.            padding-top: 0;padding-bottom: 0;margin-bottom: 0;
  13.            ">
  14.         <div class="container">
  15.             <h1 class="text-center" style="font-size: 50px;color:#000000">聯絡我們</h1>
  16.  
  17.             <div class="form-group">
  18.                
  19.                 @if (count($errors) > 0)
  20.                     <div class="row">
  21.                     <div class="alert alert-danger text-center col-sm-6 col-sm-offset-4 col-md-offset-3 col-xs-10 col-xs-offset-1">
  22.                             @foreach ($errors->all() as $error)
  23.                                 <li>{{ $error }}</li>
  24.                             @endforeach
  25.                     </div>
  26.                     </div>
  27.                 @endif
  28.            
  29.             </div>
  30.  
  31.             {{ Form::open([ 'route'=>['contactUs'], 'class'=>'form-horizontal', 'role'=>'form'] ) }}
  32.  
  33.                 <div class="form-group">
  34.                     {{ Form::label('labelTitle', '主旨', ['class'=>'col-sm-2 col-md-offset-1 control-label','style'=>'font-size:18px;color:#000000']) }}
  35.                     <div class="col-sm-10 col-md-6">
  36.                     {{ Form::text('title','',['class'=>'form-control','required'=>'required','autocomplete'=>'off','placeholder'=>'主旨']) }}
  37.                     </div>
  38.                     </div>
  39.                 <div class="form-group">
  40.                     {{ Form::label('labelContext', '意見內容', ['class'=>'col-sm-2 col-md-offset-1 control-label','style'=>'font-size:18px;color:#000000']) }}
  41.                     <div class="col-sm-10 col-md-6">
  42.                     {{ Form::textarea('context','',['class'=>'form-control','required'=>'required','autocomplete'=>'off','size'=>'50x8']) }}
  43.                     </div>
  44.                 </div>
  45.                 <div class="form-group">
  46.                     {{ Form::label('labelEmail', '信箱', ['class'=>'col-sm-2 col-md-offset-1 control-label','style'=>'font-size:18px;color:#000000']) }}
  47.                     <div class="col-sm-10 col-md-6">
  48.                     {{ Form::text('email','',['class'=>'form-control','autocomplete'=>'off','placeholder'=>'若希望我們回覆,請留下您的信箱,我們會儘快為您回覆']) }}
  49.                     </div>
  50.                 </div>
  51.  
  52.                 <div class="form-group">
  53.                     <div class="col-md-6 col-md-offset-3">
  54.                         <div class="form-group">
  55.                             {{ Form::submit('送出',['class'=>'btn btn-default','style'=>'width:100%;outline:none']) }}
  56.                         </div>
  57.                     </div>
  58.                 </div>
  59.             {{ Form::close() }}
  60.         </div>
  61.     </div>
  62.  
  63.     </div>
  64.  
  65. @stop
  66.  
  67. @section('script')
  68.     @parent
  69.  
  70.     <script> window.onload=function(){ alertify.success("您寶貴的意見是我們前進的動力<br>若您留下電子信箱,我們會盡快回覆您。"); } </script>
  71.  
  72. @stop
Advertisement
Add Comment
Please, Sign In to add comment