Files
streamline-emr/docker/statistics/Modules/ClinicalData/Resources/views/resources/create.blade.php
T
2025-03-31 03:46:05 +03:00

73 lines
3.0 KiB
PHP
Executable File

@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.css') }}" rel="stylesheet">
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('resources.create_resource') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">{{ __('resources.dashboard') }}</a></li>
<li><a href="/resources/index">{{ __('resources.resources') }}</a></li>
<li class="active">{{ __('resources.create') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-sm-12">
@include('flash::message')
<div class="white-box">
{{ Form::open(['route' => 'resources.store', 'data-toggle' => 'validator', 'files' => true]) }}
<div class="form-group">
{{ Form::label('title', __('resources.title')) }}
{{ Form::text('title', '', ['class' => 'form-control compulsory']) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('body', __('resources.body')) }}
{{ Form::textArea('body', '', ['class' => 'textarea_editor form-control compulsory', 'required', 'rows' => 5]) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('attach_path', __('resources.attachment_path')) }}
{{ Form::file('attach_path', null ) }}
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
{{ Form::label('category_id', __('resources.categories')) }} &nbsp;&nbsp;
{{ Form::select('category_id', $resource_categories, ['class'=>'form-control']) }}
&nbsp;&nbsp;<a href="/resource_categories/create">{{ __('resources.add_category') }}</a>
<div class="help-block with-errors"></div>
</div>
{{ Form::button(__('resources.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10']) }}
{{ Form::button(__('resources.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }}
{{ Form::close() }}
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('elite/js/validator.js') }}"></script>
<script type="text/javascript" src="{{ asset('elite/bower_components/html5-editor/wysihtml5-0.3.0.js') }}"></script>
<script type="text/javascript" src="{{ asset('elite/bower_components/html5-editor/bootstrap-wysihtml5.js') }}"></script>
<script>
$(document).ready(function() {
$('.textarea_editor').wysihtml5();
});
</script>
@endpush