Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. <button style="margin:0px" type="button" class="btn btn-success" data-toggle="modal" data-target="#test" onclick="document.getElementById('SelectedDateId').value='@ModalString';document.getElementById('exampleModalLongTitle').innerHTML='@ModalString';" >
  2. Reservieren
  3. </button>
  4.  
  5. <!-- Modal -->
  6.  
  7. <div class="modal fade" id="test" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  8. <div class="modal-dialog modal-dialog-centered" role="document">
  9. @using (Html.BeginForm())
  10. {
  11. <div class="modal-content">
  12. <div class="modal-header">
  13.  
  14. <h5 class="modal-title" id="exampleModalLongTitle"></h5>
  15.  
  16. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  17. <span aria-hidden="true">&times;</span>
  18. </button>
  19. </div>
  20.  
  21. <div class="modal-footer">
  22. <input type="hidden" name="SelectedDateId" id="SelectedDateId" />
  23. @Html.Label("Comments")
  24. @Html.TextBoxFor(model => model.SelectedText)
  25.  
  26.  
  27. <button type="button" class="btn btn-secondary" data-dismiss="modal">Abbrechen</button>
  28. <input type="submit" value="Reservieren" class="btn btn-primary" />
  29. </div>
  30. </div>
  31.  
  32. }
  33. </div>
  34. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement