This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3c86c9
commit af2529b
Showing
8 changed files
with
199 additions
and
145 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>{% block title %}Welcome!{% endblock %}</title> | ||
{% block stylesheets %}{% endblock %} | ||
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> | ||
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script> | ||
</head> | ||
<body> | ||
{{ form_start(form, {method: 'PATCH'}) }} | ||
<input type="submit"> | ||
{{ form_end(form) }} | ||
<script> | ||
$('form').submit(function() { | ||
var el = $('input:checked'); | ||
$.ajax({ | ||
type: "PATCH", | ||
url: $(this).attr('action'), | ||
data: [ | ||
{name: el.attr('name'), value: el.val()} | ||
], | ||
success: function (data) { | ||
// window.location.reload(); | ||
} | ||
}); | ||
return false; | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.