stuff on adminpage
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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 =
|
||||
"""
|
||||
|
||||
@@ -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}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user