Add Tshirt size field in ticket form

This commit is contained in:
Faris Ansari
2018-07-12 16:25:21 +05:30
parent 3a77f59a0e
commit 41d8340a84
5 changed files with 567 additions and 438 deletions

View File

@@ -143,6 +143,39 @@
"translatable": 0, "translatable": 0,
"unique": 0 "unique": 0
}, },
{
"allow_bulk_edit": 0,
"allow_in_quick_entry": 0,
"allow_on_submit": 0,
"bold": 0,
"collapsible": 0,
"columns": 0,
"fieldname": "tshirt_size",
"fieldtype": "Select",
"hidden": 0,
"ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0,
"in_global_search": 0,
"in_list_view": 0,
"in_standard_filter": 0,
"label": "T-Shirt Size",
"length": 0,
"no_copy": 0,
"options": "S\nM\nL\nXL\nXXL\nXXXL",
"permlevel": 0,
"precision": "",
"print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0,
"remember_last_selected_value": 0,
"report_hide": 0,
"reqd": 0,
"search_index": 0,
"set_only_once": 0,
"translatable": 0,
"unique": 0
},
{ {
"allow_bulk_edit": 0, "allow_bulk_edit": 0,
"allow_in_quick_entry": 0, "allow_in_quick_entry": 0,
@@ -283,7 +316,7 @@
"issingle": 0, "issingle": 0,
"istable": 0, "istable": 0,
"max_attachments": 0, "max_attachments": 0,
"modified": "2018-07-09 18:12:05.062456", "modified": "2018-07-12 16:12:42.283557",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "ERPNext Foundation", "module": "ERPNext Foundation",
"name": "Conference Participant", "name": "Conference Participant",
@@ -317,5 +350,6 @@
"sort_field": "modified", "sort_field": "modified",
"sort_order": "DESC", "sort_order": "DESC",
"track_changes": 1, "track_changes": 1,
"track_seen": 0 "track_seen": 0,
"track_views": 0
} }

View File

@@ -19,7 +19,7 @@
"is_standard": 1, "is_standard": 1,
"login_required": 0, "login_required": 0,
"max_attachment_size": 0, "max_attachment_size": 0,
"modified": "2018-07-10 15:28:46.414126", "modified": "2018-07-12 16:18:34.047108",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "ERPNext Foundation", "module": "ERPNext Foundation",
"name": "buy-tickets-inr", "name": "buy-tickets-inr",
@@ -48,12 +48,23 @@
"fieldname": "full_conference_tickets", "fieldname": "full_conference_tickets",
"fieldtype": "Int", "fieldtype": "Int",
"hidden": 0, "hidden": 0,
"label": "Full Conference Tickets", "label": "No of Tickets",
"max_length": 0, "max_length": 0,
"max_value": 0, "max_value": 0,
"read_only": 0, "read_only": 0,
"reqd": 0 "reqd": 0
}, },
{
"fieldname": "tshirt_size",
"fieldtype": "Select",
"hidden": 0,
"label": "T-Shirt Size",
"max_length": 0,
"max_value": 0,
"options": "S\nM\nL\nXL\nXXL\nXXXL",
"read_only": 0,
"reqd": 0
},
{ {
"default": "INR", "default": "INR",
"fieldname": "currency", "fieldname": "currency",

View File

@@ -19,7 +19,7 @@
"is_standard": 1, "is_standard": 1,
"login_required": 0, "login_required": 0,
"max_attachment_size": 0, "max_attachment_size": 0,
"modified": "2018-07-10 15:28:37.969911", "modified": "2018-07-12 16:21:40.271645",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "ERPNext Foundation", "module": "ERPNext Foundation",
"name": "buy-tickets-paypal", "name": "buy-tickets-paypal",
@@ -54,12 +54,23 @@
"fieldname": "full_conference_tickets", "fieldname": "full_conference_tickets",
"fieldtype": "Int", "fieldtype": "Int",
"hidden": 0, "hidden": 0,
"label": "Full Conference Tickets", "label": "No of Tickets",
"max_length": 0, "max_length": 0,
"max_value": 0, "max_value": 0,
"read_only": 0, "read_only": 0,
"reqd": 0 "reqd": 0
}, },
{
"fieldname": "tshirt_size",
"fieldtype": "Select",
"hidden": 0,
"label": "T-Shirt Size",
"max_length": 0,
"max_value": 0,
"options": "S\nM\nL\nXL\nXXL\nXXXL",
"read_only": 0,
"reqd": 0
},
{ {
"default": "USD", "default": "USD",
"fieldname": "currency", "fieldname": "currency",

View File

@@ -0,0 +1,71 @@
.indicator,
.indicator-right {
background: none;
font-size: 12px;
vertical-align: middle;
font-weight: bold;
color: #6c7680;
}
.indicator::before,
.indicator-right::after {
content: "";
display: inline-block;
height: 8px;
width: 8px;
border-radius: 8px;
}
.indicator::before {
margin: 0 4px 0 0;
}
.indicator-right::after {
margin: 0 0 0 4px;
}
.indicator.grey::before,
.indicator-right.grey::after {
background: #F0F4F7;
}
.indicator.blue::before,
.indicator-right.blue::after {
background: #5e64ff;
}
.indicator.red::before,
.indicator-right.red::after {
background: #ff5858;
}
.indicator.green::before,
.indicator-right.green::after {
background: #98d85b;
}
.indicator.orange::before,
.indicator-right.orange::after {
background: #ffa00a;
}
.indicator.purple::before,
.indicator-right.purple::after {
background: #743ee2;
}
.indicator.darkgrey::before,
.indicator-right.darkgrey::after {
background: #b8c2cc;
}
.indicator.black::before,
.indicator-right.black::after {
background: #36414C;
}
.indicator.yellow::before,
.indicator-right.yellow::after {
background: #FEEF72;
}
.indicator.light-blue::before,
.indicator-right.light-blue::after {
background: #7CD6FD;
}
.indicator.lightblue::before,
.indicator-right.lightblue::after {
background: #7CD6FD;
}
.modal-header .indicator {
float: left;
margin-top: 7.5px;
margin-right: 3px;
}

View File

@@ -3,11 +3,13 @@
{% block title %}Membership Details{% endblock %} {% block title %}Membership Details{% endblock %}
{% block page_content %} {% block page_content %}
<h2>Your Memberships</h2> <div class="container">
{% if frappe.session.user=='Guest' %} <h2 class="mt-5">Your Memberships</h2>
<div class='with-border'> {% if frappe.session.user=='Guest' %}
<div class='with-border'>
<p>You must first sign up and login to become a member</p> <p>You must first sign up and login to become a member</p>
<p><a href="/login#signup" class=''>Sign Up</a></p> <p><a href="/login#signup" class=''>Sign Up</a></p>
</div>
</div> </div>
{% else %} {% else %}