PHP Classes

File: resources/views/users/edit.blade.php

Recommend this page to a friend!
  Classes of adriano123456   Budget System   resources/views/users/edit.blade.php   Download  
File: resources/views/users/edit.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Budget System
Elaborate budgets for purchases of products
Author: By
Last change:
Date: 15 days ago
Size: 3,556 bytes
 

Contents

Class file image Download
@extends('layouts.app')

@section('title', 'Dashboard')

@section('content')
<div class="container-fluid" id="content">

    @include('layouts.navigation')

    <div id="main">
        <div class="container-fluid">

            <div class="row-fluid">
                <div class="span12">
                    <div class="box box-bordered box-color">
                        <div class="box-title">
                            <h3><i class="icon-th-list"></i> {{$title}}</h3>
                        </div>
                        <div class="box-content nopadding">
                            <form action="{{route('usuarios.update', ['user' => $user->id])}}" method="POST" class='form-horizontal form-bordered'>
                                @csrf
                                @method('PUT')
                                <div class="control-group">
                                    <label for="name" class="control-label">Nome completo</label>
                                    <div class="controls">
                                        <input type="text" name="name" id="name" value="{{$user->name}}" placeholder="Insira o nome" class="input-xlarge" required>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="email" class="control-label">E-mail</label>
                                    <div class="controls">
                                        <input type="text" name="email" id="email" value="{{$user->email}}" placeholder="name@provider.domain" class="input-xlarge" required>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="password" class="control-label">Senha</label>
                                    <div class="controls">
                                        <input type="password" name="password" id="password" placeholder="opcional" class="input-xlarge">
                                    </div>
                                </div>
                                <div class="control-group">
                                    <label for="level" class="control-label">Nível</label>
                                    <div class="controls">
                                        <select name="level" id="level" class='select2-me input-xlarge' required>
                                            @foreach($levels as $id => $level)
                                            <option value="{{$id}}" {{$id == $user->level ? 'selected':''}}>{{$level}}</option>
                                            @endforeach
                                        </select>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary">Salvar</button>
                                    <a href="{{route('usuarios.index')}}" class="btn">Cancelar</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

</div>

<script>

(function( $ ) {
    $(function() {
        $('.money').mask('#.##0,00', {reverse: true});
        $('.decimal').mask('##########.##', {reverse: true});
    });
})(jQuery);

</script>

@endsection