only actuve user can chose priority
This commit is contained in:
@@ -180,10 +180,12 @@ class FormController extends Controller
|
|||||||
// $priority = $ticket_settings->first()->priority;
|
// $priority = $ticket_settings->first()->priority;
|
||||||
$default_priority = Ticket_Priority::where('is_default', '=', 1)->first();
|
$default_priority = Ticket_Priority::where('is_default', '=', 1)->first();
|
||||||
$user_priority = CommonSettings::where('id', '=', 6)->first();
|
$user_priority = CommonSettings::where('id', '=', 6)->first();
|
||||||
if ($user_priority->status == 0) {
|
if (!($request->input('priority'))) {
|
||||||
$priority = $default_priority->priority_id;
|
$priority = $default_priority->priority_id;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$priority = $request->input('priority');
|
$priority = $request->input('priority');
|
||||||
|
|
||||||
}
|
}
|
||||||
$source = $ticket_source->where('name', '=', 'web')->first()->id;
|
$source = $ticket_source->where('name', '=', 'web')->first()->id;
|
||||||
$attachments = $request->file('attachment');
|
$attachments = $request->file('attachment');
|
||||||
|
@@ -55,8 +55,9 @@ class="active"
|
|||||||
|
|
||||||
|
|
||||||
<!-- <li><a class="right" title="" data-placement="right" data-toggle="tooltip" href="#" data-original-title="Tooltip on right"> sss</a></li> -->
|
<!-- <li><a class="right" title="" data-placement="right" data-toggle="tooltip" href="#" data-original-title="Tooltip on right"> sss</a></li> -->
|
||||||
<a class="right" title="" data-placement="right" data-toggle="tooltip" href="#" data-original-title="{{Lang::get('lang.active_user_can_select_the_priority_while_creating_ticket')}}">
|
|
||||||
<div class="box-header with-border">
|
<div class="box-header with-border">
|
||||||
|
<a class="right" title="" data-placement="right" data-toggle="tooltip" href="#" data-original-title="{{Lang::get('lang.active_user_can_select_the_priority_while_creating_ticket')}}">
|
||||||
|
|
||||||
<span class="lead border-right" >{!! Lang::get('lang.current') !!}{!! Lang::get('lang.user_priority_status') !!}</span>
|
<span class="lead border-right" >{!! Lang::get('lang.current') !!}{!! Lang::get('lang.user_priority_status') !!}</span>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
@@ -88,10 +89,10 @@ class="active"
|
|||||||
<div class="box-footer">
|
<div class="box-footer">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<!-- <script type="text/javascript">
|
||||||
$('a').tooltip()
|
$('a').tooltip()
|
||||||
</script>
|
</script>
|
||||||
|
-->
|
||||||
<script>
|
<script>
|
||||||
function confirmDelete(priority_id) {
|
function confirmDelete(priority_id) {
|
||||||
var r = confirm('Are you sure?');
|
var r = confirm('Are you sure?');
|
||||||
@@ -124,7 +125,7 @@ class="active"
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: '{{route("user.priority.index")}}',
|
url: '{{route("user.priority.index")}}',
|
||||||
data: {user/settings/priority: user_settings_priority},
|
data: {user_settings_priority: user_settings_priority},
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
// with('success', Lang::get('lang.approval_settings-created-successfully'));
|
// with('success', Lang::get('lang.approval_settings-created-successfully'));
|
||||||
// alert("Hi, testing");
|
// alert("Hi, testing");
|
||||||
|
@@ -175,6 +175,7 @@ class = "active"
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
@if($user_Priority == 1)
|
@if($user_Priority == 1)
|
||||||
|
@if(Auth::user()->active == '1')
|
||||||
<div class="col-md-12 form-group">
|
<div class="col-md-12 form-group">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-1">
|
<div class="col-md-1">
|
||||||
@@ -186,7 +187,7 @@ class = "active"
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@endif
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
<div class="col-md-12 form-group {{ $errors->has('Subject') ? 'has-error' : '' }}">
|
<div class="col-md-12 form-group {{ $errors->has('Subject') ? 'has-error' : '' }}">
|
||||||
|
Reference in New Issue
Block a user