<script>
    export let form = {}
    export let escritura = false
</script>

<div class={"form" + (escritura ? '' : ' disabled')}>
    <div class="row mb-3">
        <div class="col-md-3">Rol ID</div>
        <div class="col-md">
            <input type="number" value={form.id_rol} disabled class="form-control" />
        </div>
    </div>
    <div class="row mb-3">
        <div class="col-md-3">Nombre Rol</div>
        <div class="col-md">
            <input type="text" bind:value={form.nombre_rol} required class="form-control" />
        </div>
    </div>
</div>