Project

General

Profile

Segnalazione #15

Anomalia inserimento disponibilita'

Added by Christopher R. Gabriel over 10 years ago. Updated over 10 years ago.

Status:
Chiuso
Priority:
Normale
Target version:
-
Start date:
10/09/2013
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Se inserisco la disponibilita' per singolo giorno ma NON metto il giorno nel form e premo salva, vedo nel box a sx "Qualcosa e' andato storto", quando invece dovrebbe dirmi accanto al campo del form "Devi inserire il giorno".

Associated revisions

Revision f880bdaa (diff)
Added by Mark Caglienzi over 10 years ago

Show message that says that 'day' is a required field. refs #15

Revision 34878d88 (diff)
Added by Mark Caglienzi over 10 years ago

Override in SingleAvailabilityForm.__init__() to customize the form error message. refs #15

History

#1

Updated by Mark Caglienzi over 10 years ago

  • Status changed from Nuovo to Commenti
  • Assignee changed from Mark Caglienzi to Christopher R. Gabriel

Ho aggiunto {{form.day.errors}} nel template per far uscire il messaggio sopra al campo, e ho fatto un piccolo override dell'__init__() del ModelForm per avere il messaggio personalizzato/personalizzabile.

#2

Updated by Christopher R. Gabriel over 10 years ago

  • Status changed from Commenti to Chiuso

Verificato, ok.

Also available in: Atom PDF