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 = [
|
||||
(self: super: {
|
||||
froide-govplan = super.froide-govplan.overrideAttrs (oldAttrs: rec {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "onny";
|
||||
repo = "froide-govplan";
|
||||
rev = "81697ce37cfdee7b5d0f667c50b13062ed9786c3";
|
||||
hash = "sha256-ooHGlCKgZL+TMh6OtopKtbkV0MhT4udLCOIC+C3Ytdw=";
|
||||
};
|
||||
src = ./.;
|
||||
#pkgs.fetchFromGitHub {
|
||||
# owner = "onny";
|
||||
# repo = "froide-govplan";
|
||||
# rev = "81697ce37cfdee7b5d0f667c50b13062ed9786c3";
|
||||
# hash = "sha256-ooHGlCKgZL+TMh6OtopKtbkV0MhT4udLCOIC+C3Ytdw=";
|
||||
#};
|
||||
postInstall = oldAttrs.postInstall + ''
|
||||
rm -r $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 {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
.card {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.card-body {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
</style>
|
||||
{% block extra_css %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,11 @@ urlpatterns = [
|
|||
GovPlanProposeUpdateView.as_view(),
|
||||
name="propose_planupdate",
|
||||
),
|
||||
path(
|
||||
pgettext_lazy("url part", "<slug:gov>/vorhaben/<slug:plan>/entwicklung-melden/"),
|
||||
GovPlanProposeUpdateView.as_view(),
|
||||
name="propose_planupdate",
|
||||
),
|
||||
path(
|
||||
pgettext_lazy("url part", "<slug:gov>/<slug:section>/"),
|
||||
GovPlanSectionDetailView.as_view(),
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ class GovPlanDetailView(GovernmentMixin, DetailView):
|
|||
]
|
||||
|
||||
|
||||
class GovPlanProposeUpdateView(GovernmentMixin, LoginRequiredMixin, UpdateView):
|
||||
class GovPlanProposeUpdateView(GovernmentMixin, UpdateView):
|
||||
slug_url_kwarg = "plan"
|
||||
form_class = GovernmentPlanUpdateProposalForm
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue