-
-
Save tareqy/9761c4f0538bb4d07fe0ead1645f212a to your computer and use it in GitHub Desktop.
Bootstrap modal blade partial view for Laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
<h4 class="modal-title">Titulo</h4> | |
</div> | |
<div class="modal-body"> | |
Contenido | |
</div> | |
<div class="modal-footer"> | |
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button> | |
<button type="submit" class="btn btn-primary">Actualizar</button> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
<div class="modal-dialog"> | |
<div class="modal-content"></div> | |
</div> | |
</div> | |
// En la vista | |
@include('modal') | |
<a data-toggle="modal" href="{{ route('posts.create') }}" data-target="#myModal">Añadir nuevo post</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment