Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% extends "master.twig" %}
{% block titulo %}Editar nota
{% endblock %}
{% block contenido %}
<main class="container-fluid">
<div class="row">
<div class="col-12 col-sm-6">
<h1 class="text-center">Editar nota</h1>
<form action="{{URL_RAIZ}}/notas/editar" method="post">
{% include "componentes/sesion_flash.twig" %}
<input type="hidden" name="idNota" value="{{nota.id}}">
<div class="form-group">
<label for="contenido">Contenido</label>
<textarea class="form-control" cols="10" id="contenido" name="contenido" required rows="3">{{nota.contenido}}</textarea>
</div>
<button class="btn btn-success" type="submit">Guardar</button>
<a class="btn btn-warning" href="{{URL_RAIZ}}/notas">Ver notas</a>
</form>
</div>
</div>
</main>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment