<commit_before>{% extends "bazaar/goods/base.html" %}

{% load i18n %}

{% block content %}
    <div class="row">
        <div class="merchant-actions row">
            <div class="col-md-10">
                <a onClick="javascript:history.go(-1);" class="btn btn-default">
                    <i class="glyphicon glyphicon-chevron-left"></i>&nbsp;{% trans "Back" %}
                </a>
                <a href="{% url 'bazaar:product-update' product.id %}" class="btn btn-primary">
                    <i class="glyphicon glyphicon-pencil"></i>&nbsp;{% trans "Modify" %}
                </a>
                <div class="pull-right">
                    <a data-toggle="modal" href="#modalDelete" class="btn btn-danger">
                        <i class="glyphicon glyphicon-trash"></i>&nbsp;{% trans "Delete" %}
                    </a>
                </div>
            </div>
        </div>
        <div class="col-md-2">
            <a href="{{MEDIA_URL}}{{ product.photo }}"><img src="{{MEDIA_URL}}{{ product.photo }}" width="100%"></a>
        </div>
        <div class="col-md-6">
            <h3>{{ product.name }}
                {% if product.ean %}
                - ({{ product.ean }})
                {% endif %}</h3>
                <div>{{ product.description }}</div>
                Quantity: {{ product.quantity|floatformat }} <br />
                Price: {{ product.price }} <br />
                Cost: {{ product.cost }}
        </div>
    </div>




    <!-- modalDelete -->
    <div class="modal fade" id="modalDelete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog"><commit_msg>product detail page style<commit_after>{% extends "bazaar/goods/base.html" %}

{% load i18n %}

{% block stylesheets %}
    {{ block.super }}
    <style>
        .product-actions, .product-meta {
            margin-bottom: 15px;
        }
    </style>
{% endblock stylesheets %}

{% block content %}
    <div class="row">
        <div class="product-actions row">
            <div class="col-md-10">
                <a onClick="javascript:history.go(-1);" class="btn btn-default">
                    <i class="glyphicon glyphicon-chevron-left"></i>&nbsp;{% trans "Back" %}
                </a>
                <a href="{% url 'bazaar:product-update' product.id %}" class="btn btn-primary">
                    <i class="glyphicon glyphicon-pencil"></i>&nbsp;{% trans "Modify" %}
                </a>
                <div class="pull-right">
                    <a data-toggle="modal" href="#modalDelete" class="btn btn-danger">
                        <i class="glyphicon glyphicon-trash"></i>&nbsp;{% trans "Delete" %}
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="row product-meta">
        <div class="col-md-2">
            <a href="{{MEDIA_URL}}{{ product.photo }}"><img src="{{MEDIA_URL}}{{ product.photo }}" width="100%"></a>
        </div>
        <div class="col-md-6">
            <h3>{{ product.name }}</h3><br/>
            <h4>Description:</h4>
            <p>
               {% if product.description %}
               {{ product.description }}
               {% else %}
               {% trans "No available description" %}
               {% endif %}
            </p>
        </div>
    </div>

    <div class="row">
        <div class="col-md-10">
            <table class="table table-striped table-bordered">
                <thead>
                <tr>
                    <th>
                        {% trans "EAN" %}
                    </th>
                    <th>
                        {% trans "Stock" %}
                    </th>
                    <th>
                        {% trans "Cost" %}
                    </th>
                    <th>
                        {% trans "Price" %}
                    </th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>
                        {{ product.ean }}
                    </td>
                    <td>
                        {{ product.quantity|floatformat }}
                    </td>
                    <td>
                        {{ product.cost }}
                    </td>
                    <td>
                        {{ product.price }}
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

    <!-- modalDelete -->
    <div class="modal fade" id="modalDelete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
{'fraction_non_alphanumeric': 0.17007534983853606, 'fraction_numerical': 0.006889128094725512, 'mean_word_length': 1.2347282347282347, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 110, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1684941', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1242, 'n_words': 253}