1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 05:32:39 +01:00
invoiceninja/resources/views/users/edit.blade.php

36 lines
1000 B
PHP
Raw Normal View History

2015-03-16 22:45:25 +01:00
@extends('accounts.nav')
@section('content')
@parent
@include('accounts.nav_advanced')
2015-04-01 21:57:02 +02:00
{!! Former::open($url)->method($method)->addClass('col-md-8 col-md-offset-2 warn-on-exit')->rules(array(
2015-03-16 22:45:25 +01:00
'first_name' => 'required',
'last_name' => 'required',
'email' => 'required|email',
2015-04-01 21:57:02 +02:00
)); !!}
2015-03-16 22:45:25 +01:00
2015-04-01 21:57:02 +02:00
{!! Former::legend($title) !!}
2015-03-16 22:45:25 +01:00
@if ($user)
2015-04-01 21:57:02 +02:00
{!! Former::populate($user) !!}
2015-03-16 22:45:25 +01:00
@endif
2015-04-20 16:34:23 +02:00
<div class="panel panel-default">
<div class="panel-body">
2015-04-01 21:57:02 +02:00
{!! Former::text('first_name') !!}
{!! Former::text('last_name') !!}
{!! Former::text('email') !!}
2015-03-16 22:45:25 +01:00
2015-04-20 16:34:23 +02:00
</div>
</div>
2015-04-01 21:57:02 +02:00
{!! Former::actions(
Button::success(trans($user && $user->confirmed ? 'texts.save' : 'texts.send_invite'))->submit()->large()->appendIcon(Icon::create($user && $user->confirmed ? 'floppy-disk' : 'send')),
Button::normal(trans('texts.cancel'))->asLinkTo('/company/advanced_settings/user_management')->appendIcon(Icon::create('remove-circle'))->large()
)!!}
2015-03-16 22:45:25 +01:00
2015-04-01 21:57:02 +02:00
{!! Former::close() !!}
2015-03-16 22:45:25 +01:00
@stop