fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Key shortcuts in source editor work as expected, but only with "Alt" key. Support...
[redakcja.git]
/
apps
/
wiki
/
forms.py
diff --git
a/apps/wiki/forms.py
b/apps/wiki/forms.py
index
ca21988
..
236c3f0
100644
(file)
--- a/
apps/wiki/forms.py
+++ b/
apps/wiki/forms.py
@@
-35,6
+35,14
@@
class DocumentForm(forms.Form):
parent =self.cleaned_data['revision'] )
return storage.get(self.cleaned_data['name'])
parent =self.cleaned_data['revision'] )
return storage.get(self.cleaned_data['name'])
+
+class DocumentTagForm(forms.Form):
+ TAGS = (
+ ("publish", "Do publikacji"),
+ )
+
+ tag = forms.ChoiceField(choices = TAGS)
+ version = forms.IntegerField(widget = forms.HiddenInput)
class DocumentTextSaveForm(forms.Form):
"""
class DocumentTextSaveForm(forms.Form):
"""
@@
-55,16
+63,16
@@
class DocumentTextSaveForm(forms.Form):
id = forms.CharField(widget=forms.HiddenInput)
parent_revision = forms.IntegerField(widget=forms.HiddenInput)
id = forms.CharField(widget=forms.HiddenInput)
parent_revision = forms.IntegerField(widget=forms.HiddenInput)
+ text = forms.CharField(widget=forms.HiddenInput)
author = forms.CharField(
required = False,
label = _(u"Autor"),
help_text = _(u"Twoje imie i nazwisko lub email.")
author = forms.CharField(
required = False,
label = _(u"Autor"),
help_text = _(u"Twoje imie i nazwisko lub email.")
-
)
comment = forms.CharField(
)
comment = forms.CharField(
- required =
Fals
e,
+ required =
Tru
e,
widget=forms.Textarea,
label = _(u"Twój komentarz"),
help_text = _(u"Opisz w miarę dokładnie swoje zmiany."),
widget=forms.Textarea,
label = _(u"Twój komentarz"),
help_text = _(u"Opisz w miarę dokładnie swoje zmiany."),