admin: fix flow ordering, fix source URLs
This commit is contained in:
parent
cafe2f1e1f
commit
4377d1e86e
|
@ -94,7 +94,7 @@
|
||||||
</section>
|
</section>
|
||||||
</li>
|
</li>
|
||||||
<li class="pf-c-nav__item pf-m-expandable pf-m-expanded">
|
<li class="pf-c-nav__item pf-m-expandable pf-m-expanded">
|
||||||
<a href="#" class="pf-c-nav__link" aria-expanded="true">{% trans 'Policies and Bindings' %}
|
<a href="#" class="pf-c-nav__link" aria-expanded="true">{% trans 'Policies' %}
|
||||||
<span class="pf-c-nav__toggle">
|
<span class="pf-c-nav__toggle">
|
||||||
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
<i class="fas fa-angle-right" aria-hidden="true"></i>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -46,12 +46,12 @@ urlpatterns = [
|
||||||
path("sources/", sources.SourceListView.as_view(), name="sources"),
|
path("sources/", sources.SourceListView.as_view(), name="sources"),
|
||||||
path("sources/create/", sources.SourceCreateView.as_view(), name="source-create"),
|
path("sources/create/", sources.SourceCreateView.as_view(), name="source-create"),
|
||||||
path(
|
path(
|
||||||
"sources/<int:pk>/update/",
|
"sources/<uuid:pk>/update/",
|
||||||
sources.SourceUpdateView.as_view(),
|
sources.SourceUpdateView.as_view(),
|
||||||
name="source-update",
|
name="source-update",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"sources/<int:pk>/delete/",
|
"sources/<uuid:pk>/delete/",
|
||||||
sources.SourceDeleteView.as_view(),
|
sources.SourceDeleteView.as_view(),
|
||||||
name="source-delete",
|
name="source-delete",
|
||||||
),
|
),
|
||||||
|
|
|
@ -21,7 +21,7 @@ class StageBindingListView(LoginRequiredMixin, PermissionListMixin, ListView):
|
||||||
model = FlowStageBinding
|
model = FlowStageBinding
|
||||||
permission_required = "passbook_flows.view_flowstagebinding"
|
permission_required = "passbook_flows.view_flowstagebinding"
|
||||||
paginate_by = 10
|
paginate_by = 10
|
||||||
ordering = ["order", "flow"]
|
ordering = ["flow", "order"]
|
||||||
template_name = "administration/stage_binding/list.html"
|
template_name = "administration/stage_binding/list.html"
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue