SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 5b367531 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add new attributes to fellowship dynsel

parent 4f39e1d2
No related branches found
No related tags found
1 merge request!61[Submissions] Add target collection to the submission form
...@@ -109,6 +109,7 @@ class FellowshipDynSelForm(forms.Form): ...@@ -109,6 +109,7 @@ class FellowshipDynSelForm(forms.Form):
action_url_name = forms.CharField() action_url_name = forms.CharField()
action_url_base_kwargs = forms.JSONField(required=False) action_url_base_kwargs = forms.JSONField(required=False)
action_target_element_id = forms.CharField() action_target_element_id = forms.CharField()
action_target_swap = forms.CharField()
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
...@@ -118,6 +119,7 @@ class FellowshipDynSelForm(forms.Form): ...@@ -118,6 +119,7 @@ class FellowshipDynSelForm(forms.Form):
Field("action_url_name", type="hidden"), Field("action_url_name", type="hidden"),
Field("action_url_base_kwargs", type="hidden"), Field("action_url_base_kwargs", type="hidden"),
Field("action_target_element_id", type="hidden"), Field("action_target_element_id", type="hidden"),
Field("action_target_swap", type="hidden"),
) )
def search_results(self): def search_results(self):
......
{% load colleges_extras %} {% load colleges_extras %}
<ul class="list list-unstyled"> <ul class="list list-unstyled dynsel-list">
{% for fellowship in fellowships|slice:":11" %} {% for fellowship in fellowships|slice:":11" %}
{% if forloop.counter == 11 %} {% if forloop.counter == 11 %}
<li>&emsp;...</li> <li>&emsp;...</li>
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
<a <a
hx-get="{% fellowship_dynsel_action_url fellowship %}" hx-get="{% fellowship_dynsel_action_url fellowship %}"
hx-target="#{{ action_target_element_id }}" hx-target="#{{ action_target_element_id }}"
hx-swap="{{ action_target_swap }}"
hx-indicator="#{{ action_target_element_id }}-indicator"
> >
{{ fellowship }} {{ fellowship }}
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment