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 class="row">
<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">
<tr>
<th>Liga</th>
@@ -49,6 +52,7 @@
</table>
</div>
</div>
</div>
{% if debug %}
<div class="row">
<div class="col-md-7">

View File

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

View File

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