Browse Source

Merge branch 'master' of atrey.karlin.mff.cuni.cz:/akce/MaM/MaMweb/mamweb

remotes/origin/imagekit
parent
commit
237a88ceed
  1. 2
      galerie/forms.py
  2. 8
      galerie/templates/galerie/GalerieNahled.html
  3. 2
      galerie/views.py
  4. 18
      mamweb/static/css/mamweb.css

2
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)

8
galerie/templates/galerie/GalerieNahled.html

@ -56,13 +56,13 @@ Galerie {{galerie.nazev}}
</div>
<!--</div>-->
</a>
{% comment %}
{% if user.is_staff and galerie.zobrazit > 0 %}
<div class="mam-org-only-galerie">
({{galerie.poradi}})
<span class="plus"><a href="plus/{{galerie.pk}}/">+</a></span>
<span class="minus"><a href="minus/{{galerie.pk}}/">-</a></span>
<span class="plus"><a href="plus/{{galerie.pk}}/">+</a></span>
<span class="minus"><a href="minus/{{galerie.pk}}/">-</a></span>
</div>
{% endif %}
{% endcomment %}
{% endif %}
{% endfor %}
</div>

2
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,

18
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 {

Loading…
Cancel
Save