hacking
This commit is contained in:
parent
f8715e6c8b
commit
864910c127
4 changed files with 24 additions and 7 deletions
13
flake.nix
13
flake.nix
|
|
@ -21,12 +21,13 @@
|
||||||
overlays = [
|
overlays = [
|
||||||
(self: super: {
|
(self: super: {
|
||||||
froide-govplan = super.froide-govplan.overrideAttrs (oldAttrs: rec {
|
froide-govplan = super.froide-govplan.overrideAttrs (oldAttrs: rec {
|
||||||
src = pkgs.fetchFromGitHub {
|
src = ./.;
|
||||||
owner = "onny";
|
#pkgs.fetchFromGitHub {
|
||||||
repo = "froide-govplan";
|
# owner = "onny";
|
||||||
rev = "81697ce37cfdee7b5d0f667c50b13062ed9786c3";
|
# repo = "froide-govplan";
|
||||||
hash = "sha256-ooHGlCKgZL+TMh6OtopKtbkV0MhT4udLCOIC+C3Ytdw=";
|
# rev = "81697ce37cfdee7b5d0f667c50b13062ed9786c3";
|
||||||
};
|
# hash = "sha256-ooHGlCKgZL+TMh6OtopKtbkV0MhT4udLCOIC+C3Ytdw=";
|
||||||
|
#};
|
||||||
postInstall = oldAttrs.postInstall + ''
|
postInstall = oldAttrs.postInstall + ''
|
||||||
rm -r $out/${pkgs.python3.sitePackages}/froide_govplan/templates
|
rm -r $out/${pkgs.python3.sitePackages}/froide_govplan/templates
|
||||||
ln -sf /var/lib/froide-govplan/templates $out/${pkgs.python3.sitePackages}/froide_govplan/templates
|
ln -sf /var/lib/froide-govplan/templates $out/${pkgs.python3.sitePackages}/froide_govplan/templates
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,17 @@
|
||||||
.bd-mode-toggle .dropdown-menu .active .bi {
|
.bd-mode-toggle .dropdown-menu .active .bi {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.card-body {
|
||||||
|
flex-grow: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
{% block extra_css %}
|
{% block extra_css %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,11 @@ urlpatterns = [
|
||||||
GovPlanProposeUpdateView.as_view(),
|
GovPlanProposeUpdateView.as_view(),
|
||||||
name="propose_planupdate",
|
name="propose_planupdate",
|
||||||
),
|
),
|
||||||
|
path(
|
||||||
|
pgettext_lazy("url part", "<slug:gov>/vorhaben/<slug:plan>/entwicklung-melden/"),
|
||||||
|
GovPlanProposeUpdateView.as_view(),
|
||||||
|
name="propose_planupdate",
|
||||||
|
),
|
||||||
path(
|
path(
|
||||||
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
|
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
|
||||||
GovPlanSectionDetailView.as_view(),
|
GovPlanSectionDetailView.as_view(),
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,7 @@ class GovPlanDetailView(GovernmentMixin, DetailView):
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class GovPlanProposeUpdateView(GovernmentMixin, LoginRequiredMixin, UpdateView):
|
class GovPlanProposeUpdateView(GovernmentMixin, UpdateView):
|
||||||
slug_url_kwarg = "plan"
|
slug_url_kwarg = "plan"
|
||||||
form_class = GovernmentPlanUpdateProposalForm
|
form_class = GovernmentPlanUpdateProposalForm
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue