Skip to content

Commit

Permalink
fix(deps): upgrade notifications groups list
Browse files Browse the repository at this point in the history
  • Loading branch information
warlof committed Oct 17, 2019
1 parent 94c303e commit 5be053a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
36 changes: 19 additions & 17 deletions src/resources/views/groups/list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

@section('left')

<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ trans('notifications::notifications.new_group') }}</h3>
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ trans('notifications::notifications.new_group') }}</h3>
</div>
<div class="panel-body">
<div class="card-body">

<form role="form" action="{{ route('notifications.groups.new.post') }}" method="post">
{{ csrf_field() }}
Expand Down Expand Up @@ -47,22 +47,22 @@

@section('right')

<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{ trans_choice('notifications::notifications.group', 2) }}</h3>
<div class="card">
<div class="card-header">
<h3 class="card-title">{{ trans_choice('notifications::notifications.group', 2) }}</h3>
</div>
<div class="panel-body">
<div class="card-body">

<table class="table compact table-condensed table-hover table-responsive" id="groups">
<table class="table compact table-condensed table-hover" id="groups">
<thead>
<tr>
<th>{{ trans('notifications::notifications.name') }}</th>
<th>{{ trans('notifications::notifications.type') }}</th>
<th>{{ trans_choice('notifications::notifications.alert', 2) }}</th>
<th>{{ trans_choice('notifications::notifications.integration', 2) }}</th>
<th>{{ trans_choice('notifications::notifications.affiliation', 2) }}</th>
<th></th>
</tr>
<tr>
<th>{{ trans('notifications::notifications.name') }}</th>
<th>{{ trans('notifications::notifications.type') }}</th>
<th>{{ trans_choice('notifications::notifications.alert', 2) }}</th>
<th>{{ trans_choice('notifications::notifications.integration', 2) }}</th>
<th>{{ trans_choice('notifications::notifications.affiliation', 2) }}</th>
<th></th>
</tr>
</thead>
</table>

Expand All @@ -89,6 +89,8 @@
{data: 'actions', name: 'actions', searchable: false, orderable: false},
]
});
$('select.form-control').select2();
});
</script>
Expand Down
6 changes: 4 additions & 2 deletions src/resources/views/groups/partials/actions.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<div class="btn-group pull-right">
<div class="btn-group btn-group-sm float-right">
<a href="{{ route('notifications.groups.edit', ['notification_group_id' => $row->id]) }}"
type="button" class="btn btn-primary btn-xs">
type="button" class="btn btn-warning btn-xs">
<i class="fas fa-pencil-alt"></i>
{{ trans('web::seat.edit') }}
</a>
<a href="{{ route('notifications.groups.delete', ['group_id' => $row->id]) }}"
type="button" class="btn btn-danger btn-xs confirmlink">
<i class="fas fa-trash-alt"></i>
{{ trans('web::seat.delete') }}
</a>
</div>

0 comments on commit 5be053a

Please sign in to comment.