Explorar el Código

modifiche ai template

Mauro hace 11 meses
padre
commit
0f7563dc95

+ 4 - 4
azienda/templates/azienda.welcome.html

@@ -8,7 +8,7 @@
   {% else %}
     <form name="azienda" method="POST">
       {% csrf_token %}
-      <button type="submit" class='btn btn-primary' name="utenti" value="{{ azienda.id }}">Utenti</button>
+      <button type="submit" class='btn btn-primary' name="utenti" value="{{ azienda.id }}">Dipendenti</button>
       <button type='submit' class="btn btn-primary" name="documenti" value='{{ azienda.id }}'>Documenti</button>
       {% if listaAttivitaxAzienda %}
         <button type 'submit' class='btn btn-primary' name="xx" value='{{ azienda.id }}'>Attività proprie</button>
@@ -40,7 +40,7 @@
           <tr>
             <th scope='col'>Data</th>
             <th scope='col'>Causale</th>
-            <th scope='col'>Utente</th>
+            <th scope='col'>Dipendente</th>
             <th scope='col'>Amministratore</th>
             <th scope='col'>documento</th>
           </tr>
@@ -63,9 +63,9 @@
           <tr>
             <th scope='col'>Data</th>
             <th scope='col'>Causale</th>
-            <th scope='col'>Utente</th>
+            <th scope='col'>Dipendente</th>
             <th scope='col'>Amministratore</th>
-            <th scope='col'>documento</th>
+            <th scope='col'>Documento</th>
           </tr>
           </thead>
           <tbody>

+ 2 - 2
documento/templates/documento.welcome.html

@@ -5,10 +5,10 @@
            {{ HeaderTitle }}
     </div>
     <div clasS='form-outline mb-3 text-center btn-primary h3'>
-           Azienda in elaborazione: {{ azienda.nome }}
+           {{ azienda.nome }}
     </div>
     <div clasS='form-outline mb-3 text-center btn-primary h3'>
-           Amministratore: {{ admin.username }}
+           {{ admin.nome }}
     </div>
 
     <!-- tasti per il ritorno e altre funzioni generiche -->

+ 1 - 1
utente/templates/utente.welcome.html

@@ -15,7 +15,7 @@
 {% block body %}
   <form name="inputUtente" method="POST">
   <div class='form-control'>
-    <input type='submit' class="btn btn-secondary" name='scelta' value='Nuovo Utente' {% if admin.crea_utente %} disable {% endif %}>
+    <input type='submit' class="btn btn-secondary" name='scelta' value='Nuovo Dipendente' {% if admin.crea_utente %} disable {% endif %}>
     <input type='submit' class="btn btn-secondary" name='CaricamentiMultipli' value='Caricamenti Multipli' {% if admin.crea_documento %} disable {% endif %}>
      <input type='submit' class="btn btn-primary" name="ritorna" value="Ritorna">
   </div>

+ 1 - 1
utente/views.py

@@ -112,7 +112,7 @@ def edit(request):
   data['azienda'] = Azienda.objects.get(pk=data['AziendaId'])
 
   utente = None
-  if data['UserEditId'] == "Nuovo Utente":
+  if data['UserEditId'] == "Nuovo Dipendente":
     utente = Utente()
     utente.pin = str(randint(100000,999999))
     utente.azienda = data['azienda']