@extends('layouts.dashboard')

@section('content')
    <section class="container all-container">
        <div class="header-titulo">
            Agregar Formulario
        </div>
        <div class="card mb-3">
            <div class="card-header">
               <i class="fab fa-wpforms"></i> Nuevo Formulario {{$modulo->nombre}}
            </div>
            <div class="card-body padding-10">
                <form action="{{ route('agregarFormulario',[$modulo->id]) }}" method="post"  id="form-datos">
                    {{ csrf_field() }}
                    <div class="form-group row">
                        <label for="inputEmail3" class="col-sm-2 col-form-label">Nombre</label>
                        <div class="col-sm-10">
                            <input type="text" id="nombre" name="nombre"  class="form-control" placeholder="Nombre del formulario" required>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label for="inputEmail3" class="col-sm-2 col-form-label">Descripcion</label>
                        <div class="col-sm-10">
                            <textarea id="Descripcion" style="resize: none;" rows="5" name="Descripcion"  class="form-control" placeholder="Descripcion" required></textarea>
                        </div>
                    </div>
                    <input type="hidden" name="modulo" required value="{{$modulo->id}}">
                    <div class="form-group row">
                        <div class="col-sm-10">
                            <button type="submit" class="btn btn-light light2">Guardar</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </section>
    <style>        
        #mainNav.navbar-dark .navbar-collapse .navbar-sidenav>.nav-item>.modulosLink {color:#1cff2f;}
    </style>
	<script  src="{{ asset('js/agregar.js') }}"></script>
	<link  media="all" rel="stylesheet" type="text/css" href="{{ asset('css/general.css') }}">
@endsection