@extends('layouts.main') @section('content')
{{ Form::open(['url' => 'topics/create/', 'method' => 'POST', 'name' => 'form', 'id' => 'createform', 'files' => true]) }}
トピックス編集

トピックス情報(新規登録)

{{-- 通知メッセージ --}} @if ($message <> "")
{{ Form::label("message", $message, ["class"=>"form-control btn-success btn"]) }}
@endif @if (session()->has('errors'))
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ Form::label("display_date","表示日",["class"=>"control-label btn"]) }} {{ Form::text("display_date", "", ["class"=>"form-control", "id"=>"display_date", "style"=>"width:120px"]) }} {{ Form::label("start_date","掲載期間",["class"=>"control-label btn"]) }} {{ Form::text("start_date", "", ["class"=>"form-control", "id"=>"start_date", "style"=>"width:120px"]) }} ~ {{ Form::text("end_date", "", ["class"=>"form-control", "id"=>"end_date", "style"=>"width:120px"]) }}
{{ Form::label("title", "タイトル", ["class"=>"control-label btn"]) }} {{ Form::text("title", "", ["class"=>"form-control validate[required]", "id"=>"title"]) }}
{{ Form::label("contents","登録内容",["class"=>"control-label btn"]) }} {{ Form::textarea("contents", "", ["class"=>"form-control validate[required]", "id"=>"contents", "rows"=>"10"]) }}
{{ Form::label("file1", "アップロードファイル", ["class"=>"control-label btn"]) }} {{ Form::file("file1", "", ["id"=>"file1", "class"=>"form_control"]) }} {{ Form::file("file2", "", ["id"=>"file2"]) }} {{ Form::file("file3", "", ["id"=>"file3"]) }} {{ Form::file("file4", "", ["id"=>"file4"]) }} {{ Form::file("file5", "", ["id"=>"file5"]) }}
{{ Form::hidden("id", "", ["id"=>"id"]) }} {{ Form::hidden("code", "", ["id"=>"code"]) }} {{ Form::hidden("users", "", ["id"=>"users"]) }} {{ Form::submit(" 登録 ", ["class" => "btn btn-success", "onClick" => "execUpdate();" ]) }} {{ Form::button("キャンセル", ["class"=>"btn btn-default", "onClick"=>"javascript:window.history.back(-1);return false;"]) }} {{ Form::close() }}
@endsection