2015-10-14 16:15:39 +02:00
|
|
|
@extends('header')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
@parent
|
|
|
|
@include('accounts.nav', ['selected' => ACCOUNT_API_TOKENS, 'advanced' => true])
|
|
|
|
|
|
|
|
<div class="pull-right">
|
2016-03-22 15:09:48 +01:00
|
|
|
{!! Button::normal(trans('texts.documentation'))->asLinkTo(NINJA_WEB_URL.'/api-documentation/')->withAttributes(['target' => '_blank'])->appendIcon(Icon::create('info-sign')) !!}
|
2016-12-01 20:46:10 +01:00
|
|
|
@if (!Utils::isReseller())
|
|
|
|
{!! Button::normal(trans('texts.zapier'))->asLinkTo(ZAPIER_URL)->withAttributes(['target' => '_blank'])->appendIcon(Icon::create('globe')) !!}
|
2015-10-14 16:15:39 +02:00
|
|
|
@endif
|
2016-04-19 04:35:18 +02:00
|
|
|
@if (Utils::hasFeature(FEATURE_API))
|
2015-10-14 16:15:39 +02:00
|
|
|
{!! Button::primary(trans('texts.add_token'))->asLinkTo(URL::to('/tokens/create'))->appendIcon(Icon::create('plus-sign')) !!}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
2015-11-05 23:37:04 +01:00
|
|
|
@include('partials.bulk_form', ['entityType' => ENTITY_TOKEN])
|
|
|
|
|
2015-10-14 16:15:39 +02:00
|
|
|
{!! Datatable::table()
|
|
|
|
->addColumn(
|
|
|
|
trans('texts.name'),
|
|
|
|
trans('texts.token'),
|
|
|
|
trans('texts.action'))
|
|
|
|
->setUrl(url('api/tokens/'))
|
|
|
|
->setOptions('sPaginationType', 'bootstrap')
|
|
|
|
->setOptions('bFilter', false)
|
|
|
|
->setOptions('bAutoWidth', false)
|
|
|
|
->setOptions('aoColumns', [[ "sWidth"=> "40%" ], [ "sWidth"=> "40%" ], ["sWidth"=> "20%"]])
|
|
|
|
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[2]]])
|
|
|
|
->render('datatable') !!}
|
|
|
|
|
2017-11-28 08:57:02 +01:00
|
|
|
<p> </p>
|
2017-11-29 11:44:28 +01:00
|
|
|
<p> </p>
|
2017-11-28 08:57:02 +01:00
|
|
|
|
|
|
|
<div class="pull-right">
|
|
|
|
@if (Utils::hasFeature(FEATURE_API))
|
|
|
|
{!! Button::primary(trans('texts.add_subscription'))->asLinkTo(URL::to('/subscriptions/create'))->appendIcon(Icon::create('plus-sign')) !!}
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
|
2017-11-29 11:44:28 +01:00
|
|
|
@include('partials.bulk_form', ['entityType' => ENTITY_SUBSCRIPTION])
|
2017-11-28 08:57:02 +01:00
|
|
|
|
|
|
|
{!! Datatable::table()
|
|
|
|
->addColumn(
|
2017-11-29 11:44:28 +01:00
|
|
|
trans('texts.event'),
|
|
|
|
trans('texts.target_url'),
|
2017-11-28 08:57:02 +01:00
|
|
|
trans('texts.action'))
|
2017-11-29 11:44:28 +01:00
|
|
|
->setUrl(url('api/subscriptions/'))
|
2017-11-28 08:57:02 +01:00
|
|
|
->setOptions('sPaginationType', 'bootstrap')
|
|
|
|
->setOptions('bFilter', false)
|
|
|
|
->setOptions('bAutoWidth', false)
|
|
|
|
->setOptions('aoColumns', [[ "sWidth"=> "40%" ], [ "sWidth"=> "40%" ], ["sWidth"=> "20%"]])
|
|
|
|
->setOptions('aoColumnDefs', [['bSortable'=>false, 'aTargets'=>[2]]])
|
|
|
|
->render('datatable') !!}
|
|
|
|
|
|
|
|
|
2015-10-14 16:15:39 +02:00
|
|
|
<script>
|
2015-11-11 13:17:58 +01:00
|
|
|
|
|
|
|
window.onDatatableReady = actionListHandler;
|
2015-10-14 16:15:39 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
2017-11-29 11:44:28 +01:00
|
|
|
<p> </p>
|
|
|
|
|
|
|
|
|
2016-12-01 20:46:10 +01:00
|
|
|
@if (!Utils::isReseller())
|
2016-03-22 15:09:48 +01:00
|
|
|
<p> </p>
|
2016-07-16 22:01:55 +02:00
|
|
|
<script src="https://zapier.com/zapbook/embed/widget.js?guided_zaps=5627,6025,12216,8805,5628,6027&container=false&limit=6"></script>
|
2016-03-22 15:09:48 +01:00
|
|
|
@endif
|
2016-07-16 22:01:55 +02:00
|
|
|
|
2015-10-14 16:15:39 +02:00
|
|
|
@stop
|