SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
5b367531
Commit
5b367531
authored
1 year ago
by
George Katsikas
Browse files
Options
Downloads
Patches
Plain Diff
add new attributes to fellowship dynsel
parent
4f39e1d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!61
[Submissions] Add target collection to the submission form
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scipost_django/colleges/forms.py
+2
-0
2 additions, 0 deletions
scipost_django/colleges/forms.py
scipost_django/colleges/templates/colleges/_hx_fellowship_dynsel_list.html
+3
-1
3 additions, 1 deletion
...lleges/templates/colleges/_hx_fellowship_dynsel_list.html
with
5 additions
and
1 deletion
scipost_django/colleges/forms.py
+
2
−
0
View file @
5b367531
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
scipost_django/colleges/templates/colleges/_hx_fellowship_dynsel_list.html
+
3
−
1
View file @
5b367531
{% 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>
 
...
</li>
<li>
 
...
</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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment