1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 16:13:20 +01:00
invoiceninja/resources/views/accounts/notifications.blade.php

53 lines
1.5 KiB
PHP
Raw Normal View History

2015-10-14 16:15:39 +02:00
@extends('header')
2015-03-16 22:45:25 +01:00
2016-09-06 10:02:21 +02:00
@section('content')
@parent
2015-03-16 22:45:25 +01:00
2015-10-14 16:15:39 +02:00
@include('accounts.nav', ['selected' => ACCOUNT_NOTIFICATIONS])
2018-03-08 16:37:25 +01:00
{!! Former::open()
->addClass('warn-on-exit')
->rules([
'slack_webhook_url' => 'url',
]) !!}
2015-03-16 22:45:25 +01:00
{{ Former::populate($account) }}
2018-03-08 16:37:25 +01:00
{{ Former::populateField('slack_webhook_url', auth()->user()->slack_webhook_url) }}
2015-03-16 22:45:25 +01:00
@include('accounts.partials.notifications')
2015-03-16 22:45:25 +01:00
2017-06-05 15:31:28 +02:00
<div class="panel panel-default">
<div class="panel-heading">
2018-03-08 16:37:25 +01:00
<h3 class="panel-title">Slack</h3>
2017-06-05 15:31:28 +02:00
</div>
<div class="panel-body">
2018-03-08 16:37:25 +01:00
{!! Former::text('slack_webhook_url')
->label('webhook_url')
2018-03-11 07:40:50 +01:00
->help(trans('texts.slack_webhook_help', ['link' => link_to('https://my.slack.com/services/new/incoming-webhook/', trans('texts.slack_incoming_webhooks'), ['target' => '_blank'])])) !!}
2017-06-05 15:31:28 +02:00
</div>
</div>
2018-03-08 16:37:25 +01:00
<div class="panel panel-default">
2016-09-06 10:02:21 +02:00
<div class="panel-heading">
2018-03-08 16:37:25 +01:00
<h3 class="panel-title">{!! trans('texts.google_analytics') !!}</h3>
2016-09-06 10:02:21 +02:00
</div>
<div class="panel-body">
2018-03-08 16:37:25 +01:00
{!! Former::text('analytics_key')
->help(trans('texts.analytics_key_help', ['link' => link_to('https://support.google.com/analytics/answer/1037249?hl=en', 'Google Analytics Ecommerce', ['target' => '_blank'])])) !!}
2015-04-20 16:34:23 +02:00
2018-03-08 16:37:25 +01:00
</div>
2015-10-14 22:56:17 +02:00
</div>
2016-09-06 10:02:21 +02:00
2017-11-03 09:19:03 +01:00
<center class="buttons">
{!! Button::success(trans('texts.save'))
2015-04-01 21:57:02 +02:00
->submit()->large()
2017-11-03 09:19:03 +01:00
->appendIcon(Icon::create('floppy-disk')) !!}
</center>
2016-09-06 10:02:21 +02:00
2015-04-01 21:57:02 +02:00
{!! Former::close() !!}
2015-03-16 22:45:25 +01:00
2016-09-06 10:02:21 +02:00
@stop