Commit b9a1871c by Siti Aisah

translate keyword agenda dan informasi

parent 9ecb5e58
......@@ -116,6 +116,7 @@ class AgendaController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -125,6 +126,7 @@ class AgendaController extends Controller
$dataEn['agenda_id'] = $agenda->id;
$dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content;
$this->repoEn->store($dataEn);
......@@ -134,6 +136,7 @@ class AgendaController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -143,6 +146,7 @@ class AgendaController extends Controller
$dataDe['agenda_id'] = $agenda->id;
$dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content;
$this->repoDe->store($dataDe);
......@@ -152,6 +156,7 @@ class AgendaController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -161,6 +166,7 @@ class AgendaController extends Controller
$dataSa['agenda_id'] = $agenda->id;
$dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content;
$this->repoSa->store($dataSa);
......@@ -170,6 +176,7 @@ class AgendaController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -179,6 +186,7 @@ class AgendaController extends Controller
$dataZh['agenda_id'] = $agenda->id;
$dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content;
$this->repoZh->store($dataZh);
......@@ -255,6 +263,11 @@ class AgendaController extends Controller
$request['title_de'] = strip_tags($request->title_de);
$request['title_sa'] = strip_tags($request->title_sa);
$request['title_zh'] = strip_tags($request->title_zh);
$request['keys'] = strip_tags($request->keys);
$request['keys_en'] = strip_tags($request->keys_en);
$request['keys_de'] = strip_tags($request->keys_de);
$request['keys_sa'] = strip_tags($request->keys_sa);
$request['keys_zh'] = strip_tags($request->keys_zh);
$request->validate([
'content' => 'required|min:3',
......@@ -267,7 +280,7 @@ class AgendaController extends Controller
'keys.max' => 'Keyword terlalu panjang'
]);
$data = $request->except(['_token', 'manual', 'id', 'title_en', 'content_en', 'title_de', 'content_de', 'title_sa', 'content_sa', 'title_zh', 'content_zh']);
$data = $request->except(['_token', 'manual', 'id', 'title_en', 'keys_en', 'content_en', 'title_de', 'keys_de', 'content_de', 'title_sa', 'keys_sa', 'content_sa', 'title_zh', 'keys_zh', 'content_zh']);
// $data['title'] = htmlspecialchars($request->title);
// $data['content'] = htmlspecialchars($request->content);
......@@ -302,6 +315,7 @@ class AgendaController extends Controller
{
if($manual==1) {
$dataEn['title'] = strip_tags($data['title_en']);
$dataEn['keys'] = strip_tags($data['keys_en']);
$dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -311,9 +325,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content;
}
......@@ -324,6 +340,7 @@ class AgendaController extends Controller
{
if($manual==1) {
$dataDe['title'] = strip_tags($data['title_de']);
$dataDe['keys'] = strip_tags($data['keys_de']);
$dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -334,8 +351,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content;
}
......@@ -346,6 +366,7 @@ class AgendaController extends Controller
{
if($manual==1) {
$dataSa['title'] = strip_tags($data['title_sa']);
$dataSa['keys'] = strip_tags($data['keys_sa']);
$dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -356,9 +377,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content;
}
......@@ -369,6 +392,7 @@ class AgendaController extends Controller
{
if($manual==1) {
$dataZh['title'] = strip_tags($data['title_zh']);
$dataZh['keys'] = strip_tags($data['keys_zh']);
$dataZh['content'] = strip_tags($data['content_zh'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -379,9 +403,11 @@ class AgendaController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th','span']));
$dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content;
}
......
......@@ -117,6 +117,7 @@ class InformationController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -126,6 +127,7 @@ class InformationController extends Controller
$dataEn['information_id'] = $information->id;
$dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content;
$this->repoEn->store($dataEn);
......@@ -135,6 +137,7 @@ class InformationController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -144,6 +147,7 @@ class InformationController extends Controller
$dataDe['information_id'] = $information->id;
$dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content;
$this->repoDe->store($dataDe);
......@@ -153,6 +157,7 @@ class InformationController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -162,6 +167,7 @@ class InformationController extends Controller
$dataSa['information_id'] = $information->id;
$dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content;
$this->repoSa->store($dataSa);
......@@ -171,6 +177,7 @@ class InformationController extends Controller
{
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
if ($data['content'] == null) {
$data['content'] = 'kosong';
......@@ -180,6 +187,7 @@ class InformationController extends Controller
$dataZh['information_id'] = $information->id;
$dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content;
$this->repoZh->store($dataZh);
......@@ -254,6 +262,11 @@ class InformationController extends Controller
$request['title_de'] = strip_tags($request->title_de);
$request['title_sa'] = strip_tags($request->title_sa);
$request['title_zh'] = strip_tags($request->title_zh);
$request['keys'] = strip_tags($request->keys);
$request['keys_en'] = strip_tags($request->keys_en);
$request['keys_de'] = strip_tags($request->keys_de);
$request['keys_sa'] = strip_tags($request->keys_sa);
$request['keys_zh'] = strip_tags($request->keys_zh);
$request->validate([
'content' => 'required|min:3',
......@@ -266,7 +279,7 @@ class InformationController extends Controller
'keys.max' => 'Keyword terlalu panjang'
]);
$data = $request->except(['_token', 'manual', 'id', 'title_en', 'content_en', 'title_de', 'content_de', 'title_sa', 'content_sa', 'title_zh', 'content_zh']);
$data = $request->except(['_token', 'manual', 'id', 'title_en', 'keys_en', 'content_en', 'title_de', 'keys_de', 'content_de', 'title_sa', 'keys_sa', 'content_sa', 'title_zh', 'keys_zh', 'content_zh']);
$dataEn = $request->except(['_token', 'id', 'manual']);
// $data['title'] = htmlspecialchars($request->title);
// $data['content'] = htmlspecialchars($request->content);
......@@ -301,6 +314,7 @@ class InformationController extends Controller
{
if($manual==1) {
$dataEn['title'] = strip_tags($data['title_en']);
$dataEn['keys'] = strip_tags($data['keys_en']);
$dataEn['content'] = strip_tags($data['content_en'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -310,9 +324,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGET, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataEn['title'] = $title;
$dataEn['keys'] = $keys;
$dataEn['content'] = $content;
}
......@@ -323,6 +339,7 @@ class InformationController extends Controller
{
if($manual==1) {
$dataDe['title'] = strip_tags($data['title_de']);
$dataDe['keys'] = strip_tags($data['keys_de']);
$dataDe['content'] = strip_tags($data['content_de'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -332,8 +349,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETDE, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataDe['title'] = $title;
$dataDe['keys'] = $keys;
$dataDe['content'] = $content;
}
......@@ -344,6 +364,7 @@ class InformationController extends Controller
{
if($manual==1) {
$dataSa['title'] = strip_tags($data['title_sa']);
$dataSa['keys'] = strip_tags($data['keys_sa']);
$dataSa['content'] = strip_tags($data['content_sa'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -354,9 +375,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETSA, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataSa['title'] = $title;
$dataSa['keys'] = $keys;
$dataSa['content'] = $content;
}
......@@ -367,6 +390,7 @@ class InformationController extends Controller
{
if($manual==1) {
$dataZh['title'] = strip_tags($data['title_zh']);
$dataZh['keys'] = strip_tags($data['keys_zh']);
$dataZh['content'] = strip_tags($data['content_zh'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']);
}
else{
......@@ -377,9 +401,11 @@ class InformationController extends Controller
$trans = new GoogleTranslate();
$title = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['title']));
$keys = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['keys']));
$content = $trans->translate($this->SOURCE, $this->TARGETZH, strip_tags($data['content'], ['a', 'br', 'p', 'b', 'i', 'u', 'ul', 'li', 'ol', 'img', 'table', 'tr', 'td', 'th', 'span']));
$dataZh['title'] = $title;
$dataZh['keys'] = $keys;
$dataZh['content'] = $content;
}
......
......@@ -33,7 +33,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
......@@ -109,7 +109,7 @@
<div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</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'=>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
......@@ -203,7 +203,7 @@
<div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
......
......@@ -29,7 +29,7 @@
<h3 class="panel-title"><strong>@lang('label.create')</strong> @lang('feature.page')</h3>
</div>
<div class="panel-body">
<div class="row">
{{-- <div class="row">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia
</div>
......@@ -49,16 +49,48 @@
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div>
</div>
</div>
</div> --}}
<div class="tabs">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="true">Inggris</a></li>
<li class="active"><a href="#indo" role="tab" data-toggle="tab" aria-expanded="true">Indonesia</a></li>
<li class=""><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="false">Inggris</a></li>
<li class=""><a href="#jerman" role="tab" data-toggle="tab" aria-expanded="false">Jerman</a></li>
<li class=""><a href="#arab" role="tab" data-toggle="tab" aria-expanded="false">Arab</a></li>
<li class=""><a href="#cina" role="tab" data-toggle="tab" aria-expanded="false">Cina</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="inggris">
<div class="tab-pane active" id="indo">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia
</div>
<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;', 'required')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
</div>
</div>
</div>
<div class="col-md-12">
<div class="block">
{{ Form::textarea('content', null, array('id'=>'content')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="inggris">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
English Language
</div>
......@@ -76,6 +108,15 @@
<div class="block">
{{ Form::textarea('content_en', $data->rEn ? $data->rEn->content : null, array('id'=>'content_en')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_en', $data->rEn ? $data->rEn->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="jerman">
......@@ -96,6 +137,15 @@
<div class="block">
{{ Form::textarea('content_de', $data->rDe ? $data->rDe->content : null, array('id'=>'content_de')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_de', $data->rDe ? $data->rDe->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="arab">
......@@ -116,6 +166,15 @@
<div class="block">
{{ Form::textarea('content_sa', $data->rSa ? $data->rSa->content : null, array('id'=>'content_sa')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_sa', $data->rSa ? $data->rSa->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="cina">
......@@ -136,6 +195,15 @@
<div class="block">
{{ Form::textarea('content_zh', $data->rZh ? $data->rZh->content : null, array('id'=>'content_zh')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_zh', $data->rZh ? $data->rZh->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
</div>
......@@ -188,7 +256,7 @@
</div>
</div>
<div class="col-md-12">
{{-- <div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Keywords</h3>
......@@ -213,7 +281,7 @@
<div class="panel-footer">
</div>
</div>
</div>
</div> --}}
{!! Form::close() !!}
</div>
<!-- page end-->
......
......@@ -33,7 +33,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
......@@ -109,7 +109,7 @@
<div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</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'=>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
......@@ -203,7 +203,7 @@
<div class="col-md-12">
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
......
......@@ -29,7 +29,7 @@
<h3 class="panel-title"><strong>@lang('label.edit')</strong> @lang('feature.information')</h3>
</div>
<div class="panel-body">
<div class="row">
{{-- <div class="row">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia
</div>
......@@ -49,16 +49,48 @@
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div>
</div>
</div>
</div> --}}
<div class="tabs">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="true">Inggris</a></li>
<li class="active"><a href="#indo" role="tab" data-toggle="tab" aria-expanded="true">Indonesia</a></li>
<li class=""><a href="#inggris" role="tab" data-toggle="tab" aria-expanded="false">Inggris</a></li>
<li class=""><a href="#jerman" role="tab" data-toggle="tab" aria-expanded="false">Jerman</a></li>
<li class=""><a href="#arab" role="tab" data-toggle="tab" aria-expanded="false">Arab</a></li>
<li class=""><a href="#cina" role="tab" data-toggle="tab" aria-expanded="false">Cina</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="inggris">
<div class="tab-pane active" id="indo">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
Bahasa Indonesia
</div>
<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;', 'required')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
@if ($errors->has('title'))
<label id="login-error" class="error" for="login">{{$errors->first('title')}}</label>
@endif
</div>
</div>
</div>
<div class="col-md-12">
<div class="block">
{{ Form::textarea('content', null, array('id'=>'content')) }}
{{ Form::hidden('manual', $manual, array('id'=>'manual')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="inggris">
<div style="padding: 10px 10px 10px 10px; font-weight: bold; font-size: 14pt;">
English Language
</div>
......@@ -76,6 +108,15 @@
<div class="block">
{{ Form::textarea('content_en', $data->rEn ? $data->rEn->content : null, array('id'=>'content_en')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_en', $data->rEn ? $data->rEn->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="jerman">
......@@ -96,6 +137,15 @@
<div class="block">
{{ Form::textarea('content_de', $data->rDe ? $data->rDe->content : null, array('id'=>'content_de')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_de', $data->rDe ? $data->rDe->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="arab">
......@@ -116,6 +166,15 @@
<div class="block">
{{ Form::textarea('content_sa', $data->rSa ? $data->rSa->content : null, array('id'=>'content_sa')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_sa', $data->rSa ? $data->rSa->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
<div class="tab-pane" id="cina">
......@@ -136,6 +195,15 @@
<div class="block">
{{ Form::textarea('content_zh', $data->rZh ? $data->rZh->content : null, array('id'=>'content_zh')) }}
</div>
<div class="form-group @if ($errors->has('keys')) has-error @endif">
<h3 class="panel-title">@lang('label.keywords')</h3>
<div class="col-md-12">
{{ Form::text('keys_zh', $data->rZh ? $data->rZh->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if ($errors->has('keys'))
<label id="login-error" class="error" for="login">{{$errors->first('keys')}}</label>
@endif
</div>
</div>
</div>
</div>
</div>
......@@ -190,7 +258,7 @@
</div>
</div>
<div class="col-md-12">
{{-- <div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Keywords</h3>
......@@ -215,7 +283,7 @@
<div class="panel-footer">
</div>
</div>
</div>
</div> --}}
{!! Form::close() !!}
</div>
<!-- page end-->
......
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