<commit_before>{% extends 'base.html' %}
{% load humanize %}
{% block content %}
{% load i18n %}

  {% if user.is_authenticated %}
    <script type="text/javascript" src="/static/js/form_actions.js"></script>
  {% endif %}
  <section id="profile">
    <div class="page-header">
      <!-- <img src='{{ content_user.profile.gravatar }}' alt='gravatar' width='40' height='40' style='float:left; padding-right:10px;' /> -->
    <div id="mfeedback">&nbsp;</div>
	<h3>
	  <div style='vertical-align: middle'>      
	  <img src='{{ content_user.profile.gravatar }}' alt='' width='20' height='20' /> 
	  <a href="{% url user_profile content_user.username %}">{{ content_user.username }}</a> ({% trans "Owner" %}) /
	  </div>
	</h3>
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <input type="text" id="title"class="input-xxlarge present header" disabled="" rows="3" value="{{ xform.title }}" />
                {% if can_edit %}
                    <a id="title_edit" data-id="title" href="" class="btn small bind-edit">{% trans "edit" %}</a>
                    <a id="title_save" data-id="title" style="display:none" href="" class="btn small btn-primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">{% trans "save" %}</a>
                {% endif %}
            </form>
            </div>
        </div>
    </div> 
    <div class="row">
      <div class="span8">
        {% if can_edit %}
            <h4>{% trans "Form ID:" %} {{ xform.id_string }}</h4>
        {% endif %}
        <h3>{% trans "Description" %}</h3>
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <textarea id="description" class="input-xxlarge present" disabled="" rows="3" name="textarea">{% if xform.description %}{{ xform.description }}{% else %}{% trans "None" %}{% endif %}</textarea>
                {% if can_edit %}
                    <a id="description_edit" data-id="description" href="" class="btn small bind-edit">{% trans "edit" %}</a>
                    <a id="description_save" data-id="description" style="display:none" href="" class="btn small btn-primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">{% trans "save" %}</a>
                {% endif %}
            </form>
            </div>
        </div>
      <div class="bordered">
        <h3>
            {% trans "XLSForm" %}
            <span id="form-shared-public" class="label label-info">{% trans "PUBLIC" %}</span>
            <span id="form-shared-private" class="label label-warning">{% trans "PRIVATE" %}</span>
        </h3>
        <br/>
        <div class="btn-toolbar" style="margin-bottom: 9px">
          <div class="btn-group">
            <a class="btn btn-success" href="{% url download_xlsform content_user.username xform.id_string %}"><i class="icon-th icon-white"></i><font color=#FFF> {% trans "XLSForm" %}</font></a>
            <button class="btn dropdown-toggle btn-success" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{ base_url }}{% url download_xlsform content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url download_xform content_user.username xform.id_string %}"><i class="icon-file"></i><font color=#000> {% trans "XForm" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{ base_url }}{% url download_xform content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url download_jsonform content_user.username xform.id_string %}"><i class="icon-file"></i><font color=#000> {% trans "JSONForm" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{ base_url }}{% url download_jsonform content_user.username xform.id_string %}"/>
              </li>
            </ul>
        </div>
    </div>
    <br>
        </ul>
        <p>
            {% trans "License" %}:
            {% if can_edit %}
                {% for field in form_license_form %}
                    {{ field }}
                {% endfor %}
                <a id="form-license_edit" data-id="form-license" href="" class="btn btn-small bind-edit">{% trans "edit" %}</a>
                <a id="form-license_save" data-id="form-license" style="display:none" href="" class="btn btn-small btn-primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">{% trans "save" %}</a>
            {% else %}
                {{ form_license|default:'No license' }}
            {% endif %}
        </p>
        <p><a id="form-license_info" style="display:none" href="">{% trans "License information" %}</a></p>
        <br/>
        <ul class="inline">
        {% if user.is_authenticated and content_user.username != user.username and xform.xls|length > 0 and not cloned %}
            <br/><br/>
            <li>
                <a href="" data-url="{% url main.views.clone_xlsform xform.user.username %}" data-username="{{ xform.user.username }}" data-id="{{ xform.id_string }}" class="clonexls btn small">{% trans "Clone" %}</a>
            </li>
        {% endif %}
        </ul>
      </div>
      <br/>
      <div class="clearfix bordered">
        <h3>
            {% trans "Form Data" %}
            <span id="data-shared-public" class="label label-info">{% trans "PUBLIC" %}</span>
            <span id="data-shared-private" class="label label-warning">{% trans "PRIVATE" %}</span>
        </h3>
        {% if xform.shared_data or can_view %}
        {% if xform.submission_count > 0 %}
        <br>
        <div class="btn-toolbar" style="margin-bottom: 9px">
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.csv_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export to csv File' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "csv" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.csv_export content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.xls_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export to xls File' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "xls" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.xls_export content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.kml_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export to kml File (Google Earth)' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "kml" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.kml_export content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>

          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.zip_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export a zip folder of attachments' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "zip" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.zip_export content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.google_xls_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export to google docs' %}" target="_blank"><i class="icon-download-alt"></i> <font color=#000>{% trans "gdocs" %}</font></a><commit_msg>Changed xls export url from show page to export list url<commit_after>{% extends 'base.html' %}
{% load humanize %}
{% block content %}
{% load i18n %}

  {% if user.is_authenticated %}
    <script type="text/javascript" src="/static/js/form_actions.js"></script>
  {% endif %}
  <section id="profile">
    <div class="page-header">
      <!-- <img src='{{ content_user.profile.gravatar }}' alt='gravatar' width='40' height='40' style='float:left; padding-right:10px;' /> -->
    <div id="mfeedback">&nbsp;</div>
	<h3>
	  <div style='vertical-align: middle'>      
	  <img src='{{ content_user.profile.gravatar }}' alt='' width='20' height='20' /> 
	  <a href="{% url user_profile content_user.username %}">{{ content_user.username }}</a> ({% trans "Owner" %}) /
	  </div>
	</h3>
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <input type="text" id="title"class="input-xxlarge present header" disabled="" rows="3" value="{{ xform.title }}" />
                {% if can_edit %}
                    <a id="title_edit" data-id="title" href="" class="btn small bind-edit">{% trans "edit" %}</a>
                    <a id="title_save" data-id="title" style="display:none" href="" class="btn small btn-primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">{% trans "save" %}</a>
                {% endif %}
            </form>
            </div>
        </div>
    </div> 
    <div class="row">
      <div class="span8">
        {% if can_edit %}
            <h4>{% trans "Form ID:" %} {{ xform.id_string }}</h4>
        {% endif %}
        <h3>{% trans "Description" %}</h3>
        <div class="clearfix">
            <div class="input">
            <form>
                {% csrf_token %}
                <textarea id="description" class="input-xxlarge present" disabled="" rows="3" name="textarea">{% if xform.description %}{{ xform.description }}{% else %}{% trans "None" %}{% endif %}</textarea>
                {% if can_edit %}
                    <a id="description_edit" data-id="description" href="" class="btn small bind-edit">{% trans "edit" %}</a>
                    <a id="description_save" data-id="description" style="display:none" href="" class="btn small btn-primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">{% trans "save" %}</a>
                {% endif %}
            </form>
            </div>
        </div>
      <div class="bordered">
        <h3>
            {% trans "XLSForm" %}
            <span id="form-shared-public" class="label label-info">{% trans "PUBLIC" %}</span>
            <span id="form-shared-private" class="label label-warning">{% trans "PRIVATE" %}</span>
        </h3>
        <br/>
        <div class="btn-toolbar" style="margin-bottom: 9px">
          <div class="btn-group">
            <a class="btn btn-success" href="{% url download_xlsform content_user.username xform.id_string %}"><i class="icon-th icon-white"></i><font color=#FFF> {% trans "XLSForm" %}</font></a>
            <button class="btn dropdown-toggle btn-success" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{ base_url }}{% url download_xlsform content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url download_xform content_user.username xform.id_string %}"><i class="icon-file"></i><font color=#000> {% trans "XForm" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{ base_url }}{% url download_xform content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url download_jsonform content_user.username xform.id_string %}"><i class="icon-file"></i><font color=#000> {% trans "JSONForm" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{ base_url }}{% url download_jsonform content_user.username xform.id_string %}"/>
              </li>
            </ul>
        </div>
    </div>
    <br>
        </ul>
        <p>
            {% trans "License" %}:
            {% if can_edit %}
                {% for field in form_license_form %}
                    {{ field }}
                {% endfor %}
                <a id="form-license_edit" data-id="form-license" href="" class="btn btn-small bind-edit">{% trans "edit" %}</a>
                <a id="form-license_save" data-id="form-license" style="display:none" href="" class="btn btn-small btn-primary bind-save" data-url="{% url main.views.edit content_user.username xform.id_string %}">{% trans "save" %}</a>
            {% else %}
                {{ form_license|default:'No license' }}
            {% endif %}
        </p>
        <p><a id="form-license_info" style="display:none" href="">{% trans "License information" %}</a></p>
        <br/>
        <ul class="inline">
        {% if user.is_authenticated and content_user.username != user.username and xform.xls|length > 0 and not cloned %}
            <br/><br/>
            <li>
                <a href="" data-url="{% url main.views.clone_xlsform xform.user.username %}" data-username="{{ xform.user.username }}" data-id="{{ xform.id_string }}" class="clonexls btn small">{% trans "Clone" %}</a>
            </li>
        {% endif %}
        </ul>
      </div>
      <br/>
      <div class="clearfix bordered">
        <h3>
            {% trans "Form Data" %}
            <span id="data-shared-public" class="label label-info">{% trans "PUBLIC" %}</span>
            <span id="data-shared-private" class="label label-warning">{% trans "PRIVATE" %}</span>
        </h3>
        {% if xform.shared_data or can_view %}
        {% if xform.submission_count > 0 %}
        <br>
        <div class="btn-toolbar" style="margin-bottom: 9px">
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.csv_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export to csv File' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "csv" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.csv_export content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.export_list content_user.username xform.id_string 'xls' %}" rel="tooltip" data-original-title="{% trans 'Export to xls File' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "xls" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.export_list content_user.username xform.id_string 'xls' %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.kml_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export to kml File (Google Earth)' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "kml" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.kml_export content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>

          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.zip_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export a zip folder of attachments' %}"><i class="icon-download-alt"></i> <font color=#000>{% trans "zip" %}</font></a>
            <button class="btn dropdown-toggle" data-toggle="dropdown">
              <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
              <li>                    
                <input class="input-xxlarge" type="text" size="16" value="{{base_url}}{% url odk_viewer.views.zip_export content_user.username xform.id_string %}"/>
              </li>
            </ul>
          </div>
          <div class="btn-group">
            <a class="btn" href="{% url odk_viewer.views.google_xls_export content_user.username xform.id_string %}" rel="tooltip" data-original-title="{% trans 'Export to google docs' %}" target="_blank"><i class="icon-download-alt"></i> <font color=#000>{% trans "gdocs" %}</font></a>
{'fraction_non_alphanumeric': 0.18289386443617076, 'fraction_numerical': 0.006528280716070791, 'mean_word_length': 2.180535279805353, 'pattern_counts': {'":': 0, '<': 429, '<?xml version=': 0, '>': 433, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7427095', 'n_tokens_mistral': 6185, 'n_tokens_neox': 5768, 'n_words': 1299}