Skip to content

Commit

Permalink
fix monitor orientation attribute in editor form
Browse files Browse the repository at this point in the history
  • Loading branch information
seiferta committed Feb 5, 2017
1 parent 378c490 commit 47bd1e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ <h2 xmlns="http://www.w3.org/1999/html">{{ _('monitors.edit.monitor') }}</h2>
<p>
<label>{{ _('monitors.orientation') }}:<br/>
<select name="edit_orientation" style="width:99%">
{% for orientation in orientations %}
<option value="{{ loop.index0 }}">{{ _(orientation) }}</option>
{% endfor %}
{%- for orientation in orientations %}
<option value="{{ loop.index0 }}"{%- if monitor.orientation == loop.index0 %} selected="selected"{%- endif %}>{{ _(orientation) }}</option>
{%- endfor %}
</select>
</label>
</p>
Expand Down

0 comments on commit 47bd1e1

Please sign in to comment.