first commit
This commit is contained in:
		
							
								
								
									
										47
									
								
								resources/views/settings/currencies/create.blade.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								resources/views/settings/currencies/create.blade.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,47 @@
 | 
			
		||||
@extends('layouts.admin')
 | 
			
		||||
 | 
			
		||||
@section('title', trans('general.title.new', ['type' => trans_choice('general.currencies', 1)]))
 | 
			
		||||
 | 
			
		||||
@section('content')
 | 
			
		||||
    <!-- Default box -->
 | 
			
		||||
    <div class="box box-success">
 | 
			
		||||
    {!! Form::open(['url' => 'settings/currencies', 'role' => 'form']) !!}
 | 
			
		||||
 | 
			
		||||
    <div class="box-body">
 | 
			
		||||
        {{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
 | 
			
		||||
 | 
			
		||||
        {{ Form::radioGroup('enabled', trans('general.enabled')) }}
 | 
			
		||||
 | 
			
		||||
        {{ Form::selectGroup('code', trans('currencies.code'), 'code', $codes, setting('currencies.code')) }}
 | 
			
		||||
 | 
			
		||||
        {{ Form::radioGroup('default_currency', trans('currencies.default')) }}
 | 
			
		||||
 | 
			
		||||
        {{ Form::textGroup('rate', trans('currencies.rate'), 'money') }}
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- /.box-body -->
 | 
			
		||||
 | 
			
		||||
    <div class="box-footer">
 | 
			
		||||
        {{ Form::saveButtons('settings/currencies') }}
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- /.box-footer -->
 | 
			
		||||
 | 
			
		||||
    {!! Form::close() !!}
 | 
			
		||||
    </div>
 | 
			
		||||
@endsection
 | 
			
		||||
 | 
			
		||||
@section('scripts')
 | 
			
		||||
    <script type="text/javascript">
 | 
			
		||||
        var text_yes = '{{ trans('general.yes') }}';
 | 
			
		||||
        var text_no = '{{ trans('general.no') }}';
 | 
			
		||||
 | 
			
		||||
        $(document).ready(function(){
 | 
			
		||||
            $('#enabled_1').trigger('click');
 | 
			
		||||
 | 
			
		||||
            $('#name').focus();
 | 
			
		||||
 | 
			
		||||
            $("#code").select2({
 | 
			
		||||
                placeholder: "{{ trans('general.form.select.field', ['field' => trans('currencies.code')]) }}"
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
    </script>
 | 
			
		||||
@endsection
 | 
			
		||||
		Reference in New Issue
	
	Block a user