{% extends 'bom/bom-base.html' %} {% load materializecss %} {% load static %} {% block head-title %}{{ title }}{% endblock %} {% block main %} {% endblock %} {% block content %}

User Info

{% csrf_token %}

Your role is: {{ user.bom_profile.get_role_display }}

Your username is: {{ user.username }}

To request a change in role please contact {{ organization.owner.email }} for assistance.

{{ user_form.first_name|materializecss:'s12 m4' }} {{ user_form.last_name|materializecss:'s12 m4' }} {{ user_form.email|materializecss:'s12 m4' }}
{% if profile.role == 'A' %} {% if organization.number_scheme == 'S' %} {% if part_classes.count > 0 %}

Edit Part Classes

What is a part class?
{% csrf_token %} {% if part_classes.count > 0 %}
{% for part_class in part_classes %} {% endfor %}
Code Name Description MouserMouser Sourcing Options
{{ part_class.code }} {{ part_class.name }} {{ part_class.comment }} {% if part_class.mouser_enabled %} Mouser{% endif %} editEdit
{% else %}

No part classes have been defined yet.

{% endif %}
{% endif %}
{% if part_classes.count == 0 %} What is a part class?

You may also use this sample CSV file.

{% endif %} {% include 'bom/bom-form-modal.html' with modal_title='Upload Part Classes' form=part_class_csv_form action=part_class_form_action name='submit-part-class-upload' modal_description='To batch add part classes, upload a csv that contains columns with the headers`name` and `code`. You may optionally specify a description or comment by including a column with the header `description` or `comment`.' %} {% include 'bom/bom-form-modal.html' with modal_title='Add Part Class' form=part_class_form action=part_class_form_action name='submit-part-class-create' %}

Part Number

{% csrf_token %}

You may only increase the number of digits for each component of the part number: the part class code (C), part item number (N), and the part variation (V).

Your organization's current configuration is {{ organization.number_cs }}-{{ organization.number_ns }}{% if organization.number_vs %}- {{ organization.number_vs }}{% endif %}

{{ organization_number_len_form|materializecss:'s4 m2' }}
{% endif %}

Change Organization Number Scheme

Your organization's number scheme is currently: {{ organization.get_number_scheme_display }}

You can read more about the options here.

{% if organization_parts_count > 0 %}

You've already created {{ organization_parts_count }} part{{ organization_parts_count|pluralize }}. Since changing your organization number scheme requires changing your parts numbers, please manually delete your parts then come back here to change your organization number scheme. Alternatively we can help delete your parts if you reach out to info@indabom.com.

{% else %}
{% csrf_token %}
{% endif %} {% else %} {% include 'bom/nothing-to-see.html' with required_privilege='Admin' %} {% endif %}
{% if user.bom_profile.role == 'A' %}

Organization

{% csrf_token %}
{{ organization_form|materializecss:'s12 m4' }}

Users

{% if users_in_organization.count > 0 %}
{% csrf_token %} {% for org_user in users_in_organization %} {% endfor %}
Role User Name Full Name Email
{{ org_user.bom_profile.get_role_display }} {{ org_user.username }} {{ org_user.first_name }} {{ org_user.last_name }} {{ org_user.email }} editEdit
{% include 'bom/bom-form-modal.html' with modal_title='Add User' form=user_add_form action=user_add_form_action name='submit-add-user' modal_description='Adding users to your organization is a paid feature, but is free for a limited time while we are still developing the tool. Contact info@indabom.com if you are interested.' %}
{% else %}

There are no additional users in this organization: {{ organization }}.

{% if organization.subscription == 'F' %} {% include 'bom/bom-form-modal.html' with modal_title='Add User' name='submit-add-user-free' modal_description='Adding users to your organization is a paid feature, but is free for a limited time while we are still developing the tool. Contact info@indabom.com if you are interested.' %} {% else %} {% if organization.subscription_quantity == 0 or users_in_organization.count < organization.subscription_quantity %} {% include 'bom/bom-form-modal.html' with modal_title='Add User' form=user_add_form action=user_add_form_action name='submit-add-user' modal_description='Add a user to your organization.' %} {% else %}

You've added the maximum number of users to this organization. Update your subscription to add more.

{% endif %} {% endif %}
{% endif %}

Part File Storage with Google Drive

{% if not google_authentication %}

Connect your Google account to access Google Drive features. {% if not organization.google_drive_parent %}Organization owners can enable file storage using Google Drive. {% if organization.owner == user %} Since you are the owner, you are able to enable file storage!{% else %}Contact your organization owner to enable.{% endif %}{% endif %}

When you connect, we will create a folder called IndaBOM Part Files in your root of Google drive (and can be moved anywhere in your drive). To add files to a part, navigate to the part in IndaBOM, and on the part's Specifications tab, click the  Google Drive link. This will create a folder for your part in your root IndaBOM directory, or take you there if it already exists.

You'll be able to access the files directly through Google Drive, and through IndaBOM.

{% else %}

You're connected with Google and can access Google Drive features.

{% endif %}
    {% if google_authentication %}

    Logged in to Google as: {{ google_authentication.uid }}

    {% csrf_token %}
    {% else %} {% endif %}

Automagic Sourcing via Mouser

No connection required. To enable sourcing via mouser, select which part classes you'd like enabled on the Settings INDABOM tab. Once enabled, sourcing information will appear on part detail pages in which there are parts sourced via Mouser.

{% endif %} {% if profile.organization %}

Leave Your Organization

Warning, the only way back in to {{ organization.name }} is if you are invited by an organization administrator.

{% csrf_token %}
{% else %}

You're not part of any organization!

To create your organization, start here.

{% endif %}
{% endblock %} {% block bom-script %} {% endblock bom-script %}