-
Notifications
You must be signed in to change notification settings - Fork 26
/
commitform.html
42 lines (39 loc) · 938 Bytes
/
commitform.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<form id="commitform" method="post">
<div id="commitmessage">
Commit message:<br>
<textarea cols="80", rows="8" name="message">
</textarea>
</div>
<div id="commitbuttons">
<input type="submit" value="Commit" class="popupsubmit"></input>
<input type="submit" value="Cancel" class="popupclose"></input>
</div>
<div id="commitfiles">
<table id="popuptable">
<tr>
<th></th>
<th colspan="2">Status</th>
<th>File</th>
</tr>
{% for item in status %}
<tr>
<td><input type="checkbox" name="file[]" value="{{ item.file }}" checked></input></td>
<td>{{ item.x }}</td>
<td>{{ item.y }}</td>
<td>{{ item.file }}</td>
</tr>
{% endfor %}
</table>
</div>
</form>
<script>
$('#commitform').submit(function(e) {
e.preventDefault();
$.post('peeked/commit', $('#commitform').serialize(), function(data) {
$('.popupcontent').html(data);
});
});
$('#popup').on('click', '.popupclose', function(e) {
close_popup();
});
</script>