Commit da074ce5 authored by Nicolas Widart's avatar Nicolas Widart

Publish new asgard views

parent 465e9cd3
......@@ -28,7 +28,7 @@
<div class="checkbox">
<label for="<?php echo "$subPermissionTitle.$permissionAction" ?>">
<input name="permissions[<?php echo "$subPermissionTitle.$permissionAction" ?>]" type="hidden" value="false" />
<input id="<?php echo "$subPermissionTitle.$permissionAction" ?>" name="permissions[<?php echo "$subPermissionTitle.$permissionAction" ?>]" type="checkbox" class="flat-blue" <?php echo $model->hasAccess("$subPermissionTitle.$permissionAction") ? 'checked' : '' ?> value="true" /> {{ ucfirst($permissionAction) }}
<input id="<?php echo "$subPermissionTitle.$permissionAction" ?>" name="permissions[<?php echo "$subPermissionTitle.$permissionAction" ?>]" type="checkbox" class="flat-blue" <?php echo array_get($model->permissions, "$subPermissionTitle.$permissionAction", false) === true ? 'checked' : '' ?> value="true" /> {{ ucfirst($permissionAction) }}
</label>
</div>
<?php endforeach; ?>
......
......@@ -9,10 +9,6 @@
</ol>
@stop
@section('styles')
{!! Theme::style('css/vendor/iCheck/flat/blue.css') !!}
@stop
@section('content')
{!! Form::open(['route' => 'admin.user.role.store', 'method' => 'post']) !!}
<div class="row">
......@@ -29,14 +25,14 @@
<div class="col-sm-6">
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
{!! Form::label('name', trans('user::roles.form.name')) !!}
{!! Form::text('name', Input::old('name'), ['class' => 'form-control slugify', 'placeholder' => trans('user::roles.form.name')]) !!}
{!! Form::text('name', Input::old('name'), ['class' => 'form-control', 'data-slug' => 'source', 'placeholder' => trans('user::roles.form.name')]) !!}
{!! $errors->first('name', '<span class="help-block">:message</span>') !!}
</div>
</div>
<div class="col-sm-6">
<div class="form-group{{ $errors->has('slug') ? ' has-error' : '' }}">
{!! Form::label('slug', trans('user::roles.form.slug')) !!}
{!! Form::text('slug', Input::old('slug'), ['class' => 'form-control slug', 'placeholder' => trans('user::roles.form.slug')]) !!}
{!! Form::text('slug', Input::old('slug'), ['class' => 'form-control slug', 'data-slug' => 'target', 'placeholder' => trans('user::roles.form.slug')]) !!}
{!! $errors->first('slug', '<span class="help-block">:message</span>') !!}
</div>
</div>
......
......@@ -11,10 +11,6 @@
</ol>
@stop
@section('styles')
{!! Theme::style('css/vendor/iCheck/flat/blue.css') !!}
@stop
@section('content')
{!! Form::open(['route' => ['admin.user.role.update', $role->id], 'method' => 'put']) !!}
<div class="row">
......@@ -32,14 +28,14 @@
<div class="col-sm-6">
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
{!! Form::label('name', trans('user::roles.form.name')) !!}
{!! Form::text('name', Input::old('name', $role->name), ['class' => 'form-control slugify', 'placeholder' => trans('user::roles.form.name')]) !!}
{!! Form::text('name', Input::old('name', $role->name), ['class' => 'form-control', 'data-slug' => 'source', 'placeholder' => trans('user::roles.form.name')]) !!}
{!! $errors->first('name', '<span class="help-block">:message</span>') !!}
</div>
</div>
<div class="col-sm-6">
<div class="form-group{{ $errors->has('slug') ? ' has-error' : '' }}">
{!! Form::label('slug', trans('user::roles.form.slug')) !!}
{!! Form::text('slug', Input::old('slug', $role->slug), ['class' => 'form-control slug', 'placeholder' => trans('user::roles.form.slug')]) !!}
{!! Form::text('slug', Input::old('slug', $role->slug), ['class' => 'form-control slug', 'data-slug' => 'target', 'placeholder' => trans('user::roles.form.slug')]) !!}
{!! $errors->first('slug', '<span class="help-block">:message</span>') !!}
</div>
</div>
......
......@@ -28,9 +28,10 @@
<table class="data-table table table-bordered table-hover">
<thead>
<tr>
<th>{{ trans('user::users.table.created-at') }}</th>
<td>Id</td>
<th>{{ trans('user::roles.table.name') }}</th>
<th>Actions</th>
<th>{{ trans('user::users.table.created-at') }}</th>
<th data-sortable="false">{{ trans('user::users.table.actions') }}</th>
</tr>
</thead>
<tbody>
......@@ -39,7 +40,7 @@
<tr>
<td>
<a href="{{ URL::route('admin.user.role.edit', [$role->id]) }}">
{{ $role->created_at }}
{{ $role->id }}
</a>
</td>
<td>
......@@ -47,10 +48,15 @@
{{ $role->name }}
</a>
</td>
<td>
<a href="{{ URL::route('admin.user.role.edit', [$role->id]) }}">
{{ $role->created_at }}
</a>
</td>
<td>
<div class="btn-group">
<a href="{{ URL::route('admin.user.role.edit', [$role->id]) }}" class="btn btn-default btn-flat"><i class="glyphicon glyphicon-pencil"></i></a>
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#confirmation-{{ $role->id }}"><i class="glyphicon glyphicon-trash"></i></button>
<a href="{{ route('admin.user.role.edit', [$role->id]) }}" class="btn btn-default btn-flat"><i class="fa fa-pencil"></i></a>
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#modal-delete-confirmation" data-action-target="{{ route('admin.user.role.destroy', [$role->id]) }}"><i class="fa fa-trash"></i></button>
</div>
</td>
</tr>
......@@ -59,9 +65,10 @@
</tbody>
<tfoot>
<tr>
<th>{{ trans('user::users.table.created-at') }}</th>
<td>Id</td>
<th>{{ trans('user::roles.table.name') }}</th>
<th>Actions</th>
<th>{{ trans('user::users.table.created-at') }}</th>
<th>{{ trans('user::users.table.actions') }}</th>
</tr>
</tfoot>
</table>
......@@ -72,31 +79,7 @@
<!-- /.col (MAIN) -->
</div>
</div>
<?php if (isset($roles)): ?>
<?php foreach ($roles as $role): ?>
<!-- Modal -->
<div class="modal fade modal-danger" id="confirmation-{{ $role->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">{{ trans('core::core.modal.title') }}</h4>
</div>
<div class="modal-body">
{{ trans('core::core.modal.confirmation-message') }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline btn-flat" data-dismiss="modal">{{ trans('core::core.button.cancel') }}</button>
{!! Form::open(['route' => ['admin.user.role.destroy', $role->id], 'method' => 'delete', 'class' => 'pull-left']) !!}
<button type="submit" class="btn btn-outline btn-flat"><i class="glyphicon glyphicon-trash"></i> {{ trans('core::core.button.delete') }}</button>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
@include('core::partials.delete-modal')
@stop
@section('scripts')
......@@ -120,12 +103,7 @@
"order": [[ 0, "desc" ]],
"language": {
"url": '<?php echo Module::asset("core:js/vendor/datatables/{$locale}.json") ?>'
},
"columns": [
null,
null,
{ "sortable": false }
]
}
});
});
</script>
......
......@@ -11,9 +11,6 @@
</ol>
@stop
@section('styles')
{!! Theme::style('css/vendor/iCheck/flat/blue.css') !!}
@stop
@section('footer')
<a data-toggle="modal" data-target="#keyboardShortcutsModal"><i class="fa fa-keyboard-o"></i></a> &nbsp;
@stop
......
......@@ -11,10 +11,6 @@
</ol>
@stop
@section('styles')
{!! Theme::style('css/vendor/iCheck/flat/blue.css') !!}
@stop
@section('content')
{!! Form::open(['route' => ['admin.user.user.update', $user->id], 'method' => 'put']) !!}
<div class="row">
......@@ -65,7 +61,7 @@
{{ $user->id === $currentUser->id ? 'disabled' : '' }}
{{ Input::old('activated', $oldValue) }}
value="1" />
{{ trans('user::users.form.status') }}
{{ trans('user::users.form.is_activated') }}
{!! $errors->first('activated', '<span class="help-block">:message</span>') !!}
</label>
</div>
......
......@@ -28,11 +28,12 @@
<table class="data-table table table-bordered table-hover">
<thead>
<tr>
<th>{{ trans('user::users.table.created-at') }}</th>
<th>Id</th>
<th>{{ trans('user::users.table.first-name') }}</th>
<th>{{ trans('user::users.table.last-name') }}</th>
<th>{{ trans('user::users.table.email') }}</th>
<th>{{ trans('user::users.table.actions') }}</th>
<th>{{ trans('user::users.table.created-at') }}</th>
<th data-sortable="false">{{ trans('user::users.table.actions') }}</th>
</tr>
</thead>
<tbody>
......@@ -41,7 +42,7 @@
<tr>
<td>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}">
{{ $user->created_at }}
{{ $user->id }}
</a>
</td>
<td>
......@@ -59,11 +60,16 @@
{{ $user->email }}
</a>
</td>
<td>
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}">
{{ $user->created_at }}
</a>
</td>
<td>
<div class="btn-group">
<a href="{{ URL::route('admin.user.user.edit', [$user->id]) }}" class="btn btn-default btn-flat"><i class="glyphicon glyphicon-pencil"></i></a>
<a href="{{ route('admin.user.user.edit', [$user->id]) }}" class="btn btn-default btn-flat"><i class="fa fa-pencil"></i></a>
<?php if ($user->id != $currentUser->id): ?>
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#confirmation-{{ $user->id }}"><i class="glyphicon glyphicon-trash"></i></button>
<button class="btn btn-danger btn-flat" data-toggle="modal" data-target="#modal-delete-confirmation" data-action-target="{{ route('admin.user.user.destroy', [$user->id]) }}"><i class="fa fa-trash"></i></button>
<?php endif; ?>
</div>
</td>
......@@ -73,10 +79,11 @@
</tbody>
<tfoot>
<tr>
<th>{{ trans('user::users.table.created-at') }}</th>
<th>Id</th>
<th>{{ trans('user::users.table.first-name') }}</th>
<th>{{ trans('user::users.table.last-name') }}</th>
<th>{{ trans('user::users.table.email') }}</th>
<th>{{ trans('user::users.table.created-at') }}</th>
<th>{{ trans('user::users.table.actions') }}</th>
</tr>
</tfoot>
......@@ -89,30 +96,7 @@
</div>
</div>
<?php if (isset($users)): ?>
<?php foreach ($users as $user): ?>
<!-- Modal -->
<div class="modal fade modal-danger" id="confirmation-{{ $user->id }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">{{ trans('core::core.modal.title') }}</h4>
</div>
<div class="modal-body">
{{ trans('core::core.modal.confirmation-message') }}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline btn-flat" data-dismiss="modal">{{ trans('core::core.button.cancel') }}</button>
{!! Form::open(['route' => ['admin.user.user.destroy', $user->id], 'method' => 'delete', 'class' => 'pull-left']) !!}
<button type="submit" class="btn btn-outline btn-flat"><i class="glyphicon glyphicon-trash"></i> {{ trans('core::core.button.delete') }}</button>
{!! Form::close() !!}
</div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php endif; ?>
@include('core::partials.delete-modal')
@stop
@section('scripts')
......@@ -136,14 +120,7 @@
"order": [[ 0, "desc" ]],
"language": {
"url": '<?php echo Module::asset("core:js/vendor/datatables/{$locale}.json") ?>'
},
"columns": [
null,
null,
null,
null,
{ "sortable": false }
]
}
});
});
</script>
......
@extends('layouts.account')
@section('title')
{{ trans('user::auth.login') }} | @parent
{{ trans('user::auth.login') }} | @parent
@stop
@section('content')
<div class="header">{{ trans('user::auth.login') }}</div>
@include('flash::message')
{!! Form::open(['route' => 'login.post']) !!}
<div class="body bg-gray">
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<input type="email" name="email" class="form-control"
placeholder="{{ trans('user::auth.email') }}" value="{{ Input::old('email')}}" autofocus />
{!! $errors->first('email', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
<input type="password" name="password"
class="form-control" placeholder="Password"
value="{{ Input::old('password')}}"/>
{!! $errors->first('password', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group">
<input type="checkbox" name="remember_me" id="remember_me"/>
<label for="remember_me">{{ trans('user::auth.remember me') }}</label>
</div>
<div class="login-logo">
<a href="{{ url('/') }}">{{ setting('core::site-name') }}</a>
</div>
<div class="footer">
<button type="submit" class="btn btn-info btn-block">{{ trans('user::auth.login') }}</button>
<p><a href="{{URL::route('reset')}}">{{ trans('user::auth.forgot password') }}</a></p>
<a href="{{URL::route('register')}}" class="text-center">{{ trans('user::auth.register')}}</a>
</div>
</form>
<!-- /.login-logo -->
<div class="login-box-body">
<p class="login-box-msg">{{ trans('user::auth.sign in welcome message') }}</p>
@include('flash::message')
{!! Form::open(['route' => 'login.post']) !!}
<div class="form-group has-feedback {{ $errors->has('email') ? ' has-error' : '' }}">
<input type="email" class="form-control"
name="email" placeholder="{{ trans('user::auth.email') }}" value="{{ old('email')}}">
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
{!! $errors->first('email', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group has-feedback {{ $errors->has('password') ? ' has-error' : '' }}">
<input type="password" class="form-control"
name="password" placeholder="Password" value="{{ old('password')}}">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
{!! $errors->first('password', '<span class="help-block">:message</span>') !!}
</div>
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox"> {{ trans('user::auth.remember me') }}
</label>
</div>
</div>
<div class="col-xs-4">
<button type="submit" class="btn btn-primary btn-block btn-flat">
{{ trans('user::auth.login') }}
</button>
</div>
</div>
</form>
<a href="{{ route('reset')}}">{{ trans('user::auth.forgot password') }}</a><br>
<a href="{{ route('register')}}" class="text-center">{{ trans('user::auth.register')}}</a>
</div>
@stop
......@@ -4,29 +4,37 @@
@stop
@section('content')
<div class="header">{{ trans('user::auth.register') }}</div>
@include('flash::message')
{!! Form::open(array('route' => 'register.post')) !!}
<div class="body bg-gray">
<div class="form-group{{ $errors->has('email') ? ' has-error has-feedback' : '' }}">
{!! Form::label('email', trans('user::auth.email')) !!}
{!! Form::text('email', Input::old('email'), ['class' => 'form-control', 'placeholder' => trans('user::auth.email')]) !!}
{!! $errors->first('email', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group{{ $errors->has('password') ? ' has-error has-feedback' : '' }}">
{!! Form::label('password', trans('user::auth.password')) !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => trans('user::auth.password')]) !!}
{!! $errors->first('password', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error has-feedback' : '' }}">
{!! Form::label('password_confirmation', trans('user::auth.password confirmation')) !!}
{!! Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => trans('user::auth.password confirmation')]) !!}
{!! $errors->first('password_confirmation', '<span class="help-block">:message</span>') !!}
</div>
<div class="register-logo">
<a href="{{ url('/') }}">{{ setting('core::site-name') }}</a>
</div>
<div class="footer">
<button type="submit" class="btn btn-info btn-block">{{ trans('user::auth.register me')}}</button>
<a href="{{ URL::route('login') }}" class="text-center">{{ trans('user::auth.I already have a membership') }}</a>
<div class="register-box-body">
<p class="login-box-msg">{{ trans('user::auth.register') }}</p>
{!! Form::open(['route' => 'register.post']) !!}
<div class="form-group has-feedback {{ $errors->has('email') ? ' has-error has-feedback' : '' }}">
<input type="email" name="email" class="form-control"
placeholder="{{ trans('user::auth.email') }}" value="{{ old('email') }}">
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
{!! $errors->first('email', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group has-feedback {{ $errors->has('password') ? ' has-error has-feedback' : '' }}">
<input type="password" name="password" class="form-control" placeholder="{{ trans('user::auth.password') }}">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
{!! $errors->first('password', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group has-feedback {{ $errors->has('password_confirmation') ? ' has-error has-feedback' : '' }}">
<input type="password" name="password_confirmation" class="form-control" placeholder="{{ trans('user::auth.password confirmation') }}">
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
{!! $errors->first('password_confirmation', '<span class="help-block">:message</span>') !!}
</div>
<div class="row">
<div class="col-xs-12">
<button type="submit" class="btn btn-primary btn-block btn-flat">{{ trans('user::auth.register me') }}</button>
</div>
</div>
{!! Form::close() !!}
<a href="{{ route('login') }}" class="text-center">{{ trans('user::auth.I already have a membership') }}</a>
</div>
{!! Form::close() !!}
@stop
......@@ -5,20 +5,31 @@
@stop
@section('content')
<div class="header">{{ trans('user::auth.reset password') }}</div>
@include('flash::message')
{!! Form::open(array('route' => 'reset.post')) !!}
<div class="body bg-gray">
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
<input type="email" name="email" class="form-control"
placeholder="{{ trans('user::auth.email') }}" value="{{ Input::old('email')}}" required=""/>
{!! $errors->first('email', '<span class="help-block">:message</span>') !!}
</div>
<div class="login-logo">
<a href="{{ url('/') }}">{{ setting('core::site-name') }}</a>
</div>
<div class="footer">
<button type="submit" class="btn btn-info btn-block">{{ trans('user::auth.reset password') }}</button>
<p><a href="{{URL::route('login')}}">{{ trans('user::auth.I remembered my password') }}</a></p>
</div>
{!! Form::close() !!}
<!-- /.login-logo -->
<div class="login-box-body">
<p class="login-box-msg">{{ trans('user::auth.to reset password complete this form') }}</p>
@include('flash::message')
{!! Form::open(['route' => 'reset.post']) !!}
<div class="form-group has-feedback {{ $errors->has('email') ? ' has-error' : '' }}">
<input type="email" class="form-control"
name="email" placeholder="{{ trans('user::auth.email') }}" value="{{ old('email')}}">
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
{!! $errors->first('email', '<span class="help-block">:message</span>') !!}
</div>
<div class="row">
<div class="col-xs-12">
<button type="submit" class="btn btn-primary btn-block btn-flat pull-right">
{{ trans('user::auth.reset password') }}
</button>
</div>
</div>
{!! Form::close() !!}
<a href="{{ route('login') }}" class="text-center">{{ trans('user::auth.I remembered my password') }}</a>
</div>
@stop
......@@ -5,24 +5,33 @@
@stop
@section('content')
<div class="header">{{ trans('user::auth.reset password') }}</div>
@include('flash::message')
{!! Form::open() !!}
<div class="body bg-gray">
<div class="form-group{{ $errors->has('password') ? ' has-error has-feedback' : '' }}">
{!! Form::label('password', trans('user::auth.password')) !!}
{!! Form::password('password', ['class' => 'form-control', 'placeholder' => trans('user::auth.password')]) !!}
<div class="login-logo">
<a href="{{ url('/') }}">{{ setting('core::site-name') }}</a>
</div>
<div class="login-box-body">
<p class="login-box-msg">{{ trans('user::auth.reset password') }}</p>
@include('flash::message')
{!! Form::open() !!}
<div class="form-group has-feedback {{ $errors->has('password') ? ' has-error' : '' }}">
<input type="password" class="form-control"
name="password" placeholder="{{ trans('user::auth.password') }}">
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
{!! $errors->first('password', '<span class="help-block">:message</span>') !!}
</div>
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error has-feedback' : '' }}">
{!! Form::label('password_confirmation', trans('user::auth.password confirmation')) !!}
{!! Form::password('password_confirmation', ['class' => 'form-control', 'placeholder' => trans('user::auth.password confirmation')]) !!}
<div class="form-group has-feedback {{ $errors->has('password_confirmation') ? ' has-error has-feedback' : '' }}">
<input type="password" name="password_confirmation" class="form-control" placeholder="{{ trans('user::auth.password confirmation') }}">
<span class="glyphicon glyphicon-log-in form-control-feedback"></span>
{!! $errors->first('password_confirmation', '<span class="help-block">:message</span>') !!}
</div>
</div>
<div class="footer">
<button type="submit" class="btn btn-info btn-block">{{ trans('user::auth.reset password') }}</button>
</div>
{!! Form::close() !!}
<div class="row">
<div class="col-xs-12">
<button type="submit" class="btn btn-primary btn-block btn-flat pull-right">
{{ trans('user::auth.reset password') }}
</button>
</div>
</div>
{!! Form::close() !!}
</div>
@stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment