Remove status option from edit form

This commit is contained in:
Yoander Valdés Rodríguez 2023-04-28 14:14:11 -05:00
parent 2d1bba09cc
commit 5fae745d57

View file

@ -5,19 +5,22 @@
<div class="row header">
<div class="grid">
<div class="column is-three-quarters">
<input name="title" type="text" value="{{ selected.title }}" placeholder="Title">
<input name="tags" type="text" value="{{ selected.tags }}" placeholder="Tags">
<div class="grid">
<select name="language" class="column is-select is-one-quarter">
{% for language in languages %}
<option value="{{ language.code }}" {% if selected.language === language.code %} selected {% endif %}>{{ language.name }}</option>
{% endfor %}
</select>
<select name="status" class="column is-select is-one-quarter mgl10">
<option value="DRAFT" {% if selected.status === 'DRAFT' %} selected {% endif %}>Draft</option>
<option value="PUBLISHED" {% if selected.status === 'PUBLISHED' %} selected {% endif %}>Published</option>
<option value="SYNCHRONIZED" {% if selected.status === 'SYNCHRONIZED' %} selected {% endif %}>Synchronized</option>
</select>
<div class="column">
<input name="title" type="text" value="{{ selected.title }}" placeholder="Title">
</div>
</div>
<div class="grid">
<div class="column is-select is-one-half">
<input name="tags" type="text" value="{{ selected.tags }}" placeholder="Tags">
</div>
<div class="column is-select is-one-half">
<select name="language">
{% for language in languages %}
<option value="{{ language.code }}" {% if selected.language === language.code %} selected {% endif %}>{{ language.name }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="column is-one-quarters">