@extends('layouts/default') {{-- Page title --}} @section('title') Update Slack Settings @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content') {{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }} {{csrf_field()}}
{!! trans('admin/settings/general.slack_integration_help',array('slack_link' => 'https://my.slack.com/services/new/incoming-webhook')) !!} @if (($setting->slack_channel=='') && ($setting->slack_endpoint=='')) {{ trans('admin/settings/general.slack_integration_help_button') }} @endif
{{ trans('general.feature_disabled') }}
@else {{ Form::text('slack_endpoint', old('slack_endpoint', $setting->slack_endpoint), array('class' => 'form-control','placeholder' => 'https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXX', 'id' => 'slack_endpoint')) }} @endif {!! $errors->first('slack_endpoint', ' ') !!}{{ trans('general.feature_disabled') }}
@else {{ Form::text('slack_channel', old('slack_channel', $setting->slack_channel), array('class' => 'form-control','placeholder' => '#IT-Ops')) }} @endif {!! $errors->first('slack_channel', ' ') !!}{{ trans('general.feature_disabled') }}
@else {{ Form::text('slack_botname', old('slack_botname', $setting->slack_botname), array('class' => 'form-control','placeholder' => 'Snipe-Bot')) }} @endif {!! $errors->first('slack_botname', ' ') !!}