Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0abb05a

Browse files
adding form, issue, racial issue, and target to dummy selection
1 parent a8ac600 commit 0abb05a

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

‎mpeds_coder.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,8 @@ def modal_view():
10761076
return render_template('modal.html',
10771077
variable = variable,
10781078
ce = ce,
1079-
article_ids = article_ids)
1079+
article_ids = article_ids,
1080+
preset_vars = preset_vars)
10801081
else:
10811082
return render_template('modal.html', variable = variable, ce = ce)
10821083

‎templates/adj-grid.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% set var_adds = ['start-date', 'end-date', 'location'] -%}
1+
{% set var_adds = ['start-date', 'end-date', 'location', 'form', 'issue', 'racial-issue', 'target'] -%}
22
{% if canonical_event is none and (cand_events is none or cand_events.keys()|length == 0) %}
33
<p class="info-block bg-info text-info">
44
Get started by selected or adding events.

‎templates/canonical-cell.html‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
data-var="{{ var }}"
44
data-key="{{ cel_id }}">
55
<div class="sticky-top data-buttons">
6-
{% if var == 'desc' %}
7-
<span class="glyphicon glyphicon-pencil" title="Edit description by clicking edit button at the top of this column."></span>
8-
{% else %}
6+
{% if var != 'desc' %}
97
<a class="glyphicon glyphicon-remove remove-canonical" title="Remove"></a>
108
<a class="glyphicon glyphicon-info-sign"
119
title="Added on {{ timestamp }}"></a>

‎templates/modal.html‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,26 @@ <h4 class="modal-title" id="l_my_modal">Add {{ variable|capitalize }}</h4>
5757
</span>
5858
</div>
5959
</div>
60-
{% else %}
60+
{% elif variable in ['form', 'issue', 'racial-issue', 'target'] %}
61+
<div class="form-row">
62+
<div class="input-group">
63+
<label for="select-value">{{ variable | title }}</label>
64+
<select class="form-control form-control-sm" id="select-value" name="value">
65+
<option value="">---</option>
66+
{% for var in preset_vars[variable]|sort %}
67+
<option value="{{ var }}">{{ var }}</option>
68+
{% endfor %}
69+
</select>
70+
</div>
71+
</div>
72+
{% else %}
73+
<div class="form-row">
6174
<label for="variable-value">Value</label>
6275
<textarea class="form-control"
6376
name="value"
6477
id="variable-value"
6578
placeholder = "Enter text for {{ variable }}..."></textarea>
79+
</div>
6680
{% endif %}
6781
{% endif %}
6882
<input name="canonical-id" type="hidden" value="{{ ce.id }}" />

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /