summaryrefslogtreecommitdiff
path: root/workshop_app/templates
diff options
context:
space:
mode:
authorpnshiralkar2020-05-07 19:39:09 +0530
committerpnshiralkar2020-05-07 19:39:09 +0530
commita06daa5d5bbb7225c52292e6b5cfeb624d668bdd (patch)
treead3da742fd82898035a91d06d87ff4136b8dca69 /workshop_app/templates
parent198431be862cea5fe369fc07bca3e435ce2f7d79 (diff)
downloadworkshop_booking-a06daa5d5bbb7225c52292e6b5cfeb624d668bdd.tar.gz
workshop_booking-a06daa5d5bbb7225c52292e6b5cfeb624d668bdd.tar.bz2
workshop_booking-a06daa5d5bbb7225c52292e6b5cfeb624d668bdd.zip
File upload done
Diffstat (limited to 'workshop_app/templates')
-rw-r--r--workshop_app/templates/workshop_app/edit_workshop_type.html102
1 files changed, 102 insertions, 0 deletions
diff --git a/workshop_app/templates/workshop_app/edit_workshop_type.html b/workshop_app/templates/workshop_app/edit_workshop_type.html
new file mode 100644
index 0000000..9c883d7
--- /dev/null
+++ b/workshop_app/templates/workshop_app/edit_workshop_type.html
@@ -0,0 +1,102 @@
+{% extends 'workshop_app/base.html' %}
+
+{% block title %}
+ Add new Workshop type
+{% endblock %}
+
+{% block extra-dependencies %}
+{% endblock %}
+
+{% block extra-custom-scripts %}
+
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.formset/1.2.2/jquery.formset.js"></script>
+{% endblock %}
+
+{% block content %}
+ <div class="container">
+ <h2 class="text-center m-2">View / Edit Workshop Type</h2>
+ <br>
+ <form method="post" enctype="multipart/form-data">
+ <div class="row my-3">
+ <div class="col-3 font-weight-bold">Workshop Name :</div>
+ <div class="col text-left">
+ <div class="row">
+ <div class="col">{{ form.name }}</div>
+ </div>
+ <div class="row m-1 text-danger">
+ <div class="col">{{ form.name.errors }}</div>
+ </div>
+ </div>
+
+ </div>
+ <div class="row my-3">
+ <div class="col-3 font-weight-bold">Duration :</div>
+ <div class="col text-left">
+ <div class="row">
+ <div class="col">{{ form.duration }}</div>
+ </div>
+ <div class="row m-1 text-muted">
+ <div class="col">{{ form.duration.help_text }}</div>
+ </div>
+ <div class="row m-1 text-danger">
+ <div class="col">{{ form.duration.errors }}</div>
+ </div>
+ </div>
+ </div>
+ <div class="row my-3">
+ <div class="col-3 font-weight-bold">Description :</div>
+ <div class="col text-left">
+ <div class="row">
+ <div class="col">{{ form.description }}</div>
+ </div>
+ <div class="row m-1 text-danger">
+ <div class="col">{{ form.description.errors }}</div>
+ </div>
+ </div>
+ </div>
+ <div class="row my-3">
+ <div class="col-3 font-weight-bold">Terms and Conditions :</div>
+ <div class="col text-left">
+ <div class="row">
+ <div class="col">{{ form.terms_and_conditions }}</div>
+ </div>
+ <div class="row m-1 text-danger">
+ <div class="col">{{ form.terms_and_conditions.errors }}</div>
+ </div>
+ </div>
+ </div>
+
+ <h2 class="text-center m-2">Attachments</h2>
+ {{ form_file.management_form }}
+ {{ form_file.non_form_errors }}
+ {% for form in form_file %}
+ <div class="inline {{ form_file.prefix }} my-4">
+ {% for field in form %}
+ <div class="row">
+ <div class="col-6">{{ field }}</div>
+ </div>
+ {% endfor %}
+ </div>
+ <hr>
+ {% endfor %}
+ <div class="row my-3">
+ <div class="col-12">
+ <button type="submit" class="btn btn-md btn-primary float-right m-3">Save</button>
+ </div>
+ </div>
+ </form>
+ </div>
+ <br><br><br><br>
+ <script type="text/javascript">
+ $(function () {
+ $(".inline.{{ form_file.prefix }}").formset({
+ prefix: "{{ form_file.prefix }}", // The form prefix for your django formset
+ addCssClass: "btn btn-md btn-primary bordered inline-form-add", // CSS class applied to the add link
+ deleteCssClass: "hidden", // CSS class applied to the delete link
+ addText: 'Add another attachment', // Text for the add link
+ deleteText: '',
+ formCssClass: 'inline-form' // CSS class applied to each form in a formset
+ })
+ });
+ </script>
+{% endblock %} \ No newline at end of file