<commit_before>{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load ocl_tags %}

{% block title %}{% trans "Add Reference To Collection" %}{% endblock %}

{% block content %}
{% if collection.owner_type == 'Organization' %}
	{% url 'collection-references' org=collection.owner collection=collection.id as collection_references_url %}
{% else %}
	{% url 'collection-references' user=collection.owner collection=collection.id as collection_references_url %}
{% endif %}

<h3>
    {% resource_owner_label collection %} / {% collection_label collection %} / {% trans "Add Reference[s]" %}
</h3>

<div class="container" ng-controller="AddReferencesController">
    <div class="row">
        <div class="form-group">
            {% field_label 'Short Code' collection.short_code %}
            {% field_label 'Created By' collection.created_by %}
            {% field_label 'Created On' collection.created_on|smart_date %}
            {% field_label 'Owner' collection.owner %}
         </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <ul class="nav nav-tabs">
              <li ><a data-toggle="tab" href="#home">Add Single Reference</a></li>
              <li class="active"><a data-toggle="tab" href="#menu1">Add Multiple References</a></li>
            </ul>
        </div>
    </div>
    <div class="tab-content">
      <div id="home" class="tab-pane fade ">
        <div class="row">
            <div class="col-lg-12">
            <br/>

                <form class="form-horizontal" id="collection_add_reference_form" method="post" action=".">
                    {% csrf_token %}


                    {% bootstrap_form form layout="horizontal" %}
                    {% buttons layout="horizontal" %}
                        <button type="submit" class="btn btn-primary">{% trans "Add" %}</button>
                        <a href="{{ collection_references_url }}" class="btn btn-default">{% trans "Cancel" %}</a>
                    {% endbuttons %}
                </form>

            </div> {# col-lg-12 #}
        </div> {# row #}
      </div>
      <div id="menu1" class="tab-pane fade in active">


       <div class="row">
            <div class="col-lg-2" ng-init="getOrgs()">
                <br/>
                <form class="form-horizontal" id="collection_add_reference_form" method="post" action=".">
                    {% csrf_token %}
                    <div class="form-group">
                        <label class="radio-inline">
                            <input checked type="radio" name="owner_radio">Organization
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="owner_radio">User
                        </label>
                      <select class="form-control"
                              ng-options="org as org.name for org in orgs"
                              ng-change="getOrgSources()"
                              ng-model="org"></select>
                    </div><commit_msg>#101 +Gaurav add ref html improved<commit_after>{% extends "base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load ocl_tags %}

{% block title %}{% trans "Add Reference To Collection" %}{% endblock %}

{% block content %}
{% if collection.owner_type == 'Organization' %}
	{% url 'collection-references' org=collection.owner collection=collection.id as collection_references_url %}
{% else %}
	{% url 'collection-references' user=collection.owner collection=collection.id as collection_references_url %}
{% endif %}

<h3>
    {% resource_owner_label collection %} / {% collection_label collection %} / {% trans "Add Reference[s]" %}
</h3>

<div class="container" ng-controller="AddReferencesController">
    <div class="row">
        <div class="form-group">
            {% field_label 'Short Code' collection.short_code %}
            {% field_label 'Created By' collection.created_by %}
            {% field_label 'Created On' collection.created_on|smart_date %}
            {% field_label 'Owner' collection.owner %}
         </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <ul class="nav nav-tabs">
              <li class="active"><a data-toggle="tab" href="#addsinglereftab">Add Single Reference</a></li>
              <li ><a data-toggle="tab" href="#addmultiplereftab">Add Multiple References</a></li>
            </ul>
        </div>
    </div>
    <div class="tab-content">
      <div id="addsinglereftab" class="tab-pane fade in active">
        <div class="row">
            <div class="col-lg-12">
            <br/>

                <form class="form-horizontal" id="collection_add_reference_form" method="post" action=".">
                    {% csrf_token %}


                    {% bootstrap_form form layout="horizontal" %}
                    {% buttons layout="horizontal" %}
                        <button type="submit" class="btn btn-primary">{% trans "Add" %}</button>
                        <a href="{{ collection_references_url }}" class="btn btn-default">{% trans "Cancel" %}</a>
                    {% endbuttons %}
                </form>

            </div> {# col-lg-12 #}
        </div> {# row #}
      </div>
      <div id="addmultiplereftab" class="tab-pane fade">


       <div class="row">
            <div class="col-lg-2" ng-init="getOrgs()">
                <br/>
                <form class="form-horizontal" id="collection_add_reference_form" method="post" action=".">
                    {% csrf_token %}
                    <div class="form-group">
                        <label class="radio-inline">
                            <input checked type="radio" name="owner_radio">Organization
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="owner_radio">User
                        </label>
                      <select class="form-control"
                              ng-options="org as org.name for org in orgs"
                              ng-change="getOrgSources()"
                              ng-model="org"></select>
                    </div>
{'fraction_non_alphanumeric': 0.15208266063932838, 'fraction_numerical': 0.004681950274459154, 'mean_word_length': 1.8720445062586926, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '3400136', 'n_tokens_mistral': 1814, 'n_tokens_neox': 1638, 'n_words': 364}