only actuve user can chose priority
This commit is contained in:
@@ -180,10 +180,12 @@ class FormController extends Controller
|
||||
// $priority = $ticket_settings->first()->priority;
|
||||
$default_priority = Ticket_Priority::where('is_default', '=', 1)->first();
|
||||
$user_priority = CommonSettings::where('id', '=', 6)->first();
|
||||
if ($user_priority->status == 0) {
|
||||
if (!($request->input('priority'))) {
|
||||
$priority = $default_priority->priority_id;
|
||||
|
||||
} else {
|
||||
$priority = $request->input('priority');
|
||||
|
||||
}
|
||||
$source = $ticket_source->where('name', '=', 'web')->first()->id;
|
||||
$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> -->
|
||||
<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">
|
||||
<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>
|
||||
|
||||
</a>
|
||||
@@ -88,10 +89,10 @@ class="active"
|
||||
<div class="box-footer">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
<!-- <script type="text/javascript">
|
||||
$('a').tooltip()
|
||||
</script>
|
||||
|
||||
-->
|
||||
<script>
|
||||
function confirmDelete(priority_id) {
|
||||
var r = confirm('Are you sure?');
|
||||
@@ -106,7 +107,7 @@ class="active"
|
||||
</script>
|
||||
<script>
|
||||
$('#toggle_event_editing button').click(function () {
|
||||
|
||||
|
||||
var user_settings_priority=1;
|
||||
var user_settings_priority=0;
|
||||
if ($(this).hasClass('locked_active') ) {
|
||||
@@ -124,7 +125,7 @@ class="active"
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '{{route("user.priority.index")}}',
|
||||
data: {user/settings/priority: user_settings_priority},
|
||||
data: {user_settings_priority: user_settings_priority},
|
||||
success: function (result) {
|
||||
// with('success', Lang::get('lang.approval_settings-created-successfully'));
|
||||
// alert("Hi, testing");
|
||||
|
@@ -175,6 +175,7 @@ class = "active"
|
||||
?>
|
||||
|
||||
@if($user_Priority == 1)
|
||||
@if(Auth::user()->active == '1')
|
||||
<div class="col-md-12 form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
@@ -186,7 +187,7 @@ class = "active"
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
@endif
|
||||
|
||||
@endif
|
||||
<div class="col-md-12 form-group {{ $errors->has('Subject') ? 'has-error' : '' }}">
|
||||
|
Reference in New Issue
Block a user