add publish module

This commit is contained in:
Arno Kaimbacher 2018-08-29 17:18:15 +02:00
parent 100f6db9a6
commit ffbbc04206
93 changed files with 8150 additions and 10228 deletions

View file

@ -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')

View file

@ -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

View file

@ -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