Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
04ac5b69
Commit
04ac5b69
authored
Apr 18, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further improvements on user list #1938
parent
9cc14ac5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
96 deletions
+100
-96
table.js
cps/static/js/table.js
+90
-87
user_table.html
cps/templates/user_table.html
+10
-9
No files found.
cps/static/js/table.js
View file @
04ac5b69
This diff is collapsed.
Click to expand it.
cps/templates/user_table.html
View file @
04ac5b69
...
@@ -23,16 +23,18 @@
...
@@ -23,16 +23,18 @@
data-visible=
"{{element.get(array_field)}}"
data-visible=
"{{element.get(array_field)}}"
data-column=
"{{value.get(array_field)}}"
data-column=
"{{value.get(array_field)}}"
data-formatter=
"checkboxFormatter"
>
data-formatter=
"checkboxFormatter"
>
<div
class=
"form-check"
>
<div
class=
"form-check"
>
<div>
<label>
<label>
<input
type=
"radio"
class=
"check_head"
name=
"options_{{array_field}}"
onchange=
"checkboxHeader('false', '{{parameter}}', {{value.get(array_field)}})
"
disabled
>
{{_('Deny')}}
<input
type=
"radio"
class=
"check_head"
data-val=
{{value.get(array_field)}}
name=
"options_{{array_field}}"
data-name=
"{{parameter}}
"
disabled
>
{{_('Deny')}}
</label>
</label>
</div>
</div>
<div
class=
"form-check"
>
<div>
<label>
<label>
<input
type=
"radio"
class=
"check_head"
name=
"options_{{array_field}}"
onchange=
"checkboxHeader('true', '{{parameter}}', {{value.get(array_field)}})
"
disabled
>
{{_('Allow')}}
<input
type=
"radio"
class=
"check_head"
data-val=
{{value.get(array_field)}}
name=
"options_{{array_field}}"
data-name=
"{{parameter}}
"
disabled
>
{{_('Allow')}}
</label>
</label>
</div>
</div>
</div>
{{show_text}}
{{show_text}}
</th>
</th>
{%- endmacro %}
{%- endmacro %}
...
@@ -48,14 +50,13 @@
...
@@ -48,14 +50,13 @@
data-editable-source=
{{url}}
data-editable-source=
{{url}}
{%
if
validate
%}
data-edit-validate=
"{{ _('This Field is Required') }}"
{%
endif
%}
>
{%
if
validate
%}
data-edit-validate=
"{{ _('This Field is Required') }}"
{%
endif
%}
>
<div>
<div>
<select
id=
"select_{{ parameter }}"
class=
"header_select"
onchange=
"selectHeader(this, '{{parameter}}')"
disabled=
""
>
<select
id=
"select_{{ parameter }}"
class=
"header_select"
disabled=
""
>
<option
value=
"all"
>
{{ _('Show All') }}
</option>
<option
value=
"all"
>
{{ _('Show All') }}
</option>
{% for language in languages %}
{% for language in languages %}
<option
value=
"{{language.lang_code}}"
>
{{language.name}}
</option>
<option
value=
"{{language.lang_code}}"
>
{{language.name}}
</option>
{% endfor %}
{% endfor %}
</select>
</select>
</div><br>
</div>
{{ show_text }}
{{ show_text }}
</th>
</th>
{%- endmacro %}
{%- endmacro %}
...
@@ -71,13 +72,13 @@
...
@@ -71,13 +72,13 @@
data-editable-source=
{{url}}
data-editable-source=
{{url}}
{%
if
validate
%}
data-edit-validate=
"{{ _('This Field is Required') }}"
{%
endif
%}
>
{%
if
validate
%}
data-edit-validate=
"{{ _('This Field is Required') }}"
{%
endif
%}
>
<div>
<div>
<select
id=
"select_{{ parameter }}"
class=
"header_select"
onchange=
"selectHeader(this, '{{parameter}}')"
disabled=
""
>
<select
id=
"select_{{ parameter }}"
class=
"header_select"
disabled=
""
>
<option
value=
"None"
>
{{_('Select...')}}
</option>
<option
value=
"None"
>
{{_('Select...')}}
</option>
{% for translation in translations %}
{% for translation in translations %}
<option
value=
"{{translation}}"
>
{{translation.display_name|capitalize}}
</option>
<option
value=
"{{translation}}"
>
{{translation.display_name|capitalize}}
</option>
{% endfor %}
{% endfor %}
</select>
</select>
</div>
<br>
</div>
{{ show_text }}
{{ show_text }}
</th>
</th>
{%- endmacro %}
{%- endmacro %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment