Skip to content

Commit

Permalink
Set default private dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
taleksovska committed Jul 26, 2024
1 parent a62e4ce commit 5fe7cf2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% endblock %}
{% endmacro %}

<div data-module="dataset-visibility">
<div data-module="dataset-visibility">
{% snippet "scheming/form_snippets/_organization_select.html",
field=field,
data=data,
Expand All @@ -26,11 +26,10 @@
<div class="controls">
<select id="field-private" name="private" class="form-control">
{% for option in [('True', _('Private')), ('False', _('Public'))] %}
<option value="{{ option[0] }}" {% if option[0] == data.private|trim %}selected="selected"{% endif %}>{{ option[1] }}</option>
<option value="{{ option[0] }}" {% if data.private is none or option[0] == data.private|trim %}selected="selected"{% endif %}>{{ option[1] }}</option>
{% endfor %}
</select>
</div>
</div>
{% endblock %}

</div>
</div

0 comments on commit 5fe7cf2

Please sign in to comment.