Changeset 1171 in main


Ignore:
Timestamp:
06/05/12 08:48:38 (7 years ago)
Author:
zali
Message:

settings and import csv templates : documentation url added

Location:
trunk/openPLM
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/base_views.py

    r1158 r1171  
    247247        'object_type': init_type_, 
    248248        'THUMBNAILS_URL' : settings.THUMBNAILS_URL, 
     249        'DOCUMENTATION_URL' : settings.DOCUMENTATION_URL, 
    249250        'can_generate_pdf' : can_generate_pdf(), 
    250251        'openPLM_version' : _version, 
  • trunk/openPLM/plmapp/views/main.py

    r1166 r1171  
    18541854            importer = Importer(csv_file, request.user, encoding) 
    18551855            preview = importer.get_preview() 
     1856            print preview.rows 
    18561857        if request.method == "POST": 
    18571858            headers_formset = Formset(request.POST) 
  • trunk/openPLM/settings.py

    r1095 r1171  
    208208COMPANY = "company" 
    209209 
     210# change this setting if you use an other user documentation for OpenPLM 
     211DOCUMENTATION_URL = "http://wiki.openplm.org/docs/user/" 
  • trunk/openPLM/settings_tests.py

    r1095 r1171  
    182182TEST_OUTPUT_DIR = "tests_results" 
    183183 
     184DOCUMENTATION_URL ="http://wiki.openplm.org/docs/user/" 
  • trunk/openPLM/templates/import/csv.html

    r808 r1171  
    22{% load i18n plmapp_tags %} 
    33 
     4{% block css %} 
     5<link rel="stylesheet" href="/media/css/import_csv.css" type="text/css" /> 
     6{% endblock %} 
     7 
     8{% block scripts %} 
     9<script type="text/javascript"> 
     10$(function(){ 
     11    var help_block=$("#help_csv"); 
     12    $("input#id_file").after(help_block); 
     13}); 
     14</script> 
     15{% endblock %} 
    416 
    517{% block content %} 
     
    7284        {% endif %} 
    7385    {% endifequal %} 
     86    <span id="help_csv"> 
     87        <span> 
     88            {% trans "Your csv file must have a column for each required field" %}.<br/> 
     89            {% trans "Examples and more precise descriptions are available in the"%}<a href="{{DOCUMENTATION_URL}}features/create.html#import-from-a-csv-file" target="_blank">{% trans "documentation" %}</a>. 
     90        </span>      
     91    </span> 
     92 
    7493 
    7594{% endblock %} 
Note: See TracChangeset for help on using the changeset viewer.