Commit e9151977 authored by Nicolas Widart's avatar Nicolas Widart

Adding checkout view

parent 694dc01f
...@@ -11,9 +11,13 @@ ...@@ -11,9 +11,13 @@
</ol> </ol>
@stop @stop
@section('styles')
<link href="{{{ Module::asset('core', 'css/vendor/iCheck/flat/blue.css') }}}" rel="stylesheet" type="text/css" />
@stop
@section('content') @section('content')
@include('flash::message') @include('flash::message')
{!! Form::open(['route' => ['dashboard.module.settings.post'], 'method' => 'post']) !!} {!! Form::open(['route' => ['dashboard.setting.store'], 'method' => 'post']) !!}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="box box-info"> <div class="box box-info">
...@@ -60,3 +64,14 @@ ...@@ -60,3 +64,14 @@
</div> </div>
{!! Form::close() !!} {!! Form::close() !!}
@stop @stop
@section('scripts')
<script>
$( document ).ready(function() {
$('input[type="checkbox"].flat-blue, input[type="radio"].flat-blue').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
});
</script>
@stop
<?php $settingName = $module . '_' . $setting; ?> <?php $settingName = $module . '_' . $setting; ?>
<div class='form-group'> <div class="checkbox">
{!! Form::label($settingName . "[$lang]", $moduleInfo['description']) !!} <label for="{{ $settingName . "[$lang]" }}">
<?php if (isset($settings[$settingName])): ?> <input id="{{ $settingName . "[$lang]" }}"
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]", $settings[$settingName]->translate($lang)->value), ['class' => 'form-control', 'placeholder' => $moduleInfo['description']]) !!} name="{{ $settingName . "[$lang]" }}"
<?php else: ?> type="checkbox"
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]"), ['class' => 'form-control', 'placeholder' => $moduleInfo['description']]) !!} class="flat-blue"
<?php endif; ?> {{ isset($settings[$settingName]) && (bool)$settings[$settingName]->translate($lang)->value == true ? 'checked' : '' }}
value="true" />
{{ $moduleInfo['description'] }}
</label>
</div> </div>
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