diff --git a/galerie/forms.py b/galerie/forms.py index 3e09fe15..1cadb3fc 100644 --- a/galerie/forms.py +++ b/galerie/forms.py @@ -8,4 +8,4 @@ class KomentarForm(forms.Form): class NewGalerieForm(forms.Form): nazev = forms.CharField(label = "Název galerie", max_length = 100) - popis = forms.CharField(label = "Popis", required = False, max_length = 2000, widget = forms.Textarea) + #popis = forms.CharField(label = "Popis", required = False, max_length = 2000, widget = forms.Textarea) diff --git a/galerie/templates/galerie/GalerieNahled.html b/galerie/templates/galerie/GalerieNahled.html index f7026a11..49d72e46 100644 --- a/galerie/templates/galerie/GalerieNahled.html +++ b/galerie/templates/galerie/GalerieNahled.html @@ -56,13 +56,13 @@ Galerie {{galerie.nazev}} - {% comment %} {% if user.is_staff and galerie.zobrazit > 0 %} +
{% endif %} - {% endcomment %} {% endif %} {% endfor %} diff --git a/galerie/views.py b/galerie/views.py index bf04beed..04a574a4 100644 --- a/galerie/views.py +++ b/galerie/views.py @@ -171,7 +171,7 @@ def new_galerie(request, galerie, soustredeni): # vytvoreni nove galerie gal = Galerie() gal.nazev = form.cleaned_data['nazev'] - gal.popis = form.cleaned_data['popis'] + #gal.popis = form.cleaned_data['popis'] # popis nepouzivame gal.zobrazit = 1 # galerie je v procesu vytvareni ''' pokud je to podgalerie pridej nadrazenou galerii a nadrazene soustredeni nechej volne, diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index f3c705dd..bfdb87b0 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -601,6 +601,24 @@ div.zadani_azad_termin { margin-bottom: 15px; } +/* plus a minus tlacitka */ +.mam-org-only-galerie { + background: #fff0d7; + padding: 10px; + margin: 10px 10px 10px -20px; + border: orange 2px dashed; + float: left; +} + +.mam-org-only-galerie a{ + padding: 3px 5px; + margin: 5px; + border-radius: 20px; + background-color: lightblue; + color: black; + float: left; +} + /* Odkazy na předchozí a následující podgalerii */ .galerie_predchozi_nasledujici {