Changeset 1297

Show
Ignore:
Timestamp:
19/10/2009 16:02:08 (2 years ago)
Author:
sergio
Message:

Merged Tiago branch in trunk

Location:
trunk/gestorpsi
Files:
29 modified
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/gestorpsi

  • trunk/gestorpsi/admission/models.py

    r1155 r1297  
    1515""" 
    1616 
     17 
     18 
     19 
    1720import reversion 
    1821from django.db import models 
     22from django.utils.translation import ugettext as _ 
    1923from gestorpsi.organization.models import Organization 
    2024from gestorpsi.careprofessional.models import CareProfessional 
    2125from gestorpsi.client.models import Client 
    2226from gestorpsi.util.uuid_field import UuidField 
     27from django.contrib.contenttypes.models import ContentType 
     28from django.contrib.contenttypes import generic 
     29 
     30ATTACH_TYPE = ( 
     31    ('01', _('Termo de Consentimento Livre e Esclarecido (TCLE)')), 
     32) 
    2333 
    2434class ReferralChoice(models.Model): 
     
    4757 
    4858reversion.register(AdmissionReferral, follow=['client']) 
     59 
     60class Attach(models.Model): 
     61    filename = models.CharField(null=True, max_length=255) 
     62    description = models.TextField(null=True) 
     63    date = models.DateTimeField(auto_now_add=True) 
     64    file = models.CharField(max_length=200) 
     65    type = models.CharField(max_length=2, blank=True, null=True, choices=ATTACH_TYPE)  
     66    client = models.ForeignKey(Client) 
     67    signed_bythe_client = models.BooleanField(default=True) 
     68 
     69    def __unicode__(self): 
     70        return u'%s' % (self.file) 
  • trunk/gestorpsi/admission/urls.py

    r990 r1297  
    1616 
    1717from django.conf.urls.defaults import * 
    18 from gestorpsi.admission.views import form, save 
     18from gestorpsi.admission.views import form, save, attach_save 
    1919from gestorpsi.authentication.views import login_check 
    2020 
     
    2222    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(form)), 
    2323    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/save/$', login_check(save)),  #update object 
    24      
     24    (r'^(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/attach/$', login_check(attach_save)),  #attach save 
    2525) 
  • trunk/gestorpsi/admission/views.py

    r1200 r1297  
    1 # -*- coding: utf-8 -*- 
     1#-*- coding: utf-8 -*- 
    22 
    33""" 
     
    2828from gestorpsi.util.views import get_object_or_None 
    2929from gestorpsi.util.decorators import permission_required_with_403 
     30from gestorpsi.settings import MEDIA_ROOT 
     31import os 
     32import uuid 
    3033 
    3134@permission_required_with_403('admission.admission_read') 
    3235def form(request, object_id=''): 
    3336    object = get_object_or_404(Client, pk=object_id, person__organization=request.user.get_profile().org_active) 
     37    attachs = Attach.objects.filter(client = object) 
    3438 
    3539    return render_to_response('admission/admission_form.html', { 
    3640        'object': object, 
     41        'types': ATTACH_TYPE, 
     42        'attachs': attachs, 
     43        'org_id': request.user.get_profile().org_active.id, 
    3744        'contact_organizations':  Contact.objects.filter( 
    3845                        org_id = request.user.get_profile().org_active.id,  
     
    7885 
    7986    return HttpResponseRedirect('/client/%s/home' % object.id) 
     87 
     88def attach_save(request, object_id = None): 
     89    object = get_object_or_404(Client, pk = object_id) 
     90 
     91    if request.method == 'POST': 
     92        user = request.user 
     93        filename = '' 
     94 
     95        if 'file' in request.FILES: 
     96            path = '%simg/organization/%s' % (MEDIA_ROOT, user.get_profile().org_active.id) 
     97            if not os.path.exists(path): 
     98                os.mkdir(path) 
     99                os.chmod(path, 0777) 
     100 
     101            path = '%simg/organization/%s/attach' % (MEDIA_ROOT, user.get_profile().org_active.id) 
     102            if not os.path.exists(path): 
     103                os.mkdir(path) 
     104                os.chmod(path, 0777) 
     105 
     106            try: 
     107                    filename = request.FILES['file'] 
     108                    file = str(uuid.uuid4()) + '.'+ (str(filename).split('.')[-1]) 
     109                    destination = open('%s/%s' % (path,  file), 'w+') 
     110 
     111                    for chunk in filename.chunks(): 
     112                        destination.write(chunk) 
     113                    destination.close() 
     114 
     115                    attach = Attach() 
     116                    if not request.POST.get('signed'): 
     117                        attach.signed_bythe_client = False 
     118                    else: 
     119                        attach.signed_bythe_client = True 
     120 
     121                    attach.filename = '%s' %  filename 
     122                    attach.description = request.POST.get('description') 
     123                    attach.file = '%s' % file 
     124                    attach.type = request.POST.get('doc_type') 
     125                    attach.client = object 
     126                    attach.save() 
     127 
     128            except IOError: 
     129                print "error sending file" 
     130 
     131        return HttpResponseRedirect('/admission/%s/' % object_id) 
     132        return HttpResponseRedirect('/admission/%s/' % object_id) 
  • trunk/gestorpsi/client/views.py

    r1266 r1297  
    7474    referrals_discharged = Referral.objects.discharged().filter(client=object) 
    7575 
     76    c=0 
     77    for x in (Referral.objects.filter(client=object)): 
     78        c += x.past_occurrences().count() 
     79 
    7680    return render_to_response('client/client_home.html', 
    7781                                        { 
     
    7983                                        'referrals': referrals, 
    8084                                        'referrals_discharged': referrals_discharged, 
    81                                         'clss':request.GET.get('clss') 
     85                                        'service_subscribers': Service.objects.filter(referral__client = object).distinct().count(), 
     86                                        'care_delivered': c, 
     87                                                        'clss':request.GET.get('clss') 
    8288                                        }, 
    8389                                        context_instance=RequestContext(request)) 
     
    429435 
    430436    clss = request.GET.get("clss") 
    431     dt = referral.date.strftime("%d-%m-%Y  %H:%M %p") 
     437    dt = referral.date.strftime("%d-%m-%Y  %H:%M ") 
    432438    try: 
    433439        indication = Indication.objects.get(referral = referral_id) 
  • trunk/gestorpsi/device/models.py

    r1167 r1297  
    9999 
    100100    def __unicode__(self): 
    101       return u"%s - %s - %s" % (self.device.description, self.brand, self.model,) 
     101#      return u"%s - %s - %s" % (self.device.description, self.brand, self.model,) 
     102      return u"%s - %s - %s" % (self.model, self.brand, self.device.description,) 
    102103 
    103104    def revision(self): 
  • trunk/gestorpsi/media/img/16

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • trunk/gestorpsi/media/js

    • Property svn:ignore deleted
  • trunk/gestorpsi/media/js/gestorpsi.forms.submit.js

    r1237 r1297  
    1414 
    1515*/ 
     16     /** 
     17      *  My Record - Profile 
     18      * _description: 
     19      * change password of loged user 
     20      * 
     21      */ 
    1622 
    1723$(function() { 
     24 
     25    $('form.record_chpass').validate({ 
     26        rules: { 
     27            c_pass: "required", 
     28            n_pass: "required", 
     29            n_pass0: "required" 
     30        }, 
     31        messages: { 
     32            name: 'Preenchimento Necessário' 
     33        } 
     34    }); 
    1835 
    1936     /** 
  • trunk/gestorpsi/media/js/gestorpsi.json.js

    r1281 r1297  
    3737              str_professional = ''; 
    3838              str_professional_id = ''; 
     39              str_occurence = ''; 
    3940 
    4041              if (this.professional){ 
     
    4445                    }); 
    4546                } 
     47 
     48              if (this.occurence){ 
     49               jQuery.each(this.occurence,  function(){ 
     50                        str_occurence += ' ('+ this.p + ')'; 
     51                    }); 
     52                } 
    4653  
    4754                tableTR += '<tr>'; 
    48                 tableTR += '<td class="title">'+ str_client +'  '+ str_professional +'<br> data ' + this.dt; 
    49                 tableTR += '</td>'; 
    50                 tableTR += '<td></td>'; 
     55                tableTR += '<td class="title">'+ str_client +' '+ str_professional +'<br /> Date ' + this.dt + '<br />Occurences: '+ str_occurence; 
     56                tableTR += '</td>'; 
     57                tableTR += '<td>'; 
     58//                tableTR += '<a href="www.gestorpsi.com.br">lnk</a>'; 
     59                tableTR += '</td>'; 
    5160                tableTR += '</tr>'; 
    5261        }); 
     
    545554} 
    546555 
     556/*** 
     557 * service group select; details about referral , professionals 
     558 */ 
    547559function referralMultSelect(url) { 
    548560    $.getJSON(url, function(json) { 
     
    550562                    $('form div.main_area div select#m-selectable').append(new Option(this.client + this.prof0 + this.prof1 + this.prof2 , this.id)); 
    551563                }); 
    552             }); 
    553 } 
     564    }); 
     565} 
  • trunk/gestorpsi/profile/urls.py

    r990 r1297  
    1616 
    1717from django.conf.urls.defaults import * 
    18 from gestorpsi.profile.views import form, save, form_careprofessional, save_careprofessional 
     18from gestorpsi.profile.views import form, save, form_careprofessional, save_careprofessional, change_pass 
    1919from gestorpsi.authentication.views import login_check 
    2020 
     
    2424    (r'^save/$', login_check(save)), #save new object 
    2525    (r'^save/careprofessional/$', login_check(save_careprofessional)), #save new object 
     26    (r'^chpass/$', login_check(change_pass)), #change password 
    2627) 
  • trunk/gestorpsi/profile/views.py

    r1036 r1297  
    9090    request.user.message_set.create(message=_('Professional profile saved successfully')) 
    9191    return HttpResponseRedirect('/profile/careprofessional/') 
     92 
     93def change_pass(request): 
     94    object = get_object_or_404(CareProfessional, pk=request.user.get_profile().person.careprofessional.id) 
     95 
     96    clss = request.GET.get("clss") 
     97 
     98    if request.POST.get('c_pass'): 
     99        if not object.person.profile.user.check_password(request.POST.get("c_pass")): 
     100            request.user.message_set.create(message=_('The current password is wrong')) 
     101            return HttpResponseRedirect('/profile/chpass/?clss=error') 
     102        else: 
     103            if request.POST.get("n_pass") != request.POST.get("n_pass0"): 
     104                request.user.message_set.create(message=_('The confirmation of the new password is wrong')) 
     105                return HttpResponseRedirect('/profile/chpass/?clss=error') 
     106            else: 
     107                object.person.profile.user.set_password(request.POST.get('n_pass')) 
     108                object.person.profile.temp = request.POST.get('n_pass')    # temporary field (LDAP) 
     109                object.person.profile.save(force_update=True) 
     110                object.person.profile.user.save(force_update=True) 
     111                request.user.message_set.create(message=_('Password updated successfully')) 
     112                return HttpResponseRedirect('/profile/chpass') 
     113    else: 
     114        return render_to_response('profile/profile_change_pass.html', locals(), context_instance=RequestContext(request)) 
  • trunk/gestorpsi/referral/urls.py

    r1016 r1297  
    1717from django.conf.urls.defaults import * 
    1818from gestorpsi.authentication.views import login_check 
    19 from gestorpsi.referral.views import referral_off, client_referrals 
     19from gestorpsi.referral.views import referral_off, client_referrals, mult_select 
    2020 
    2121 
     
    2626    (r'^(?P<object_id>\d+)/off/$', login_check(referral_off)), 
    2727    #(r'^save/$', login_check(save)), 
     28    (r'^multselect/(?P<object_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/$', login_check(mult_select)), 
    2829) 
  • trunk/gestorpsi/referral/views.py

    r1200 r1297  
    6969        form = ReferralGroupForm() 
    7070        client_form = ReferralClientForm() 
    71         client_form.fields['client'].queryset = Client.objects.filter(person__organization = request.user.get_profile().org_active.id, clientStatus = '1', referral__service = object).distinct() 
     71        #client_form.fields['client'].queryset = Client.objects.filter(person__organization = request.user.get_profile().org_active.id, clientStatus = '1', referral__service = object).distinct() 
    7272 
    7373    return render_to_response('service/service_group_form.html', 
     
    7676                                'client_form': client_form, 
    7777                                'hide_service_actions': True, 
     78#                                'clients': Client.objects.filter(person__organization = request.user.get_profile().org_active.id, clientStatus = '1', referral__service = object).distinct(), 
     79                                'clients': Referral.objects.filter(organization = request.user.get_profile().org_active, status = '01', service = object).distinct(), 
    7880                               }, 
    7981                              context_instance=RequestContext(request) 
     
    164166    return HttpResponse(array, mimetype='application/json') 
    165167 
     168 
     169@permission_required_with_403('referral.referral_list') 
     170def mult_select(request, object_id = None): 
     171    print "M U L T" 
     172    object = get_object_or_404(Service, pk=object_id, organization = request.user.get_profile().org_active) 
     173#    object = get_object_or_404(Client, pk=object_id, person__organization=request.user.get_profile().org_active) 
     174#    referral = Referral.objects.charged().filter(client=object, service__organization=request.user.get_profile().org_active) 
     175 
     176    referrals = Referral.objects.filter(organization = request.user.get_profile().org_active, status = '01', service = object).distinct() 
     177 
     178    array = {} #json 
     179    i = 0 
     180 
     181    for o in referrals: 
     182        prof0 = '' 
     183        prof1 = '' 
     184        prof2 = '' 
     185 
     186        try: 
     187            prof0 = '%s' % o.professional.all()[0] 
     188            prof0 = ('(%s' ' %s)' % (prof0.split(' ')[0], prof0.split(' ')[1][0])) 
     189 
     190            prof1 = '%s' % o.professional.all()[1] 
     191            prof1 = ('(%s' ' %s)' % (prof1.split(' ')[0], prof1.split(' ')[1][0])) 
     192 
     193            prof2 = '%s' % o.professional.all()[2] 
     194            prof2 = ('(%s' ' %s)' % (prof2.split(' ')[0], prof2.split(' ')[1][0])) 
     195 
     196        except: 
     197            pass 
     198 
     199        array[i] = { 
     200            'client': '%s' % o.client.all()[0], 
     201            'id': '%s' % o.client.all()[0].id, 
     202            'prof0': ' %s' % prof0, 
     203            'prof1': ' %s' % prof1, 
     204            'prof2': ' %s' % prof2, 
     205        } 
     206        i = i + 1 
     207 
     208    array = simplejson.dumps(array, encoding = 'iso8859-1') 
     209 
     210    return HttpResponse(array, mimetype='application/json') 
  • trunk/gestorpsi/schedule

    • Property svn:ignore deleted
  • trunk/gestorpsi/schedule/views.py

    r1281 r1297  
    126126            )) 
    127127 
    128         recurrence_form.fields['device'].queryset = DeviceDetails.objects.filter(Q(room = room, mobility="1") | Q(place =  room.place, room__place__organization = request.user.get_profile().org_active, mobility="2", lendable=False) | Q(room__place__organization = request.user.get_profile().org_active, mobility="2", lendable=True)) 
     128        recurrence_form.fields['device'].queryset = DeviceDetails.objects.filter(Q(room = room, mobility="1") | Q(place =  room.place, room__place__organization = request.user.get_profile().org_active, mobility="2", lendable=False) | Q(room__place__organization = request.user.get_profile().org_active, mobility="2", lendable=True, active=True)) 
    129129 
    130130    return render_to_response( 
  • trunk/gestorpsi/service/views.py

    r1281 r1297  
    267267def queue(request, object_id=None): 
    268268    object = get_object_or_404(Service, pk=object_id, organization=request.user.get_profile().org_active) 
    269     queue = Queue.objects.filter(referral__service = object_id, date_out = None).order_by('date_in').order_by('priority') 
    270  
    271     list_queue = Referral.objects.filter(queue__referral__service = object_id, queue__date_out = None).order_by('date').order_by('-priority') 
     269    queue = Queue.objects.filter(referral__service = object_id, date_out = None).order_by('-date_in') 
     270 
     271    list_queue = Referral.objects.filter(queue__referral__service = object, queue__date_out = None).order_by('-queue__date_in') 
    272272 
    273273    return render_to_response( "service/service_queue.html", { 
     
    276276        }, context_instance=RequestContext(request)) 
    277277 
    278 @permission_required_with_403('service.service_list') 
    279278def client_list_index(request, object_id = None): 
    280279    object = get_object_or_404(Service, pk=object_id, organization=request.user.get_profile().org_active) 
     
    287286    i = 0 
    288287     
    289     referral = Referral.objects.charged().filter(service = object_id).order_by('date') 
     288    referral = Referral.objects.charged().filter(service = object_id).order_by('-date') 
    290289 
    291290    if initial: 
     
    297296    for r in referral: 
    298297        array[i] = { 
    299             'dt': r.date.strftime("%d-%m-%Y  %H:%M %p") 
     298            'dt': r.date.strftime("%d-%m-%Y  %H:%M ") 
    300299        } 
    301          
    302         sub = 0; 
     300 
     301        list = r.upcoming_occurrences() 
     302        sub = 0 
     303        array[i]['occurence'] = {} 
     304        for p in list: 
     305            array[i]['occurence'][sub] = ({'p': ('%s' % p.start_time.strftime(" %d-%m-%Y  %H:%M ")) }) 
     306            sub = sub + 1 
     307 
     308        sub = 0 
    303309        array[i]['professional'] = {} 
    304310        for p in r.professional.all(): 
     
    306312            sub = sub + 1 
    307313 
    308         sub = 0; 
     314        sub = 0 
    309315        array[i]['client'] = {} 
    310316        for p in r.client.all(): 
  • trunk/gestorpsi/templates/admission/admission_form.html

    r1155 r1297  
    3636        <p class="description">{% trans "Inform the client details then click on Save button" %}</p> 
    3737{% endif %} 
    38  
    3938</p> 
    4039<h2 id="title_contacts" style="display:none"></h2> 
     
    6564        <input name="admission_date" type="text" class="medium" value="{% if not object.admission_date %}{% now "d/m/Y" %}{% else %}{{ object.admission_date|date:"d/m/Y" }}{% endif %}" mask="99/99/9999" /></label> 
    6665        </fieldset> 
    67  {% for i in banana %}ae 
    68                                 {{ i }} 
    69                         {% endfor %} 
    7066        <!-- How the client heard about this organization --> 
    7167        <div class="admission_referral"> 
     
    142138</div> 
    143139 
    144 <div id="sidebar" class="sidebar"> 
    145     {% if perms.client.client_write %} 
    146         <div class="bg_blue"> 
    147             {% include "tags/save.html" %} 
    148         </div> 
     140    <div id="sidebar" class="sidebar"> 
     141        {% if perms.client.client_write %} 
     142            <div class="bg_blue"> 
     143                {% include "tags/save.html" %} 
     144            </div> 
     145        {% endif %} 
     146        {% if object.id %} 
     147            {% include "tags/client_sidebar.html" %} 
     148        {% endif %} 
     149    </div> 
     150 
     151</form> 
     152 
     153 
     154<input type="hidden" name="object_id" value="{{ object.id }}" /> 
     155 
     156<h2 id="title_addressbook" style="display:none"></h2> 
     157 
     158        <h2 class="title_clients title">{{ object.person.name }} {% trans "in" %} {{ referral }}</h2> 
     159        <p class="description">{% trans "Client subscribed in this service since" %} {{ referral.date|date:"d" }} {% trans "of" %} {{ referral.date|date:"F" }} {% trans "of" %} {{ referral.date|date:"Y" }}<br /> 
     160 
     161</p> 
     162 
     163<div class="main_area"> 
     164<form action="/admission/{{ object.id}}/attach/" method="post" name="attach" enctype="multipart/form-data" class="upload_referral"> 
     165 
     166<fieldset> 
     167 <legend>{% trans "Media" %}</legend> 
     168        <div id="documents"> 
     169                <!-- Aparece quando "Anexar Documento", desaparece após 
     170 enviar arquivo, podem haver vários--> 
     171                <div class="documents_form"> 
     172                <label>{% trans "File" %}<br /> 
     173 
     174                <input type="file" class="file" name="file" /> 
     175 
     176                </label> 
     177                <label>{% trans "Document Type" %}<br /> 
     178                    <select name="doc_type" class="big"> 
     179                            {% for type in types %} 
     180                                <option value="{{ type.0 }}">{{ type.1 }}</option> 
     181                            {% endfor %} 
     182                    </select> 
     183                    <label> 
     184                       <input type="checkbox" name="signed" id="signed" checked="checked">&nbsp; 
     185                       {% trans "Asigned by the client" %} 
     186                    </label> 
     187                </label> 
     188 
     189                <label>{% trans "Document Subject" %}<br /> 
     190                <input name="description" type="text" class="big" /></label> 
     191                <label><input name="" type="submit" class="btn" value="{% trans "Send file" %}" /></label> 
     192                </div> 
     193 
     194                <br class="newline" /> 
     195                <br /> 
     196 
     197    {% if attachs %} 
     198        {% for a in attachs %} 
     199                <table class="nozebra"> 
     200                        <tr> 
     201                                <td nowrap="nowrap"><span class="date">{{ a.date|date:"d-m-Y" }} </span><br /><span class="time">{{ a.date|date:"P" }}</span></td> 
     202                                <td><span  class="pdf"><a href="/media/img/organization/{{ org_id }}/attach/{{ a.file }}" target="_blank">{{ a.filename }}</a></span></td> 
     203                                <td><span>{{ a.description }} {% for t in types %}{% ifequal a.type t.0 %} {{ t.1 }} </span> <br /> {% endifequal %} {% endfor %}  
     204                                    <td><span>{% if a.signed_bythe_client %}{% trans "Signed by the client" %}{% endif %}</span></td> 
     205                        </tr> 
     206                </table> 
     207        {% endfor %} 
     208    {% else %} 
     209             <p class="empty">Nenhum documento anexado</p> 
     210             <br /> 
    149211    {% endif %} 
    150     {% if object.id %} 
    151         {% include "tags/client_sidebar.html" %} 
    152     {% endif %} 
     212 
     213   </fieldset> 
     214  </form> 
     215 <br /> 
    153216</div> 
    154217</form> 
  • trunk/gestorpsi/templates/careprofessional/careprofessional_form.html

    r1200 r1297  
    140140<fieldset class="comment_form"> 
    141141        <legend>{% trans "Comments" %}</legend> 
    142         <label>{% trans "Comments" %}<br /> 
     142        <label> 
    143143                <textarea name="comments" class="extrabig">{{ object.person.comments }}</textarea> 
    144144        </label> 
  • trunk/gestorpsi/templates/client/client_home.html

    r1237 r1297  
    3131<h2 id="title_addressbook" style="display:none"></h2> 
    3232 
    33         <h2 class="title_clients title">{{ object.person.name }}</h2> 
    34         <p class="description">{% trans "Customer subscribed in" %} <a href="/client/{{ object.id }}/referral/">{{ referrals|length }} {% trans "service(s)" %}</a> <br />       
    35  
    36 </p> 
     33    <h2 class="title_clients title">{% trans "Details of Client"%} </h2> 
     34    <p class="description">{% trans "Customer subscribed in" %} <a href="/client/{{ object.id }}/referral/">{{ referrals|length }} {% trans "service(s)" %}</a>&nbsp; 
     35        {% trans "Admission Date" %} ( {{ object.admission_date|date:"d-m-Y" }} ) &nbsp;  
     36        {% trans "Subscribers" %} ( {{ service_subscribers }} )  &nbsp;  
     37        {% trans "Care delivery" %} ( {{ care_delivered }} )  
     38    </p> 
    3739 
    3840<div class="main_area home"> 
    3941        <!-- <a href="" id="help">&nbsp;</a> --> 
    4042        <!-- DataTypes form menu --> 
    41         <h3><span>{% trans "Administrative Details" %}</span></h3> 
     43        <h3><span>{% trans "registration information" %}</span></h3> 
    4244    <div class="photo"> 
    4345        <img class="img_people" src="{% if object.person.photo %}/media/img/organization/{{ user.get_profile.org_active.id }}/.thumb/{{ object.person.photo }}{% else %}/media/img/generic_photo.gif{% endif %}" /> 
    4446        <br /><br /> 
    4547    </div>     
    46     <h1>{{ object }}</h1> 
     48    <h1>{{ object }} ( {{ object.person.nickname }} )</h1> 
    4749    <p><span class="big">{% if object.person.maritalStatus %}{{ object.person.maritalStatus }}{% endif %}</span></p> 
    4850    <p><span class="big">{% if object.person.birthDate %}{{ object.person.birthDate|age }} {% trans "years old" %} {% endif %}</span></p> 
     
    9092                <a href="/client/{{ object.id}}/referral/{{ i.id }}/">{{ i.service }}</a> {% if i.upcoming_occurrences %} {% trans "with" %} {{ i.upcoming_occurrences|length }} {% trans "occurrences remaining" %}{% endif %}<br /> 
    9193                {% for p in i.professional.all %} 
    92                     <b>{{ p }}</b> {% for i in p.person.phones.all %} {{ i }} {{ i.phoneType }} {% endfor %}{{ p.person.get_first_email }}<br /> 
     94                <b>{{ p }}</b> {{ p.professionalIdentification.profession }} - {{ p.professionalIdentification.profession.symbol }}&nbsp;{{ p.professionalIdentification }} <br /> 
    9395                {% endfor %} 
    9496                    {% if i.next_occurrence %} 
  • trunk/gestorpsi/templates/client/client_referral_home.html

    r1131 r1297  
    3232 
    3333        <h2 class="title_clients title">{{ object.person.name }}</h2> 
    34         <p class="description"><br /></p> 
    35  
    36  
     34    <p class="description"><br /></p> 
    3735 
    3836<div class="main_area home"> 
    3937        <!-- <a href="" id="help">&nbsp;</a> --> 
    4038        <!-- DataTypes form menu --> 
    41         <h3><span>{% trans "Administrative Details" %}</span></h3> 
     39        <h3><span>{% trans "registration information" %}</span></h3> 
    4240    <div class="photo"> 
    4341        <img class="img_people" src="{% if object.person.photo %}/media/img/organization/{{ user.get_profile.org_active.id }}/.thumb/{{ object.person.photo }}{% else %}/media/img/generic_photo.gif{% endif %}" /> 
     
    4543    </div>     
    4644    <h1>{{ object.person.name }}</h1> 
     45    <p><span class="big">{% if object.person.nickname %}{{ object.person.nickname }}{% endif %}</span></p> 
    4746    <p><span class="big">{% if object.person.maritalStatus %}{{ object.person.maritalStatus }}{% endif %}</span></p> 
    4847    <p><span class="big">{% if object.person.birthDate %}{{ object.person.birthDate|age }} {% trans "years" %} {% endif %}</span></p> 
     
    9291                {% trans "There is no professional in this referral." %} <a href="/client/{{ object.id}}/referral/{{ referral.id }}/form/">{% trans "Add one now?" %}</a> 
    9392            {% else %} 
    94                 {% trans "Professionals" %}: {{ referral.professional_list|safeseq|join:", "}} 
    95             {% endif %} 
    96             <br> 
    97             {% trans "Client subscribed on this service since" %} {{ referral.date|date:"d" }} {% trans "of" %} {{ referral.date|date:"F" }} {% trans "of" %} {{ referral.date|date:"Y" }} 
    98         </p> 
    99  
    100         <p> 
    101             {% if dt %} 
    102             <b />{% trans "Data" %}</b><br /> 
    103                 {{ dt }} 
    104             {% endif %} 
    105         </p> 
     93                    {% trans "Professionals" %}: {{ referral.professional_list|safeseq|join:", "}} 
     94                {% endif %} 
     95            <br> 
     96            {% trans "Client subscribed on this service since" %} {{ dt }}  
     97        </p> 
     98 
    10699        <p> 
    107100            {% if referral.referral %} 
  • trunk/gestorpsi/templates/device/device_list.html

  • trunk/gestorpsi/templates/employee/employee_form.html

    r1164 r1297  
    7979<fieldset class="comment_form"> 
    8080        <legend>{% trans "Comments" %}</legend> 
    81         <label>{% trans "Comments" %}<br /> 
     81        <label> 
    8282                <textarea name="comments" class="extrabig">{{ object.person.comments }}</textarea> 
    8383        </label> 
  • trunk/gestorpsi/templates/organization/organization_form.html

    r1191 r1297  
    254254<fieldset id="fieldset_place_status" class="identity organization"> 
    255255        <legend>{% trans "Comments" %}</legend> 
    256         <label>{% trans "Comments" %}<br /> 
    257                 <textarea name="comment" class="extrabig">{{ object.comment }}</textarea> 
    258         </label> 
     256        <label> 
     257        <textarea name="comment" class="extrabig">{{ object.comment }}</textarea> 
     258    </label> 
    259259</fieldset> 
    260260 
  • trunk/gestorpsi/templates/place/place_room_form.html

    r1008 r1297  
    8989<fieldset class="comment_form"> 
    9090        <legend>{% trans "Comments" %}</legend> 
    91         <label>{% trans "Comments" %}<br /> 
     91        <label> 
    9292                <textarea name="comments" class="extrabig">{{ object.comments }}</textarea> 
    9393        </label> 
  • trunk/gestorpsi/templates/profile/profile_person.html

    r990 r1297  
    4545            {% include "tags/save.html" %} 
    4646          </div> 
     47 
     48          <div> 
     49                {% include "tags/profile_sidebar.html" %} 
     50          </div> 
    4751</div> 
    4852 
  • trunk/gestorpsi/templates/service/service_form.html

    r1262 r1297  
    160160<fieldset class="comment_form"> 
    161161        <legend>{% trans "Comments" %}</legend> 
    162         <label>{% trans "Comments" %}<br /> 
     162        <label> 
    163163                <textarea name="comments" class="extrabig">{{ object.comments }}</textarea> 
    164164        </label> 
  • trunk/gestorpsi/templates/service/service_group_form.html

    r1009 r1297  
    6868 
    6969    <fieldset> 
    70     <legend>{% trans "Group Members" %}</legend> 
    71         <label>{% trans "Clients" %}<br /></label> 
     70    <legend>Group Members</legend> 
     71        <label>Clients<br /></label> 
    7272        <div> 
    73         {{ client_form.client }} 
    74         {{ client_form.client.errors }} 
     73            <select multiple="multiple" id="id_client" class="giant high multiple multiselectable" name="client"> 
     74                <script> 
     75                    referralMultSelect('/referral/multselect/{{ object.id }}/'); 
     76                </script> 
     77            </select> 
    7578        </div> 
    76          
    7779    </fieldset> 
    78      
     80 
     81 
    7982<br /> 
    8083     
  • trunk/gestorpsi/templates/tags

    • Property svn:ignore deleted