Commit a8a0d117 by Aan Choesni Herlingga

update judul harus tidak boleh kosong

parent 434a610b
......@@ -42,7 +42,7 @@
<div class="form-group @if ($errors->has('name_en')) has-error @endif">
<label class="col-md-2 control-label">Category</label>
<div class="col-md-10">
{{ Form::text('name_en', $data->rEn->name, array('class' => 'form-control')) }}
{{ Form::text('name_en', $data->rEn->name, array('class' => 'form-control', 'required')) }}
@if ($errors->has('name_en'))
<label id="login-error" class="error" for="login">{{$errors->first('name_en')}}</label>
@endif
......
......@@ -57,7 +57,7 @@
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
@if($data->rEn)
{{ Form::text('title_en', $data->rEn ? $data->rEn->title : null, array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title_en', $data->rEn ? $data->rEn->title : null, array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@else
{{ Form::text('title_en', null, array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;')) }}
@endif
......
......@@ -34,7 +34,7 @@
<div class="form-group @if ($errors->has('titleien')) has-error @endif">
<label class="col-md-2 control-label">@lang('feature.menuen')</label>
<div class="col-md-10">
{{ Form::text('titleien', $data->rEn->name, array('class' => 'form-control')) }}
{{ Form::text('titleien', $data->rEn->name, array('class' => 'form-control', 'required')) }}
@if ($errors->has('titleien'))
<label id="login-error" class="error" for="login">{{$errors->first('titleien')}}</label>
@endif
......
......@@ -36,7 +36,7 @@
<div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
......@@ -57,7 +57,7 @@
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
@if($data->rEn)
{{ Form::text('title_en', $data->rEn ? $data->rEn->title : null, array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title_en', $data->rEn ? $data->rEn->title : null, array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@else
{{ Form::text('title_en', null, array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;')) }}
@endif
......
......@@ -36,7 +36,7 @@
<div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
......@@ -66,7 +66,7 @@
<div class="col-md-12">
<div class="form-group @if ($errors->has('title')) has-error @endif">
<div class="col-md-12">
{{ Form::text('title_en', $data->rEn ? $data->rEn->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title_en', $data->rEn ? $data->rEn->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment