mirror of
https://github.com/fergalmoran/robotopro.git
synced 2025-12-22 09:18:53 +00:00
Initial commit
This commit is contained in:
9
templates/scripts/fileupload.html
Executable file
9
templates/scripts/fileupload.html
Executable file
@@ -0,0 +1,9 @@
|
||||
{% load static %}
|
||||
<script src="{% static "js/fileupload/tmpl.min.js" %}"></script>
|
||||
<script src="{% static "js/fileupload/load-image.min.js" %}"></script>
|
||||
<script src="{% static "js/fileupload/canvas-to-blob.min.js" %}"></script>
|
||||
<script src="{% static "js/fileupload/blueimp-gallery.min.js" %}"></script>
|
||||
<script src="{% static "js/fileupload/jquery.iframe-transport.js" %}"></script>
|
||||
<script src="{% static "js/fileupload/jquery.fileupload.js" %}"></script>
|
||||
<script src="{% static "js/fileupload/jquery.fileupload-fp.js" %}"></script>
|
||||
<script src="{% static "js/fileupload/jquery.fileupload-ui.js" %}"></script>
|
||||
12
templates/scripts/forms.html
Executable file
12
templates/scripts/forms.html
Executable file
@@ -0,0 +1,12 @@
|
||||
{% load static %}
|
||||
<script src="{% static "js/uncompressed/jquery.form.js" %}"></script>
|
||||
<script src="{% static "js/uncompressed/date-time/bootstrap-datepicker.js" %}"></script>
|
||||
<script src="{% static "js/uncompressed/date-time/moment.js" %}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('.date-picker').datepicker().next().on(ace.click_event, function () {
|
||||
$(this).prev().focus();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
43
templates/scripts/wizard.html
Executable file
43
templates/scripts/wizard.html
Executable file
@@ -0,0 +1,43 @@
|
||||
{% load static %}
|
||||
<script src="{% static "js/uncompressed/fuelux/fuelux.wizard.js" %}"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var wizard = $('#promotion-wizard').ace_wizard();
|
||||
wizard.on('change', function (e, info) {
|
||||
if (info.step == 1) {
|
||||
var detailsForm = $('#form_wizard_details');
|
||||
detailsForm.ajaxSubmit({
|
||||
success: function (e, val, errors) {
|
||||
$('#id_pk').val(e.pk);
|
||||
wizard.wizard('selectedItem', {step: 2});
|
||||
},
|
||||
error: function (response, status, err) {
|
||||
$.each(response.responseJSON, function (item, error) {
|
||||
$('#group-' + item).addClass('error');
|
||||
$('#help-inline-' + item).text(error);
|
||||
});
|
||||
}
|
||||
});
|
||||
e.preventDefault();
|
||||
} else if (info.step == 2) {
|
||||
var bodyForm = $('#form_wizard_body');
|
||||
bodyForm.ajaxSubmit({
|
||||
success: function (e, val, errors) {
|
||||
$('#id_pk').val(e.pk);
|
||||
wizard.wizard('selectedItem', {step: 3});
|
||||
},
|
||||
error: function (e, val, errors) {
|
||||
$.each(e.responseJSON, function (item, error) {
|
||||
$('#group-' + item).addClass('error');
|
||||
$('#help-inline-' + item).text(error);
|
||||
});
|
||||
}
|
||||
});
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
wizard.on('finished', function () {
|
||||
alert('Success!');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user