stuff on adminpage

This commit is contained in:
2017-10-03 18:31:14 +02:00
parent c21e0d3292
commit 91f210883f
3 changed files with 12 additions and 4 deletions

View File

@@ -30,7 +30,10 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-7"> <div class="col-md-7">
<h2>Verfügbare Ligen</h2> <button class="btn btn-primary" type="button" data-toggle="collapse"
data-target="#collapseBeispiel" aria-expanded="false" aria-controls="collapseBeispiel">
Liga hinzufügen</button>
<div class="collapse" id="collapseBeispiel">
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>Liga</th> <th>Liga</th>
@@ -49,6 +52,7 @@
</table> </table>
</div> </div>
</div> </div>
</div>
{% if debug %} {% if debug %}
<div class="row"> <div class="row">
<div class="col-md-7"> <div class="col-md-7">

View File

@@ -55,8 +55,8 @@ class BlogpostForm(ModelForm):
class MandantsForm(forms.Form): class MandantsForm(forms.Form):
mandants = forms.MultipleChoiceField( mandants = forms.MultipleChoiceField(
label= "Posten in", label= "Posten in ",
widget=forms.CheckboxSelectMultiple({'checked':'checked'}) widget=forms.CheckboxSelectMultiple({'checked':'checked'})
) )
class UserForm(forms.ModelForm): class UserForm(forms.ModelForm):
@@ -69,3 +69,7 @@ class UserProfileForm(forms.ModelForm):
model = UserProfile model = UserProfile
fields = ['avatar'] fields = ['avatar']
"""
class LeagueImportForm(forms.Form):
leagues =
"""

View File

@@ -142,7 +142,7 @@ def profile(request, pk):
return render(request, 'registration/profile.html', { return render(request, 'registration/profile.html', {
'user_form': user_form, 'user_form': user_form,
'profile_form': profile_form, 'profile_form': profile_form,
'debug': debug, #'debug': debug,
'img': img} 'img': img}
) )