sds
This commit is contained in:
@@ -39,7 +39,9 @@
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
{% csrf_token %}
|
||||
<input class="button green" type="submit" value="Submit">
|
||||
<p>
|
||||
<input type="submit" value="Submit">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -201,9 +203,15 @@ $('#id_workouttype').change();
|
||||
if ($(this).attr('id') == 'id_file') {
|
||||
data.set("file",this.files[0]);
|
||||
}
|
||||
console.log($(this).attr('name'),$(this).val());
|
||||
console.log($(this).attr('id'),$(this).attr('name'),$(this).val());
|
||||
};
|
||||
});});
|
||||
});});
|
||||
|
||||
$('textarea').each(function( i ) {
|
||||
$(this).change(function() {
|
||||
data.set($(this).attr('name'),$(this).val());
|
||||
console.log($(this).attr('id'),$(this).attr('name'),$(this).val());
|
||||
});});
|
||||
|
||||
$('select').each(function( i ) {
|
||||
console.log($(this).attr('name'),$(this).val());
|
||||
@@ -213,7 +221,7 @@ $('#id_workouttype').change();
|
||||
});
|
||||
});
|
||||
|
||||
frm.submit(function() {
|
||||
frm.submit(function() {
|
||||
console.log("Form submission");
|
||||
$(data.values()).each(function(value) {
|
||||
console.log(value);
|
||||
|
||||
Reference in New Issue
Block a user