add publish module
This commit is contained in:
parent
100f6db9a6
commit
ffbbc04206
93 changed files with 8150 additions and 10228 deletions
64
resources/views/settings/collection/collection.blade.php
Normal file
64
resources/views/settings/collection/collection.blade.php
Normal file
|
@ -0,0 +1,64 @@
|
|||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa-archive"></i> Collections
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-3-3">
|
||||
<a href="{{ route('settings.project.add') }}" class="pure-button button-small is-primary">
|
||||
<i class="fa fa-plus-circle"></i>ADD NEW COLLECTION
|
||||
</a>
|
||||
<br><br>
|
||||
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
|
||||
<thead>
|
||||
<th>Collection</th>
|
||||
<th>id</th>
|
||||
<th>Document id's</th>
|
||||
<th>Options</th>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
@foreach($collections as $collection)
|
||||
|
||||
<tr>
|
||||
<td>{{ $collection->name }}</td>
|
||||
<td>{{ $collection->id }}</td>
|
||||
<td>
|
||||
@foreach ($collection->documents as $document)
|
||||
<p>document id: {{ $document->id }}</p>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('settings.collection.edit', $collection->id) }}"><span aria-hidden="true"></span></a>
|
||||
<a class="delete" href="{{ route('settings.collection.delete', $collection->id) }}"><span aria-hidden="true"></span></a>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-3-3">
|
||||
{{ $collections->links('vendor.pagination.default') }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -118,6 +118,3 @@
|
|||
<span>{!! $submitButtonText !!}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
@include('errors._errors')
|
||||
|
|
|
@ -1,96 +1,95 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-archive"></i> Datasets</h2>
|
||||
</div>
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa fa-database"></i> Datasets
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="pure-g">
|
||||
|
||||
<div class="sidebar-simplesearch pure-u-1">
|
||||
{!! Form::open(array('route' => 'settings.document','method' => 'GET', 'class'=>'pure-form')) !!}
|
||||
<p>
|
||||
{!! Form::text('search', null, array('class'=>'pure-u-1 pure-u-md-1-2', 'placeholder'=>'filter for the title...')) !!}
|
||||
|
||||
<div class="select pure-u-1 pure-u-md-1-2">
|
||||
{!! Form::select('state', Config::get('enums.server_states'), 'published', ['class' => 'pure-u-1']) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2">
|
||||
<button type="submit">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
<input type="hidden" name="searchtype" id="searchtype" value="simple" />
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1">
|
||||
<div class="panel-heading">Page {{ $documents->currentPage() }} of {{ $documents->lastPage() }}</div>
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Document Type</th>
|
||||
<th>Project</th>
|
||||
<th>Titles</th>
|
||||
<th>Options</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($documents as $document)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{{ $document->id }}</td>
|
||||
<td>{{ $document->type }}</td>
|
||||
@if($document->hasProject())
|
||||
<td>{{ $document->project->name }}</td>
|
||||
@else
|
||||
<td>--</td>
|
||||
@endif
|
||||
|
||||
<td>
|
||||
@foreach ($document->titles as $title)
|
||||
<p>title: {{ $title->value }}</p>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
|
||||
{{-- <td>
|
||||
@foreach ($document->collections as $collection)
|
||||
<p>in collection: {{ $collection->name }}</p>
|
||||
@endforeach --}}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a class="view" href="{{ route('settings.document.show', $document->id) }}"><span> </span></a>
|
||||
<a class="edit" href="{{ route('settings.document.edit', $document->id) }}"><span> </span></a>
|
||||
<!--<a class="delete" href="{{ route('settings.book.delete', $document->id) }}"><span> </span></a>-->
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="pure-g box-content">
|
||||
|
||||
|
||||
<div class="pure-u-1">
|
||||
{{ $documents
|
||||
->appends(Input::except('page'))
|
||||
->links('vendor.pagination.default') }}
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
<div class="sidebar-simplesearch pure-u-1">
|
||||
{!! Form::open(array('route' => 'settings.document','method' => 'GET', 'class'=>'pure-form')) !!}
|
||||
<p>
|
||||
{!! Form::text('search', null, array('class'=>'pure-u-1 pure-u-md-1-2', 'placeholder'=>'filter for the title...')) !!}
|
||||
|
||||
<div class="select pure-u-1 pure-u-md-1-2">
|
||||
{!! Form::select('state', Config::get('enums.server_states'), 'published', ['class' => 'pure-u-1']) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2">
|
||||
<button type="submit">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</p>
|
||||
<input type="hidden" name="searchtype" id="searchtype" value="simple" />
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1">
|
||||
<div class="panel-heading">Page {{ $documents->currentPage() }} of {{ $documents->lastPage() }}</div>
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>Document Type</th>
|
||||
<th>Project</th>
|
||||
<th>Titles</th>
|
||||
<th>Options</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($documents as $document)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{{ $document->id }}</td>
|
||||
<td>{{ $document->type }}</td>
|
||||
@if($document->hasProject())
|
||||
<td>{{ $document->project->name }}</td>
|
||||
@else
|
||||
<td>--</td>
|
||||
@endif
|
||||
|
||||
<td>
|
||||
@foreach ($document->titles as $title)
|
||||
<p>title: {{ $title->value }}</p>
|
||||
@endforeach
|
||||
|
||||
</td>
|
||||
|
||||
{{-- <td>
|
||||
@foreach ($document->collections as $collection)
|
||||
<p>in collection: {{ $collection->name }}</p>
|
||||
@endforeach --}}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<a class="view" href="{{ route('settings.document.show', $document->id) }}"><span> </span></a>
|
||||
<a class="edit" href="{{ route('settings.document.edit', $document->id) }}"><span> </span></a>
|
||||
<!--<a class="delete" href="{{ route('settings.book.delete', $document->id) }}"><span> </span></a>-->
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pure-u-1">
|
||||
{{ $documents
|
||||
->appends(Input::except('page'))
|
||||
->links('vendor.pagination.default') }}
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
|
@ -1,30 +1,27 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<span>Edit Your Dataset</span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-3-3">
|
||||
<div class="content">
|
||||
<h1 class="title">Edit Your Dataset</h1>
|
||||
<div>
|
||||
<a href="{{ route('settings.document') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
{!! Form::model($document, ['method' => 'PATCH', 'route' => ['settings.document.update', $document->id], 'class' => 'pure-form', 'enctype' => 'multipart/form-data' ]) !!}
|
||||
|
||||
@include('settings/document/_form', ['submitButtonText' => 'Edit Dataset', 'bookLabel' => 'Edit Dataset.'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-3-3">
|
||||
<div>
|
||||
<a href="{{ route('settings.document') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
{!! Form::model($document, ['method' => 'PATCH', 'route' => ['settings.document.update', $document->id], 'class' => 'pure-form', 'enctype' => 'multipart/form-data' ]) !!}
|
||||
@include('settings/document/_form', ['submitButtonText' => 'Edit Dataset', 'bookLabel' => 'Edit Dataset.'])
|
||||
@include('errors._errors')
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa-archive"></i> Detail
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div id="titlemain-wrapper">
|
||||
<div class="pure-g box-content">
|
||||
<div id="titlemain-wrapper" class="pure-u-1 pure-u-md-1-2">
|
||||
<div class="frontdoor_pagination">
|
||||
<a href="{{ route('settings.document') }}" class="pure-button">
|
||||
<a href="{{ route('settings.document') }}" class="pure-button button-small">
|
||||
<i class="fa fa-arrow-left"></i> BACK
|
||||
</a>
|
||||
</div>
|
||||
|
@ -14,7 +19,7 @@
|
|||
@endforeach
|
||||
</div>
|
||||
|
||||
<div id="result-data">
|
||||
<div id="result-data" class="pure-u-1 pure-u-md-1-2">
|
||||
<div id="abstract">
|
||||
<ul>
|
||||
@foreach ($document->abstracts as $abstract)
|
||||
|
@ -25,7 +30,5 @@
|
|||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
83
resources/views/settings/home/index.blade.php
Normal file
83
resources/views/settings/home/index.blade.php
Normal file
|
@ -0,0 +1,83 @@
|
|||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">Reports</h3>
|
||||
</div>
|
||||
<div class="pure-g box-content">
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<canvas id="myChart" width="400" height="260"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- <div class="pure-u-1-2 box">
|
||||
<div class="l-box">
|
||||
<div class="header">
|
||||
<h3 class="header-title">Message</h3>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div class="box-content">
|
||||
<form class="pure-form pure-form-stacked">
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1-1">
|
||||
<label for="title">Title</label>
|
||||
<input id="title" type="text" class="pure-u-1-1">
|
||||
|
||||
<label for="post">Post Content</label>
|
||||
<textarea id="post" rows="10" class="pure-u-1-1"></textarea>
|
||||
|
||||
<hr>
|
||||
|
||||
<button class="pure-button pure-button-primary">Save</button>
|
||||
<button class="pure-button">Save in Draft</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> --}}
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.2.1/Chart.min.js"></script>
|
||||
<script>
|
||||
var ctx = document.getElementById("myChart");
|
||||
var myChart = new Chart(ctx, {
|
||||
type: 'bar',
|
||||
data: {
|
||||
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
|
||||
datasets: [{
|
||||
label: '# of Votes',
|
||||
data: [12, 14, 8, 2, 5, 1],
|
||||
backgroundColor: [
|
||||
'rgba(255, 99, 132, 0.2)',
|
||||
'rgba(54, 162, 235, 0.2)',
|
||||
'rgba(255, 206, 86, 0.2)',
|
||||
'rgba(75, 192, 192, 0.2)',
|
||||
'rgba(153, 102, 255, 0.2)',
|
||||
'rgba(255, 159, 64, 0.2)'
|
||||
],
|
||||
borderColor: [
|
||||
'rgba(255,99,132,1)',
|
||||
'rgba(54, 162, 235, 1)',
|
||||
'rgba(255, 206, 86, 1)',
|
||||
'rgba(75, 192, 192, 1)',
|
||||
'rgba(153, 102, 255, 1)',
|
||||
'rgba(255, 159, 64, 1)'
|
||||
],
|
||||
borderWidth: 1
|
||||
}]
|
||||
},
|
||||
options: {
|
||||
scales: {
|
||||
yAxes: [{
|
||||
ticks: {
|
||||
beginAtZero:true
|
||||
}
|
||||
}]
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endsection
|
|
@ -1,10 +1,10 @@
|
|||
<fieldset>
|
||||
|
||||
<legend>General</legend>
|
||||
<div class="pure-g">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
{!! Form::label('name', 'Lizenzname') !!}
|
||||
{!! Form::text('name_long', null, ['class' => 'pure-u-23-24']) !!}
|
||||
{!! Form::label('name_long', 'Lizenzname') !!}
|
||||
{!! Form::text('name_long', null, ['class' => 'pure-u-23-24', 'placeholder' => '--no language--']) !!}
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-2 pure-div">
|
||||
|
@ -64,14 +64,10 @@
|
|||
<input name="pod_allowed" value="1" {{ ($license->pod_allowed == 1) ? 'checked="checked" ' : '' }} type="checkbox" class="form-check-input">
|
||||
Print on Demand
|
||||
</label>
|
||||
|
||||
|
||||
<br />
|
||||
<div class="pure-controls">
|
||||
{!! Form::submit($submitButtonText, ['class' => 'pure-button button-small']) !!}
|
||||
</div>
|
||||
|
||||
|
||||
</fieldset>
|
||||
|
||||
@include('errors._errors')
|
||||
<br />
|
||||
<div class="pure-controls">
|
||||
{!! Form::submit($submitButtonText, ['class' => 'pure-button button-small']) !!}
|
||||
</div>
|
||||
@include('errors._errors')
|
||||
|
|
|
@ -1,28 +1,27 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
Edit Your License
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1">
|
||||
<div class="content">
|
||||
<h1 class="title">Edit Your License</h1>
|
||||
|
||||
<div>
|
||||
<a href="{{ route('settings.license') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{!! Form::model($license, ['method' => 'PATCH', 'route' => ['settings.license.update', $license->id], 'class' => 'pure-form']) !!}
|
||||
|
||||
@include('settings/license/_form', ['submitButtonText' => 'Edit License', 'daysLabel' => 'Days..', 'finesLabel' => 'Licenses..'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<a href="{{ route('settings.license') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
{!! Form::model($license, ['method' => 'PATCH', 'route' => ['settings.license.update', $license->id], 'class' => 'pure-form', 'enctype' => 'multipart/form-data']) !!}
|
||||
@include('settings/license/_form', ['submitButtonText' => 'Edit License', 'daysLabel' => 'Days..', 'finesLabel' => 'Licenses..'])
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -1,43 +1,40 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-file"></i> LICENSES</h2>
|
||||
</div>
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa-file"></i> Licenses
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div class="pure-u-1">
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<th>Licence</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
|
||||
<thead>
|
||||
<th>Licence</th>
|
||||
<th></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach($licenses as $license)
|
||||
<tr>
|
||||
<td>{{ $license->name_long }}</td>
|
||||
|
||||
<td>
|
||||
<a class="edit" href="{{ route('settings.license.edit', $license->id) }}">
|
||||
<span>edit</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<tbody>
|
||||
|
||||
@foreach($licenses as $license)
|
||||
|
||||
<tr>
|
||||
<td>{{ $license->name_long }}</td>
|
||||
|
||||
<td>
|
||||
<a class="edit" href="{{ route('settings.license.edit', $license->id) }}">
|
||||
<span>edit</span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -39,9 +39,8 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
<!-- <div class="pure-controls">-->
|
||||
|
||||
{!! Form::submit($submitButtonText, ['class' => 'pure-button button-small']) !!}
|
||||
<!-- </div>-->
|
||||
</fieldset>
|
||||
|
||||
@include('errors._errors')
|
|
@ -1,27 +1,26 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
<h1 class="title">Add Your Person</h1>
|
||||
<div>
|
||||
<a href="{{ route('settings.person') }}" class="pure-button button-small">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
Add Your Person
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-content">
|
||||
<div>
|
||||
<a href="{{ route('settings.person') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
{!! Form::open(['route' => 'settings.person.post', 'class' => 'pure-form pure-form-stacked']) !!}
|
||||
|
||||
@include('settings/person/_form', ['submitButtonText' => 'Add Person', 'projectLabel' => 'Save Person.'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div>
|
||||
{!! Form::open(['route' => 'settings.person.post', 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
@include('settings/person/_form', ['submitButtonText' => 'Add Person', 'projectLabel' => 'Save Person.'])
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -1,28 +1,28 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
Edit {{ $person->getFullName() }}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="content">
|
||||
<h1 class="title">Edit {{ $person->getFullName() }}</h1>
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div>
|
||||
<a href="{{ route('settings.person') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
{!! Form::model($person, ['method' => 'PATCH', 'route' => ['settings.person.update', $person->id],'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
@include('settings/person/_form', ['submitButtonText' => 'Save Person'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div>
|
||||
<a href="{{ route('settings.person') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
{!! Form::model($person, ['method' => 'PATCH', 'route' => ['settings.person.update', $person->id],'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
@include('settings/person/_form', ['submitButtonText' => 'Save Person'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-3">
|
||||
|
|
|
@ -1,75 +1,68 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa fa-edit"></i> Persons Management
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="content">
|
||||
<a class="pure-button button-small is-primary" href="{{ route('settings.person.add') }}">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>ADD NEW Person</span>
|
||||
</a>
|
||||
<br><br>
|
||||
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-pencil"></i> Persons Management</h2>
|
||||
</div>
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>ORCID</th>
|
||||
<!-- <th>Borrow</th> -->
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
<th>Document Count</th>
|
||||
<th colspan="2"><center>Options</center></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<a class="pure-button button-small is-primary" href="{{ route('settings.person.add') }}">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>ADD NEW Person</span>
|
||||
</a>
|
||||
<br><br>
|
||||
<tbody>
|
||||
@foreach($persons as $person)
|
||||
<tr>
|
||||
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<td>{{ $person->last_name }}</td>
|
||||
<!-- <td>{{ date('d-M-y', $person->registered_at) }}</td>-->
|
||||
<td>{{ $person->identifier_orcid }}</td>
|
||||
<!-- <td>{{ $person->borrow }}</td> -->
|
||||
<td>
|
||||
@if($person->status == 1)
|
||||
Active
|
||||
@else
|
||||
Inactive
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($person->status == 1)
|
||||
<a href="{{ route('settings.person.down', $person->id) }}" class="pure-button button-small is-warning">Deactivate</a>
|
||||
@else
|
||||
<a href="{{ route('settings.person.up', $person->id) }}" class="pure-button button-small is-success">Activate</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $person->documents->count() }}</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('settings.person.edit', $person->id) }}"><span> </span></a>
|
||||
<a class="delete" href="{{ route('settings.person.delete', $person->id) }}"><span> </span></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>ORCID</th>
|
||||
<!-- <th>Borrow</th> -->
|
||||
<th>Status</th>
|
||||
<th></th>
|
||||
<th>Document Count</th>
|
||||
<th colspan="2"><center>Options</center></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
@foreach($persons as $person)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{{ $person->last_name }}</td>
|
||||
<!-- <td>{{ date('d-M-y', $person->registered_at) }}</td>-->
|
||||
<td>{{ $person->identifier_orcid }}</td>
|
||||
<!-- <td>{{ $person->borrow }}</td> -->
|
||||
<td>
|
||||
@if($person->status == 1)
|
||||
Active
|
||||
@else
|
||||
Inactive
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($person->status == 1)
|
||||
<a href="{{ route('settings.person.down', $person->id) }}" class="pure-button button-small is-warning">Deactivate</a>
|
||||
@else
|
||||
<a href="{{ route('settings.person.up', $person->id) }}" class="pure-button button-small is-success">Activate</a>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $person->documents->count() }}</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('settings.person.edit', $person->id) }}"><span> </span></a>
|
||||
<a class="delete" href="{{ route('settings.person.delete', $person->id) }}"><span> </span></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
|
@ -9,10 +9,7 @@
|
|||
{{ Form::text('label', null, ['class' => 'form-control']) }}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<!-- <div class="pure-controls">-->
|
||||
{{ Form::submit($submitButtonText, ['class' => 'pure-button button-small']) }}
|
||||
<!--</div>-->
|
||||
{{ Form::submit($submitButtonText, ['class' => 'pure-button button-small']) }}
|
||||
</fieldset>
|
||||
|
||||
@include('errors._errors')
|
|
@ -1,27 +1,21 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
Add Your Project
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<h1 class="title">Add Your Project</h1>
|
||||
<div>
|
||||
<a href="{{ route('settings.project') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
|
||||
{!! Form::open(['route' => 'settings.project.post', 'class' => 'pure-form pure-form-stacked']) !!}
|
||||
|
||||
<div class="box-content">
|
||||
<a href="{{ route('settings.project') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
<div>
|
||||
{!! Form::open(['route' => 'settings.project.post', 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
@include('settings/project/_form', ['submitButtonText' => 'Save Project', 'projectLabel' => 'Save Project.'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -1,44 +1,41 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa-tasks"></i>
|
||||
<span>Projects<span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="content">
|
||||
<div class="title">
|
||||
<h1>Project</h1>
|
||||
</div>
|
||||
<a href="{{ route('settings.project.add') }}" class="pure-button button-small is-primary">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>ADD NEW Project</span>
|
||||
</a>
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<br><br>
|
||||
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Project</th>
|
||||
<th>Options</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach($projects as $project)
|
||||
<tr>
|
||||
<td>{{ $project->name }}</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('settings.project.edit', $project->id) }}"><span></span></a>
|
||||
<a class="delete" href="{{ route('settings.project.delete', $project->id) }}"><span></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<a href="{{ route('settings.project.add') }}" class="pure-button button-small is-primary">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>ADD NEW Project</span>
|
||||
</a>
|
||||
<br><br>
|
||||
<table class="pure-table pure-table-horizontal">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Project</th>
|
||||
<th>Options</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($projects as $project)
|
||||
<tr>
|
||||
<td>{{ $project->name }}</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('settings.project.edit', $project->id) }}"><span></span></a>
|
||||
<a class="delete" href="{{ route('settings.project.delete', $project->id) }}"><span></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@stop
|
|
@ -1,30 +1,25 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<span>Edit Your Project</span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-g">
|
||||
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="content">
|
||||
|
||||
<h1 class="title">Edit Your Project</h1>
|
||||
<div>
|
||||
<a href="{{ route('settings.project') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
{!! Form::model($project, ['method' => 'PATCH', 'route' => ['settings.project.update', $project->id], 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
@include('settings/project/_form', ['submitButtonText' => 'Save Project', 'projectLabel' => 'Edit Project.'])
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pure-g box-content">
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div>
|
||||
<a href="{{ route('settings.project') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
{!! Form::model($project, ['method' => 'PATCH', 'route' => ['settings.project.update', $project->id], 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
@include('settings/project/_form', ['submitButtonText' => 'Save Project', 'projectLabel' => 'Edit Project.'])
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,57 +1,54 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<h2 class="title">Create New Role</h2>
|
||||
<div>
|
||||
<a href="{{ route('role.index') }}" class="pure-button button-small">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
Create New Role
|
||||
</h3>
|
||||
</div>
|
||||
<div class="box-content">
|
||||
<div>
|
||||
<a href="{{ route('role.index') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{!! Form::open(['route' => 'user.store', 'method'=>'POST', 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="pure-control-group">
|
||||
{!! Form::label('name', 'Name:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
@if($errors->has('name'))
|
||||
{!! Form::open(['route' => 'role.store', 'method'=>'POST', 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('name')) field-validation-error @endif">
|
||||
{!! Form::label('name', 'Name:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
{{-- @if($errors->has('name'))
|
||||
<p class="field-validation-error">
|
||||
{{ $errors->first('name') }}
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@endif --}}
|
||||
</div>
|
||||
<div class="pure-control-group @if ($errors->has('display_name')) field-validation-error @endif">
|
||||
{!! Form::label('display_name', 'Display Label:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('display_name', null, array('placeholder' => 'Display Label','class' => 'form-control')) !!}
|
||||
</div>
|
||||
<div class="pure-control-group @if ($errors->has('description')) field-validation-error @endif">
|
||||
{!! Form::label('description', 'Description:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('description', null, array('placeholder' => 'Description for the role','class' => 'form-control')) !!}
|
||||
</div>
|
||||
|
||||
|
||||
<h5><b>Assign Permissions</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
<!-- <label for="Roles">Assign Roles</label>-->
|
||||
|
||||
<h5><b>Assign Permissions</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
@foreach ($permissions as $permission)
|
||||
<label for={{"permission". $permission->id }} class="pure-checkbox">
|
||||
<input name="permissions[]" value={{ $permission->id }} type="checkbox" class="form-check-input">
|
||||
{{ $permission->name }}
|
||||
</label>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@foreach ($permissions as $permission)
|
||||
|
||||
<label for={{"permission". $permission->id }} class="pure-checkbox">
|
||||
<input name="permissions[]" value={{ $permission->id }} type="checkbox" class="form-check-input">
|
||||
{{ $permission->name }}
|
||||
</label>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 text-center">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
<button type="submit" class="pure-button button-small">Submit</button>
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
@endsection
|
|
@ -1,71 +1,70 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<span>Edit role {{ $role->name }}</span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="content">
|
||||
<h1 class="title">Edit {{ $role->login }}</h1>
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div>
|
||||
<a href="{{ route('role.index') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div>
|
||||
<a href="{{ route('role.index') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<div>
|
||||
{!! Form::model($role, ['method' => 'PATCH','route' => ['role.update', $role->id], 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
<fieldset>
|
||||
<div class="pure-control-group @if ($errors->has('name')) field-validation-error @endif">
|
||||
{!! Form::label('name', 'Name:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
<div class="pure-control-group @if ($errors->has('display_name')) field-validation-error @endif">
|
||||
{!! Form::label('display_name', 'Display Label:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('display_name', null, array('placeholder' => 'Display Label','class' => 'form-control')) !!}
|
||||
</div>
|
||||
<div class="pure-control-group @if ($errors->has('description')) field-validation-error @endif">
|
||||
{!! Form::label('description', 'Description:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('description', null, array('placeholder' => 'Description for the role','class' => 'form-control')) !!}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
{!! Form::model($role, ['method' => 'PATCH','route' => ['role.update', $role->id], 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
<h5><b>Assign Permissions</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
@foreach ($permissions as $permission)
|
||||
<label for={{"permission". $permission->id }} class="pure-checkbox">
|
||||
<input name="permissions[]" value={{ $permission->id }} {{ (in_array($permission->id, $checkeds)) ? 'checked=checked' : '' }} type="checkbox" class="form-check-input">
|
||||
{{ $permission->name }}
|
||||
</label>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<fieldset>
|
||||
<div class="pure-control-group @if ($errors->has('login')) field-validation-error @endif">
|
||||
{!! Form::label('name', 'Name:', ['class' => 'control-label']) !!}
|
||||
{!! Form::text('name', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
|
||||
<h5><b>Assign Permissions</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
<!-- <label for="Roles">Assign Permissions</label>-->
|
||||
|
||||
|
||||
@foreach ($permissions as $permission)
|
||||
|
||||
<label for={{"permission". $permission->id }} class="pure-checkbox">
|
||||
<input name="permissions[]" value={{ $permission->id }} {{ (in_array($permission->id, $checkeds)) ? 'checked=checked' : '' }} type="checkbox" class="form-check-input">
|
||||
{{ $permission->name }}
|
||||
</label>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
<button type="submit" class="pure-button pure-button-primary">Save</button>
|
||||
|
||||
</fieldset>
|
||||
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="pure-button button-small">Save</button>
|
||||
</fieldset>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-3">
|
||||
<div class="sidebar">
|
||||
@foreach ($role->permissions as $permission)
|
||||
@foreach ($role->perms as $permission)
|
||||
<p>permission: {{ $permission->name }}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
|
|
|
@ -1,29 +1,27 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa-key"></i>
|
||||
<span>Roles Management <span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-key"></i> Roles Management
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<a class="pure-button button-small is-primary" href="{{ route('role.create') }}">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>Create New Role</span>
|
||||
</a>
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="pure-table roles">
|
||||
<div class="pure-g box-content">
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<a class="pure-button button-small is-primary" href="{{ route('role.create') }}">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>Create New Role</span>
|
||||
</a>
|
||||
<br>
|
||||
<table class="pure-table pure-table-horizontal roles">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Role</th>
|
||||
<th>Permissions</th>
|
||||
<th width="280px">Action</th>
|
||||
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -31,21 +29,20 @@
|
|||
<tr>
|
||||
<td>{{ $role->name }}</td>
|
||||
<td>
|
||||
@foreach ($role->permissions()->pluck('name') as $permission)
|
||||
@foreach ($role->perms()->pluck('name') as $permission)
|
||||
<label class="badge badge-success">{{ $permission }}</label>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('role.edit', $role->id) }}"> Edit Role</a>
|
||||
<a class="edit" href="{{ route('role.edit', $role->id) }}"> Edit Role</a>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
|
@ -1,20 +1,13 @@
|
|||
@extends('layouts.app')
|
||||
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<h2 class="title">Create New User</h2>
|
||||
<div>
|
||||
<a href="{{ route('user.index') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
Create New User
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
@if (count($errors) > 0)
|
||||
|
||||
<div class="alert alert-danger">
|
||||
<strong>Whoops!</strong> There were some problems with your input.<br><br>
|
||||
<ul>
|
||||
|
@ -25,69 +18,50 @@
|
|||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
{!! Form::open(['route' => 'user.store', 'method'=>'POST', 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('login')) field-validation-error @endif">
|
||||
<label>Login:</label>
|
||||
{!! Form::text('login', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('email')) field-validation-error @endif">
|
||||
<label>Email:</label>
|
||||
{!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Password:</label>
|
||||
{!! Form::password('password', array('placeholder' => 'Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
<div class="box-content">
|
||||
<div>
|
||||
<a href="{{ route('user.index') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
<span>BACK</span>
|
||||
</a>
|
||||
</div>
|
||||
{!! Form::open(['route' => 'user.store', 'method'=>'POST', 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('login')) field-validation-error @endif">
|
||||
<label>Login:</label>
|
||||
{!! Form::text('login', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Confirm Password:</label>
|
||||
{!! Form::password('password_confirmation', array('placeholder' => 'Confirm Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<h5><b>Assign Roles</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
<!-- <label for="Roles">Assign Roles</label>-->
|
||||
|
||||
|
||||
@foreach ($roles as $role)
|
||||
|
||||
<label for={{"role". $role->id }} class="pure-checkbox">
|
||||
<input name="roles[]" value={{ $role->id }} type="checkbox" class="form-check-input">
|
||||
{{ $role->name }}
|
||||
</label>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<strong>Role:</strong>
|
||||
{!! Form::select('roles[]', $roles,[], array('class' => 'form-control','multiple')) !!}
|
||||
<div class="pure-control-group @if ($errors->has('email')) field-validation-error @endif">
|
||||
<label>Email:</label>
|
||||
{!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-12 text-center">
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Password:</label>
|
||||
{!! Form::password('password', array('placeholder' => 'Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Confirm Password:</label>
|
||||
{!! Form::password('password_confirmation', array('placeholder' => 'Confirm Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<h5><b>Assign Roles</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
@foreach ($roles as $role)
|
||||
<label for={{"role". $role->id }} class="pure-checkbox">
|
||||
<input name="roles[]" value={{ $role->id }} type="checkbox" class="form-check-input">
|
||||
{{ $role->name }}
|
||||
</label>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<button type="submit" class="pure-button button-small">Submit</button>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
|
||||
|
||||
@endsection
|
|
@ -1,12 +1,15 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<span>Edit {{ $user->login }}</span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="content">
|
||||
<h1 class="title">Edit {{ $user->login }}</h1>
|
||||
|
||||
<div class="pure-g box-content">
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div>
|
||||
<a href="{{ route('user.index') }}" class="pure-button button-small">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
|
@ -26,58 +29,55 @@
|
|||
@endif
|
||||
|
||||
<div>
|
||||
|
||||
{!! Form::model($user, ['method' => 'PATCH','route' => ['user.update', $user->id], 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
<fieldset>
|
||||
<div class="pure-control-group @if ($errors->has('login')) field-validation-error @endif">
|
||||
<label>Login:</label>
|
||||
{!! Form::text('login', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
{!! Form::model($user, ['method' => 'PATCH','route' => ['user.update', $user->id], 'class' => 'pure-form pure-form-aligned']) !!}
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('email')) field-validation-error @endif">
|
||||
<label>Email:</label>
|
||||
{!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Password:</label>
|
||||
{!! Form::password('password', array('placeholder' => 'Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Confirm Password:</label>
|
||||
{!! Form::password('password_confirmation', array('placeholder' => 'Confirm Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<h5><b>Assign Roles</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
<!-- <label for="Roles">Assign Roles</label>-->
|
||||
|
||||
|
||||
@foreach ($roles as $role)
|
||||
|
||||
<label for={{"role". $role->id }} class="pure-checkbox">
|
||||
<input name="roles[]" value={{ $role->id }} {{ (in_array($role->id, $checkeds)) ? 'checked=checked' : '' }} type="checkbox" class="form-check-input">
|
||||
{{ $role->name }}
|
||||
</label>
|
||||
<fieldset>
|
||||
<div class="pure-control-group @if ($errors->has('login')) field-validation-error @endif">
|
||||
<label>Login:</label>
|
||||
{!! Form::text('login', null, array('placeholder' => 'Name','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<button type="submit" class="pure-button pure-button-primary">Save</button>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('email')) field-validation-error @endif">
|
||||
<label>Email:</label>
|
||||
{!! Form::text('email', null, array('placeholder' => 'Email','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Password:</label>
|
||||
{!! Form::password('password', array('placeholder' => 'Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
<div class="pure-control-group @if ($errors->has('password')) field-validation-error @endif">
|
||||
<label>Confirm Password:</label>
|
||||
{!! Form::password('password_confirmation', array('placeholder' => 'Confirm Password','class' => 'form-control')) !!}
|
||||
<em>*</em>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h5><b>Assign Roles</b></h5>
|
||||
<div class="pure-control-group checkboxlist @if ($errors->has('roles')) field-validation-error @endif">
|
||||
<!-- <label for="Roles">Assign Roles</label>-->
|
||||
|
||||
|
||||
@foreach ($roles as $role)
|
||||
|
||||
<label for={{"role". $role->id }} class="pure-checkbox">
|
||||
<input name="roles[]" value={{ $role->id }} {{ (in_array($role->id, $checkeds)) ? 'checked=checked' : '' }} type="checkbox" class="form-check-input">
|
||||
{{ $role->name }}
|
||||
</label>
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<button type="submit" class="pure-button button-small">Save</button>
|
||||
|
||||
</fieldset>
|
||||
|
||||
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-1-3">
|
||||
|
|
|
@ -1,67 +1,63 @@
|
|||
@extends('layouts.app')
|
||||
@extends('layouts.settings.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="pure-g">
|
||||
<div class="header">
|
||||
<h3 class="header-title">
|
||||
<i class="fa fa-users"></i>
|
||||
<span> Users Management</span>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<div class="content">
|
||||
<div class="pure-g box-content">
|
||||
|
||||
<div class="title">
|
||||
<h2><i class="fa fa-users"></i> Users Management</h2>
|
||||
</div>
|
||||
|
||||
<a class="pure-button button-small is-primary" href="{{ route('user.create') }}">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>Create New User</span>
|
||||
</a>
|
||||
<br><br>
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="pure-table users">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Roles</th>
|
||||
<th width="280px">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($users as $key => $user)
|
||||
<tr>
|
||||
<td>{{ ++$i }}</td>
|
||||
<td>{{ $user->login }}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>
|
||||
|
||||
@if(!empty($user->getRoleNames()))
|
||||
@foreach($user->getRoleNames() as $roleName)
|
||||
<label class="badge badge-success">{{ $roleName }}</label>
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('user.edit',$user->id) }}"> Edit</a>
|
||||
<span> </span>
|
||||
<a class="delete" href="{{ route('user.destroy', $user->id) }}"><span> Delete</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
{!! $users->render() !!}
|
||||
<div class="pure-u-1 pure-u-md-2-3">
|
||||
<a class="pure-button button-small is-primary" href="{{ route('user.create') }}">
|
||||
<i class="fa fa-plus-circle"></i>
|
||||
<span>Create New User</span>
|
||||
</a>
|
||||
<br><br>
|
||||
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert summary-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="pure-table users">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Name</th>
|
||||
<th>Email</th>
|
||||
<th>Roles</th>
|
||||
<th width="280px">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($users as $key => $user)
|
||||
<tr>
|
||||
<td>{{ ++$i }}</td>
|
||||
<td>{{ $user->login }}</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>
|
||||
@if(!empty($user->roles))
|
||||
@foreach($user->roles as $role)
|
||||
<label class="badge badge-success">{{ $role->name }}</label>
|
||||
@endforeach
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
<a class="edit" href="{{ route('user.edit',$user->id) }}"> Edit</a>
|
||||
<span> </span>
|
||||
<a class="delete" href="{{ route('user.destroy', $user->id) }}"><span> Delete</span></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
{!! $users->render() !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue